herbstluftwm: update panel to use pipewire instead of pulseaudio

This commit is contained in:
mequidis
2022-06-17 14:38:39 +03:00
parent 8bbdbea7cc
commit dc7973c1a3
2 changed files with 3 additions and 2 deletions

View File

@ -61,10 +61,10 @@ fi
# get the current pulseaudio volume, or state incase muted
pulsegetvol() {
if [ $(pulsemixer --get-mute) == 1 ]; then
if [ $(pamixer --get-mute) == 1 ]; then
echo -ne "^fg($foreground)muted\n"
else
volume=$(pulsemixer --get-volume | awk '{print $1; exit}')
volume=$(pamixer --get-volume-human)
echo -n "^fg($foreground)$volume"
fi
}