Default timeout for dunstify notifications. Specifics for volume and backlight.

This commit is contained in:
RealStickman 2020-10-10 22:29:40 +02:00
parent 999045623c
commit 58c0c50227
3 changed files with 12 additions and 3 deletions

View File

@ -433,10 +433,19 @@
[dunstify]
appname = "dunstify"
format = "<b>%s</b>\n%b"
timeout = 5
[notify-send]
appname = "notify-send"
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

View File

@ -14,7 +14,7 @@ send_notification() {
# https://en.wikipedia.org/wiki/Box-drawing_character
bar=$(seq -s "─" $(($light/ 5)) | sed 's/[0-9]//g')
# Send the notification
dunstify -i whitebalance -r 2489 " $bar "
dunstify -i whitebalance -r 2489 -a backlight-script -u low " $bar "
}
case $1 in

View File

@ -19,7 +19,7 @@ send_notification() {
# https://en.wikipedia.org/wiki/Box-drawing_character
bar=$(seq -s "─" $(($volume / 5)) | sed 's/[0-9]//g')
# 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