diff options
Diffstat (limited to '.config/gammastep/hooks/switch.sh')
| -rwxr-xr-x | .config/gammastep/hooks/switch.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.config/gammastep/hooks/switch.sh b/.config/gammastep/hooks/switch.sh new file mode 100755 index 0000000..fae86ec --- /dev/null +++ b/.config/gammastep/hooks/switch.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +set -x + +case "$1" in + period-changed) + + case "$3" in + night|transition) + notify-send gammastep "changing to night" + gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark + pkill -fe -USR2 waybar-gammastep + ;; + + daytime) + notify-send gammastep "changing to day" + gsettings set org.gnome.desktop.interface gtk-theme Adwaita + pkill -fe -USR1 waybar-gammastep + ;; + + none) + notify-send gammastep "turning off" + pkill -fe -USR1 waybar-gammastep + ;; + esac + ;; +esac |