diff options
Diffstat (limited to 'modules/switch-theme.sh')
-rwxr-xr-x | modules/switch-theme.sh | 11 |
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 + |