diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-03-28 12:38:26 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-03-28 12:38:26 +0100 |
| commit | c53922343fc677d014b25ee28b46a9f31588d19f (patch) | |
| tree | 0b3d0061d2f92576ec2662867e1b450fbf93191e /bin/set_theme | |
| parent | 9ab1fe4601d7c2dad725505cfdd5b2643c84c615 (diff) | |
| download | dotfiles-c53922343fc677d014b25ee28b46a9f31588d19f.tar.gz dotfiles-c53922343fc677d014b25ee28b46a9f31588d19f.zip | |
set_theme: change gtk theme as well
Diffstat (limited to 'bin/set_theme')
| -rwxr-xr-x | bin/set_theme | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/set_theme b/bin/set_theme index aa42f1a..3b9345e 100755 --- a/bin/set_theme +++ b/bin/set_theme @@ -5,6 +5,11 @@ if [[ "$theme" != "dark" ]] && [[ "$theme" != "light" ]]; then echo "Usage: $0 <light|dark>"; exit 1 fi +# GTK theme +if command -v gsettings > /dev/null; then + gsettings set org.gnome.desktop.interface color-scheme "prefer-${theme}" +fi + VIS_THEME_PATH=${XDG_CONFIG_HOME:-~/.config}/vis/themes ln -sf solarized-"$theme".lua "${VIS_THEME_PATH}"/theme.lua |
