Last active
April 25, 2018 14:20
-
-
Save abenson/13c5634f852edb41d4e69f0c477c68b4 to your computer and use it in GitHub Desktop.
volume control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
case "$1" in | |
"up" ) | |
pactl set-sink-mute @DEFAULT_SINK@ false | |
pactl set-sink-volume @DEFAULT_SINK@ +5% | |
;; | |
"down" ) | |
pactl set-sink-mute @DEFAULT_SINK@ false | |
pactl set-sink-volume @DEFAULT_SINK@ -5% | |
;; | |
"toggle" ) | |
pactl set-sink-mute @DEFAULT_SINK@ toggle | |
;; | |
*) | |
echo "usage: $0 <up|down|toggle>" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment