summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-05-25 17:44:50 +0200
committerRobert Günzler <r@gnzler.io>2020-05-25 17:44:50 +0200
commitd602bb1e4835ea1f1c6a8b494ffc191074fc1b43 (patch)
tree4a2ba6587e91e9f625843c7dc42377eed1dbb77e
parent4d467775057808e793df696ce2569f15927a5286 (diff)
redshift: set background based on phase
-rwxr-xr-x.config/redshift/hooks/notif.sh8
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