diff options
Diffstat (limited to '.local/bin/audio_mutemic')
-rwxr-xr-x | .local/bin/audio_mutemic | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/.local/bin/audio_mutemic b/.local/bin/audio_mutemic index 60023a9..b622b62 100755 --- a/.local/bin/audio_mutemic +++ b/.local/bin/audio_mutemic @@ -1,15 +1,13 @@ #! /bin/sh -# toggle mic mute and send notification about current state - wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle command -v notify-send > /dev/null || exit case "$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)" in *\[MUTED\]) - notify-send " muted" "microphone is muted" + notify-send " muted" "microphone is muted" ;; *) - notify-send " unmuted" "microphone is unmuted" + notify-send " unmuted" "microphone is active" ;; esac |