Volume notification shows the volume as a number and a bar.
This commit is contained in:
parent
eb1a2591c8
commit
9a62e1ae0f
@ -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 " $bar"
|
dunstify -i audio-volume-high -r 2593 "$volume $bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
Loading…
Reference in New Issue
Block a user