diff --git a/.local/bin/statusbar/volume b/.local/bin/statusbar/volume index 20805e6..7580f20 100755 --- a/.local/bin/statusbar/volume +++ b/.local/bin/statusbar/volume @@ -23,7 +23,7 @@ volstat="$(pactl list sinks)" echo "$volstat" | grep -q "Mute: yes" && printf "🔇\\n" && exit # echo "$volstat" | grep "\[off\]" >/dev/null && printf "🔇\\n" && exit # ALSA -vol="$(echo "$volstat" | grep '^[[:space:]]Volume:' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")" +vol="$(echo "$volstat" | grep '[0-9]\+%' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")" # vol=$(echo "$volstat" | grep -o "\[[0-9]\+%\]" | sed "s/[^0-9]*//g;1q") # ALSA if [ "$vol" -gt "70" ]; then