aboutsummaryrefslogtreecommitdiff
path: root/.local/share/light-mode.d/gtk-theme.sh
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-01-29 14:11:09 +0800
committerGuangxiong Lin <[email protected]>2023-01-29 14:11:09 +0800
commitce6a9829d9b79fe584c8c391dd550e6637a3bfc6 (patch)
tree017b7ed4583d9ffd61e75b98a19b579dff70c4f6 /.local/share/light-mode.d/gtk-theme.sh
parente206b98b90641bda6e14bbed087af1a58c2dc925 (diff)
downloaddotfiles-ce6a9829d9b79fe584c8c391dd550e6637a3bfc6.tar.gz
dotfiles-ce6a9829d9b79fe584c8c391dd550e6637a3bfc6.tar.bz2
dotfiles-ce6a9829d9b79fe584c8c391dd550e6637a3bfc6.zip
Add dark mode switch
Diffstat (limited to '.local/share/light-mode.d/gtk-theme.sh')
-rwxr-xr-x.local/share/light-mode.d/gtk-theme.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/share/light-mode.d/gtk-theme.sh b/.local/share/light-mode.d/gtk-theme.sh
new file mode 100755
index 0000000..8a34e2e
--- /dev/null
+++ b/.local/share/light-mode.d/gtk-theme.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+gnome_schema='org.gnome.desktop.interface'
+gtk_theme='Adwaita'
+
+gsettings set $gnome_schema gtk-theme $gtk_theme
+gsettings set $gnome_schema icon-theme $gtk_theme
+gsettings set $gnome_schema cursor-theme $gtk_theme