From b6aad7bc0a0ab7c8cf4e193a05fb68d49900aaea Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Tue, 16 Jul 2024 16:42:49 +0200 Subject: [PATCH] Make KDE 6 use fonts as defined in fontconfig. --- install.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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