mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 11:04:41 +02:00
[redshift] use icons and transient hint for notifications
This commit is contained in:
parent
957924daf8
commit
0e14c80bfb
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue