summary refs log tree commit diff
path: root/.config/gammastep/hooks
diff options
context:
space:
mode:
Diffstat (limited to '.config/gammastep/hooks')
-rwxr-xr-x.config/gammastep/hooks/notif.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/gammastep/hooks/notif.sh b/.config/gammastep/hooks/notif.sh
new file mode 100755
index 0000000..de04d6c
--- /dev/null
+++ b/.config/gammastep/hooks/notif.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+case "$1" in
+	period-changed)
+		case "$3" in
+		transition|night)	pkill -USR2 waybar-redshift ;;
+		none|day)		pkill -USR1 waybar-redshift ;;
+		esac
+		;;
+esac