[system] fix: muted volume notif + status

This commit is contained in:
David JULIEN 2022-11-12 23:20:28 +01:00
parent d6c587b287
commit 8862a0553b
2 changed files with 2 additions and 2 deletions

View File

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

View File

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