Skip to content

Instantly share code, notes, and snippets.

@Ajnasz
Last active August 29, 2015 14:12
  • 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 Ajnasz/ce586674bb61766cfffb to your computer and use it in GitHub Desktop.
#!/bin/sh
SINK_IDS=$(pactl list sinks short | awk '/RUNNING|IDLE|SUSPENDED/ {print $2}')
for id in $SINK_IDS;do
case $1 in
"mute")
pactl set-sink-mute $id toggle
;;
"down")
pactl set-sink-volume $id -- "-5%"
;;
"up")
pactl set-sink-volume $id "+5%"
;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment