about summary refs log tree commit diff
path: root/modules/switch-theme.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/switch-theme.sh')
-rwxr-xr-xmodules/switch-theme.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/switch-theme.sh b/modules/switch-theme.sh
new file mode 100755
index 0000000..b3fce3b
--- /dev/null
+++ b/modules/switch-theme.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+theme=$(gsettings get org.gnome.desktop.interface color-scheme)
+
+echo $theme
+if [ "$theme" = "'prefer-dark'" ]; then
+	gsettings set org.gnome.desktop.interface color-scheme 'prefer-light'
+else
+	gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
+fi
+