| #!/bin/bash | |
|  | |
| SINK=$(pactl list short | grep RUNNING | sed -e 's,^\([0-9][0-9]*\)[^0-9].*,\1,') | |
| 
 | |
| pactl -- set-sink-volume ${SINK} -5% | |
| 
 | |
| VOL=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '\d+?(?=%)' | head -n 1) | |
| 
 | |
| notify-send -t 1000 "Volume: ${VOL}%"
 |