[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}')"
|
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%"
|
dunstify -r 100002 "Sound muted" "$level%"
|
||||||
else
|
else
|
||||||
case "$level" in
|
case "$level" in
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
level="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F" " '{print $2*100}')"
|
level="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F" " '{print $2*100}')"
|
||||||
muted="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F" " '{print $3}')"
|
muted="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F" " '{print $3}')"
|
||||||
|
|
||||||
if [ "1" = "$muted" ]; then
|
if [ "[MUTED]" = "$muted" ]; then
|
||||||
icon="婢"
|
icon="婢"
|
||||||
else
|
else
|
||||||
if [ "$level" -gt "70" ]; then
|
if [ "$level" -gt "70" ]; then
|
||||||
|
|
Reference in New Issue