Skip to content

Instantly share code, notes, and snippets.

@unclechu
Created December 3, 2016 02:38
Show Gist options
  • Save unclechu/bcede7f4259490656562d863147f4c11 to your computer and use it in GitHub Desktop.
Save unclechu/bcede7f4259490656562d863147f4c11 to your computer and use it in GitHub Desktop.
pareset.sh
#!/bin/bash
# reset devices outputs volumes
pactl list sinks short | awk '{print $2}' | xargs -I {} pactl set-sink-volume '{}' 0db
# reset devices inputs volumes
pactl list sources short | awk '{print $2}' | xargs -I {} pactl set-source-volume '{}' 0db
# reset applications outputs volumes
pactl list sink-inputs short | awk '{print $1}' | xargs -I {} pactl set-sink-input-volume '{}' 0db
# reset applications inputs volumes
pactl list source-outputs short | awk '{print $1}' | xargs -I {} pactl set-source-output-volume '{}' 0db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment