Skip to content

Instantly share code, notes, and snippets.

@Ajnasz
Last active Aug 29, 2015
Embed
What would you like to do?
#!/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