🩹 (home/eww) fix non working metric when volume was 0

This commit is contained in:
Laureηt 2024-07-06 15:37:06 +02:00
parent b01026d707
commit 66f62f8ac9
Signed by: Laurent
SSH key fingerprint: SHA256:pb5NrYg80So5z9hmqQFPmp//sgr+DFeJkKhmGyU2NLk

View file

@ -117,7 +117,7 @@
(defpoll volume
:interval "1s"
"wpctl get-volume @DEFAULT_AUDIO_SINK@ | tr -dc '0-9' | sed 's/^0*//'"
"wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/Volume: //' | tr -d '.'"
)
(defpoll time