diff options
Diffstat (limited to '')
-rwxr-xr-x | .local/bin/dmenu-pavols | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/dmenu-pavols b/.local/bin/dmenu-pavols new file mode 100755 index 0000000..0b840ad --- /dev/null +++ b/.local/bin/dmenu-pavols @@ -0,0 +1,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}%" |