Add volume control shortcuts

This commit is contained in:
Pierre Martin
2015-09-25 08:06:12 +02:00
parent f2b5dd91c4
commit 758cb059d7
3 changed files with 25 additions and 3 deletions

15
bin/handle-volume-change Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
SINK=`pactl list short sinks | grep RUNNING | cut -f1`
case "$1" in
"up")
pactl set-sink-volume $SINK +10% && pactl set-sink-mute $SINK 0
;;
"down")
pactl set-sink-volume $SINK -10% && pactl set-sink-mute $SINK 0
;;
"mute")
pactl set-sink-mute $SINK toggle
;;
esac