lemonbar-config/lemonvol

15 lines
211 B
Plaintext
Raw Permalink Normal View History

2020-12-13 12:51:52 +01:00
#!/bin/sh
vol=$(pamixer --get-volume)
mute=$(pamixer --get-volume-human)
icon=$(echo "奔")
if [ "$mute" = "muted" ]; then
label=$(printf "mute \n")
else
label=$vol%
fi
printf "%s\n" "V奔 $vol"