summaryrefslogtreecommitdiffstats
path: root/mute-toggle
diff options
context:
space:
mode:
Diffstat (limited to 'mute-toggle')
-rwxr-xr-xmute-toggle3
1 files changed, 3 insertions, 0 deletions
diff --git a/mute-toggle b/mute-toggle
new file mode 100755
index 0000000..e3359eb
--- /dev/null
+++ b/mute-toggle
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+bash -c "pacmd list-sources | grep -oP 'index: \\d+' | awk '{ print \$2 }' | xargs -I{} pactl set-source-mute {} ${1:-toggle}"