1 2 3 4
#!/bin/sh cur=$(pamixer --get-volume) val=$(dmenu -p "volume ($cur):" < /dev/null) [ -n "$val" ] && pamixer --set-volume "$val"