Skip to content

Instantly share code, notes, and snippets.

@IAmSuyogJadhav
Last active June 15, 2021 10:18
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save IAmSuyogJadhav/3b265936e4f8fb8e144802d4dcf086e6 to your computer and use it in GitHub Desktop.
Refer to the blog for more info:
#!/bin/sh
#sudo PULSE_RUNTIME_PATH=/var/run/pulse -u pulse pacmd list-sources | grep -oP 'index: \d+' | awk '{ print $2 }' | xargs -I{} pactl set-source-mute {} toggle
sudo PULSE_RUNTIME_PATH=/var/run/pulse -u pulse pactl set-source-mute 2 toggle && pactl set-source-mute 1 toggle && pactl set-source-mute 0 toggle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment