renamed toggle-mute to toggle-mic-mute to be more indicative of what it does
This commit is contained in:
9
toggle-mic-mute
Executable file
9
toggle-mic-mute
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||
is_mic_muted=$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@ | grep "[MUTED]" | wc -l)
|
||||
if [ "$is_mic_muted" -eq "1" ]; then
|
||||
echo "Is mic muted"
|
||||
|
||||
else
|
||||
echo "Isn't mic muted"
|
||||
fi
|
||||
Reference in New Issue
Block a user