summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmenu-pavols
blob: c30bdf84e33e1ef93c1e296d7cb40619f37a2eef (plain) (blame)
1
2
3
4
#!/bin/sh
cur=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '\d+(?=%)' | head -n1)
val=$(b-prompt '' "volume ($cur):")
[ -n "$val" ] && pactl set-sink-volume @DEFAULT_SINK@ "${val}%"