This commit is contained in:
2026-01-18 16:27:08 -08:00
parent 122ea23b63
commit 2419938a47

View File

@ -1,8 +1,10 @@
#!/bin/sh
VOLUME=$(mixer | grep vol)
VOLUME=$(wpctl get-volume @DEFAULT_SINK@)
#VOLUME=$(mixer | grep vol)
case $VOLUME in
*mute*)
*MUTED*)
echo " MUTED";;
esac
VOLUME=$(echo $VOLUME | awk '{print $3}' | sed 's/:.*//;s/^0//;s/\.//')
#VOLUME=$(echo $VOLUME | awk '{print $3}' | sed 's/:.*//;s/^0//;s/\.//')
VOLUME=$(echo $VOLUME | awk '{print $2}' | sed s/^0\.//g)
echo " $VOLUME"