summaryrefslogtreecommitdiffstats
path: root/mute-toggle
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2022-05-11 09:57:50 +0200
committerFlorian Pritz <bluewind@xinu.at>2022-05-11 09:59:33 +0200
commit09bb95709965abd24092331a1bc02914f48d79c8 (patch)
tree1c15bb746d0a8b74dbc9ece103a8665642d579c1 /mute-toggle
parent3c6ed7c199dba3aa66660b62e4e2b85cd163b06b (diff)
downloadbin-09bb95709965abd24092331a1bc02914f48d79c8.tar.gz
bin-09bb95709965abd24092331a1bc02914f48d79c8.tar.xz
Add new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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}"