From 0e14c80bfb4ee56ebbab72feb52aec90ca37f02b Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Sat, 14 Oct 2017 18:44:28 +0200 Subject: [PATCH] [redshift] use icons and transient hint for notifications --- redshift/hook.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/redshift/hook.sh b/redshift/hook.sh index 3d4a728..ba4b481 100755 --- a/redshift/hook.sh +++ b/redshift/hook.sh @@ -1,10 +1,19 @@ #!/bin/sh +notify(){ + notify-send \ + --app-name=redshift \ + --urgency=low \ + --icon=redshift \ + --hint=int:transient:1 \ + "${1}" "${2}" +} + case $1 in period-changed) - exec notify-send "Redshift" "Period changed to $3" + notify "Redshift" "Period changed to $3" ;; *) - exec notify-send "Redshift" "Redshift just fired an unknown hook with these options: '$*'. Ah, of course, this notification is just here, to troll you! :-P" + notify "Redshift" "Redshift just fired an unknown hook with these options: '$*'. Ah, of course, this notification is just here, to troll you! :-P" ;; esac