diff --git a/home-manager/progs/eww/config/scripts/sound/getVolume.sh b/home-manager/progs/eww/config/scripts/sound/getVolume.sh index 3e741f2..49cb8e1 100755 --- a/home-manager/progs/eww/config/scripts/sound/getVolume.sh +++ b/home-manager/progs/eww/config/scripts/sound/getVolume.sh @@ -1,5 +1,5 @@ #!/usr/bin/env sh -count=$(wpctl get-volume @DEFAULT_SINK@ | sed 's/Volume: //g' | sed 's/0\.[0]//g') +count=$(wpctl get-volume @DEFAULT_SINK@ | sed 's/Volume: //g' | sed -E 's/0\.0?//g') color="green" if ((count > 75)); then color="yellow"; fi if ((count > 90)); then color="peach"; fi