diff options
| author | Robert Günzler <r@gnzler.io> | 2020-05-25 17:44:50 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-05-25 17:44:50 +0200 |
| commit | d602bb1e4835ea1f1c6a8b494ffc191074fc1b43 (patch) | |
| tree | 4a2ba6587e91e9f625843c7dc42377eed1dbb77e /.config | |
| parent | 4d467775057808e793df696ce2569f15927a5286 (diff) | |
redshift: set background based on phase
Diffstat (limited to '.config')
| -rwxr-xr-x | .config/redshift/hooks/notif.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.config/redshift/hooks/notif.sh b/.config/redshift/hooks/notif.sh index 7111117..9ff487d 100755 --- a/.config/redshift/hooks/notif.sh +++ b/.config/redshift/hooks/notif.sh @@ -2,5 +2,11 @@ case "$1" in period-changed) - exec notify-send "redshift" "changed to $3" ;; + notify-send "redshift" "changed to $3" + if [ "$3" = "night" ]; then + ogurictl output --image ~/Pictures/animepics/room/evening.png '*' + else + ogurictl output --image ~/Pictures/animepics/room/day.png '*' + fi + ;; esac |