renamed toggle-mute to toggle-mic-mute to be more indicative of what it does

This commit is contained in:
2026-01-25 00:36:41 +01:00
parent 9092cfaaf3
commit 6dc8fe7152

9
toggle-mic-mute Executable file
View 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