Make a mic-muting script
authorSiraaj Khandkar <siraaj@khandkar.net>
Thu, 14 Apr 2022 00:58:43 +0000 (20:58 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Thu, 14 Apr 2022 00:58:43 +0000 (20:58 -0400)
home/bin/mic-mute-toggle [new file with mode: 0755]

diff --git a/home/bin/mic-mute-toggle b/home/bin/mic-mute-toggle
new file mode 100755 (executable)
index 0000000..0e15b1f
--- /dev/null
@@ -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
This page took 0.019714 seconds and 4 git commands to generate.