[system] fix: muted volume notif + status
This commit is contained in:
parent
d6c587b287
commit
8862a0553b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue