Add a whole bunch of configuration with gsettings

This commit is contained in:
exu 2023-11-18 15:32:04 +01:00
parent e94ef59e6d
commit 999275e954
3 changed files with 24 additions and 3 deletions

View File

@ -1,5 +1,6 @@
[Settings]
gtk-theme-name=Sweet-Dark
gtk-application-prefer-dark-theme = true
gtk-icon-theme-name=Sweet-Rainbow
gtk-font-name=Fira Sans 12
gtk-cursor-theme-name=capitaine-cursors-light

View File

@ -327,9 +327,12 @@ elif [[ "$seltheme" == "space-pink" ]]; then
fi
# make fehbg executable
if [[ -f "$HOME/.fehbg" ]]; then
chmod +x ~/.fehbg
fi
#if [[ -f "$HOME/.fehbg" ]]; then
# chmod +x ~/.fehbg
#fi
bash "$scriptloc/gsettings.sh"
echo "Set theme using gsettings"
echo
cat <<EOF

View File

@ -0,0 +1,17 @@
#!/usr/bin/env sh
set -euo pipefail
# set GTK theme
gsettings set org.gnome.desktop.interface gtk-theme Sweet-Dark
# prefer dark variant
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
# icon theme
gsettings set org.gnome.desktop.interface icon-theme Sweet-Rainbow
# Font
gsettings set org.gnome.desktop.interface font-name "Fira Sans 12"
# cursor theme
gsettings set org.gnome.desktop.interface cursor-theme "capitaine-cursors-light"