Add volume control shortcuts
This commit is contained in:
15
bin/handle-volume-change
Normal file
15
bin/handle-volume-change
Normal 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
|
||||
Reference in New Issue
Block a user