Default timeout for dunstify notifications. Specifics for volume and backlight.
This commit is contained in:
parent
999045623c
commit
58c0c50227
@ -433,10 +433,19 @@
|
|||||||
[dunstify]
|
[dunstify]
|
||||||
appname = "dunstify"
|
appname = "dunstify"
|
||||||
format = "<b>%s</b>\n%b"
|
format = "<b>%s</b>\n%b"
|
||||||
timeout = 5
|
|
||||||
|
|
||||||
[notify-send]
|
[notify-send]
|
||||||
appname = "notify-send"
|
appname = "notify-send"
|
||||||
format = "<b>%s</b>\n%b"
|
format = "<b>%s</b>\n%b"
|
||||||
|
|
||||||
|
[volume-script]
|
||||||
|
appname = "volume-script"
|
||||||
|
format = "<b>%s</b>\n%b"
|
||||||
|
timeout = 5
|
||||||
|
|
||||||
|
[backlight-script]
|
||||||
|
appname = "backlight-script"
|
||||||
|
format = "<b>%s</b>\n%b"
|
||||||
|
timeout = 5
|
||||||
|
|
||||||
# vim: ft=cfg
|
# vim: ft=cfg
|
||||||
|
@ -14,7 +14,7 @@ send_notification() {
|
|||||||
# https://en.wikipedia.org/wiki/Box-drawing_character
|
# https://en.wikipedia.org/wiki/Box-drawing_character
|
||||||
bar=$(seq -s "─" $(($light/ 5)) | sed 's/[0-9]//g')
|
bar=$(seq -s "─" $(($light/ 5)) | sed 's/[0-9]//g')
|
||||||
# Send the notification
|
# Send the notification
|
||||||
dunstify -i whitebalance -r 2489 " $bar "
|
dunstify -i whitebalance -r 2489 -a backlight-script -u low " $bar "
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
@ -19,7 +19,7 @@ send_notification() {
|
|||||||
# https://en.wikipedia.org/wiki/Box-drawing_character
|
# https://en.wikipedia.org/wiki/Box-drawing_character
|
||||||
bar=$(seq -s "─" $(($volume / 5)) | sed 's/[0-9]//g')
|
bar=$(seq -s "─" $(($volume / 5)) | sed 's/[0-9]//g')
|
||||||
# Send the notification
|
# Send the notification
|
||||||
dunstify -i audio-volume-high -r 2593 "$volume $bar "
|
dunstify -i audio-volume-high -r 2593 -a volume-script -u low "$volume $bar "
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
Loading…
Reference in New Issue
Block a user