mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 19:14:39 +02:00
19 lines
383 B
Bash
Executable file
19 lines
383 B
Bash
Executable file
#!/bin/sh
|
|
|
|
notify(){
|
|
notify-send \
|
|
--app-name=redshift \
|
|
--urgency=low \
|
|
--icon=redshift \
|
|
--hint=int:transient:1 \
|
|
"${1}" "${2}"
|
|
}
|
|
|
|
case $1 in
|
|
period-changed)
|
|
notify "Redshift" "Period changed to $3"
|
|
;;
|
|
*)
|
|
notify "Redshift" "Redshift just fired an unknown hook with these options: '$*'. Ah, of course, this notification is just here, to troll you! :-P"
|
|
;;
|
|
esac
|