From 386fd4322069fec73772b8db151ad75f7c1aa34b Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 28 Jun 2020 23:42:38 +0200 Subject: waybar: add redshift module --- .config/redshift/hooks/notif.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to '.config/redshift/hooks') diff --git a/.config/redshift/hooks/notif.sh b/.config/redshift/hooks/notif.sh index 667f9e1..de04d6c 100755 --- a/.config/redshift/hooks/notif.sh +++ b/.config/redshift/hooks/notif.sh @@ -2,11 +2,9 @@ case "$1" in period-changed) - notify-send "redshift" "changed to $3" - if [ "$3" = "night" ]; then - ogurictl output --image ~/.background_night '*' - else - ogurictl output --image ~/.background '*' - fi + case "$3" in + transition|night) pkill -USR2 waybar-redshift ;; + none|day) pkill -USR1 waybar-redshift ;; + esac ;; esac -- cgit 1.4.1