about summary refs log tree commit diff
path: root/modules/switch-theme.sh
blob: b3fce3bfc6c4986d555af6d30a014cec903e068b (plain)
1
2
3
4
5
6
7
8
9
10
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