diff --git a/.local/bin/dwmbar b/.local/bin/dwmbar index 2711dcce..9e0f1120 100755 --- a/.local/bin/dwmbar +++ b/.local/bin/dwmbar @@ -39,7 +39,7 @@ status() { \ # Get the volume of ALSA's master volume output. Show an icon if or # not muted. - amixer get Master | grep -o "[0-9]*%\|\[on\]\|\[off\]" | sed "s/\[on\]//;s/\[off\]//" + amixer get Master | grep -o "[0-9]*%\|\[on\]\|\[off\]" | tr '\n' ' ' | sed -e '/off/c' -e 's/\[on\]//' | awk '{print $2 " " $1}' | xargs echo "$delim"