Skip to content

Commit

Permalink
Merge pull request #1 from Louson/master
Browse files Browse the repository at this point in the history
Mute: use toggle instead of absolute values
  • Loading branch information
boredomwontgetus committed Sep 17, 2016
2 parents 5ff634c + b3fc8f7 commit 5ca5e81
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pa-vol.sh
Expand Up @@ -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() {
Expand Down

0 comments on commit 5ca5e81

Please sign in to comment.