herbstluftwm: update panel to use pipewire instead of pulseaudio

This commit is contained in:
2023-07-08 15:20:42 +03:00
parent 80a4e3a70c
commit 1b57f9f7cd
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
}