diff options
Diffstat (limited to '.config/redshift/hooks/notif.sh')
| -rwxr-xr-x | .config/redshift/hooks/notif.sh | 10 |
1 files changed, 4 insertions, 6 deletions
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 |