From d602bb1e4835ea1f1c6a8b494ffc191074fc1b43 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 25 May 2020 17:44:50 +0200 Subject: redshift: set background based on phase --- .config/redshift/hooks/notif.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1