From: Siraaj Khandkar Date: Thu, 14 Apr 2022 00:58:43 +0000 (-0400) Subject: Make a mic-muting script X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=c3eac31c566badd10e5c8bf8e9aeee1208b3de08;p=khome.git Make a mic-muting script --- diff --git a/home/bin/mic-mute-toggle b/home/bin/mic-mute-toggle new file mode 100755 index 0000000..0e15b1f --- /dev/null +++ b/home/bin/mic-mute-toggle @@ -0,0 +1,7 @@ +#! /bin/sh + +# Default +#pactl set-source-mute @DEFAULT_SOURCE@ toggle + +# All +pactl list sources | awk -F\# '/^Source #[0-9]+/ {print $2}' | xargs -I % pactl set-source-mute % toggle