Permalink
Browse files

Mute: use toggle instead of absolute values

  • Loading branch information...
1 parent 4c4bd61 commit f924664eeab872027e31bf2dd8d240bf0446bb24 @Louson Louson committed Sep 16, 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 f924664

Please sign in to comment.