lemonbar-config/lemonvol
2020-12-13 12:51:52 +01:00

15 lines
211 B
Bash
Executable File

#!/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"