diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2024-09-29 19:58:54 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2024-09-29 19:58:54 +0200 |
commit | 338fa6d7bf4cbe22cf9bf704f637ec7d4e1b786b (patch) | |
tree | 42452c16659f706fc2ab15fc1af71b18fbd1fd77 /modules/switch-theme.sh | |
parent | 66f919b2e169643eb3fd51b7229d80cf9a413b44 (diff) | |
download | dots-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-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 + |