Skip to content

Instantly share code, notes, and snippets.

@IAmSuyogJadhav
Last active June 15, 2021 10:18
Show Gist options
  • Save IAmSuyogJadhav/3b265936e4f8fb8e144802d4dcf086e6 to your computer and use it in GitHub Desktop.
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