Permalink
Browse files

Merge pull request #1 from Louson/master

Mute: use toggle instead of absolute values
  • Loading branch information...
2 parents 4c4bd61 + f924664 commit bce594e36392a504b98d38384c3be7ce982f5818 @boredomwontgetus committed on GitHub Sep 17, 2016
Showing with 1 addition and 5 deletions.
  1. +1 −5 pa-vol.sh
View
@@ -36,11 +36,7 @@ function minus() {
}
function mute() {
- if [ $MUTE_STATE = no ]; then
- pactl set-sink-mute $SINK_NAME 1
- elif [ $MUTE_STATE = yes ]; then
- pactl set-sink-mute $SINK_NAME 0
- fi
+ pactl set-sink-mute $SINK_NAME toggle
}
function get() {

0 comments on commit bce594e

Please sign in to comment.