summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmenu-pavols
blob: 0b840ad77f33a733cfd5834932a9effeb7e200a4 (plain) (blame)
1
2
3
4
#!/bin/sh
cur=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '\d+(?=%)' | head -n1)
val=$(dmenu -fn 'Source Code Pro Medium-10.5' -p "volume ($cur):" < /dev/null)
[ -n "$val" ] && pactl set-sink-volume @DEFAULT_SINK@ "${val}%"