about summary refs log tree commit diff
path: root/modules/switch-theme.sh
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2024-09-29 19:58:54 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2024-09-29 19:58:54 +0200
commit338fa6d7bf4cbe22cf9bf704f637ec7d4e1b786b (patch)
tree42452c16659f706fc2ab15fc1af71b18fbd1fd77 /modules/switch-theme.sh
parent66f919b2e169643eb3fd51b7229d80cf9a413b44 (diff)
downloaddots-338fa6d7bf4cbe22cf9bf704f637ec7d4e1b786b.tar.gz
dots-338fa6d7bf4cbe22cf9bf704f637ec7d4e1b786b.zip
t14: 29 current 2024-09-29 19:58:51 24.05.20240928.fbca5e7 6.6.52 *
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
+