diff --git a/install.sh b/install.sh index 5634e92..f6e3e3e 100755 --- a/install.sh +++ b/install.sh @@ -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