diff --git a/.local/bin/audio-notify b/.local/bin/audio-notify index 47f5f91..cf982a4 100755 --- a/.local/bin/audio-notify +++ b/.local/bin/audio-notify @@ -15,7 +15,7 @@ level="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F" " '{print $2*100}')" muted="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F" " '{print $3}')" -if [ "1" = "$muted" ]; then +if [ "[MUTED]" = "$muted" ]; then dunstify -r 100002 "Sound muted" "$level%" else case "$level" in diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index 760e153..38f10a9 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -14,7 +14,7 @@ level="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F" " '{print $2*100}')" muted="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F" " '{print $3}')" -if [ "1" = "$muted" ]; then +if [ "[MUTED]" = "$muted" ]; then icon="婢" else if [ "$level" -gt "70" ]; then