diff options
| author | Robert Günzler <r@gnzler.io> | 2020-06-28 23:42:38 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-06-28 23:58:37 +0200 |
| commit | 386fd4322069fec73772b8db151ad75f7c1aa34b (patch) | |
| tree | 7661e2dbe3dc1394e2fa6796cd4d04654320aebe /.config/redshift/hooks/notif.sh | |
| parent | 03b5564359594f9526e090411531fb2d416fe516 (diff) | |
waybar: add redshift module
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 |