Keep dunst, libgemui dialogs, and anode-vkbd on Fira Code

This commit is contained in:
Luxferre committed 2026-11-26 17:10:08 +02:00
1 parent 418fa85b3a
commit cf1544eb0c
9 files changed
+16 -75

No files matched your search

+1 -30
View File
@@ -39,36 +39,7 @@ if [ ! -r "$XRES" ]; then
exit 0
fi
resolve_ui_font() {
_req="$1"
[ -n "$_req" ] || _req="Roboto"
if [ "$_req" = "Roboto" ] && command -v fc-list >/dev/null 2>&1; then
_resolved="$(fc-list : family 2>/dev/null | awk '
{
n = split($0, a, ",")
for (i = 1; i <= n; i++) {
s = a[i]
gsub(/^[ \t\r\n]+|[ \t\r\n]+$/, "", s)
ls = tolower(s)
if (ls == "roboto") has_rob = 1
else if (ls == "noto sans") has_noto = 1
}
}
END {
if (has_rob) print "Roboto"
else if (has_noto) print "Noto Sans"
else print "Roboto"
}
' || true)"
if [ -n "$_resolved" ]; then
printf '%s\n' "$_resolved"
return 0
fi
fi
printf '%s\n' "$_req"
}
FONT_FACE="$(resolve_ui_font "$(xres_get theme.uiFontFace "Roboto")")"
FONT_FACE="$(xres_get theme.fontFace "Fira Code")"
SCALE="$(xres_get theme.scale "1.00")"
BASE_SZ="$(xres_get theme.baseFontSize "15")"