volume.sh: add toggle

This commit is contained in:
Henrik Lissner 2016-10-21 00:09:26 +02:00
parent 6476741e55
commit 6b69d09ae4

View file

@ -11,6 +11,7 @@ case "$COMMAND" in
[0-9]*) amixer set Master $COMMAND ;; [0-9]*) amixer set Master $COMMAND ;;
[+-]) amixer set Master 10%$COMMAND ;; [+-]) amixer set Master 10%$COMMAND ;;
*mute) amixer set Master $COMMAND ;; *mute) amixer set Master $COMMAND ;;
toggle) amixer set Master toggle ;;
*) >&2 echo "Invalid command" *) >&2 echo "Invalid command"
exit 1 exit 1
;; ;;