Make KDE 6 use fonts as defined in fontconfig.

master
Icedream 2024-07-16 16:42:49 +02:00
parent af7202582f
commit b6aad7bc0a
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 13 additions and 0 deletions

View File

@ -67,3 +67,16 @@ if command -v systemctl >/dev/null 2>&1; then
systemctl --user enable tweak-cpu-usage
systemctl --user restart tweak-cpu-usage
fi
# KDE 6
if command -v kwriteconfig6 >/dev/null 2>&1; then
# set sans font to what we define in fontconfig
for key in "General:font" "General:menuFont" "General:toolBarFont" "WM:activeFont"; then
IFS=: read group key <<<"$key"
kwriteconfig6 --file kdeglobals --group "$group" --key "$key" "Sans Serif,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
fi
# set smallest sans font
kwriteconfig6 --file kdeglobals --group "General" --key "smallestReadableFont" "Sans Serif,8,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
# set mono font to what we define in fontconfig
kwriteconfig6 --file kdeglobals --group "General" --key "fixed" "Monospace,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
fi