eww: fix volume regex

This commit is contained in:
Simon Gardling 2025-02-05 15:54:50 -05:00
parent 7daaefb1dc
commit 8f8bc5ae7d
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -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