Skip to content

Commit

Permalink
Fixed volume up/down command
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-parlette committed Jul 2, 2016
1 parent bf239be commit d3cd188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions audio
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ function volume () {
sink=`pactl list short sinks | grep RUNNING | cut -f1`
step="10"
if [[ "$1" =~ ^(up|u)$ ]]; then
cmd="pactl set-sink-volume $sink -- +$step%"
cmd="pactl -- set-sink-volume $sink +$step%"
fi
if [[ "$1" =~ ^(down|d)$ ]]; then
cmd="pactl set-sink-volume $sink -- -$step%"
cmd="pactl -- set-sink-volume $sink -$step%"
fi
if [[ "$1" =~ ^(mute|m)$ ]]; then
cmd="pactl set-sink-mute $sink toggle"
Expand Down

0 comments on commit d3cd188

Please sign in to comment.