summaryrefslogtreecommitdiff
path: root/dot-local-bin/dark-light-switch
diff options
context:
space:
mode:
Diffstat (limited to 'dot-local-bin/dark-light-switch')
-rwxr-xr-xdot-local-bin/dark-light-switch7
1 files changed, 7 insertions, 0 deletions
diff --git a/dot-local-bin/dark-light-switch b/dot-local-bin/dark-light-switch
new file mode 100755
index 0000000..488b71a
--- /dev/null
+++ b/dot-local-bin/dark-light-switch
@@ -0,0 +1,7 @@
+#!/usr/bin/env fish
+
+if [ (gsettings get org.gnome.desktop.interface color-scheme) = "'prefer-dark'" ]
+ gsettings set org.gnome.desktop.interface color-scheme prefer-light
+else
+ gsettings set org.gnome.desktop.interface color-scheme prefer-dark
+end