why would I want output?

This commit is contained in:
Felix Van der Jeugt 2015-11-11 00:33:17 +01:00
parent 0f33f7a000
commit 07b33e2de3

View File

@ -5,9 +5,9 @@ command="${1:=toggle}"
current="$(amixer get Master | sed -n '/%/s/.*\[\(.*\)%\].*/\1/p' | head -1)" current="$(amixer get Master | sed -n '/%/s/.*\[\(.*\)%\].*/\1/p' | head -1)"
case $command in case $command in
toggle) amixer set Master toggle ;; toggle) amixer -q set Master toggle ;;
down) amixer set Master "$((current - 5))%" ;; down) amixer -q set Master "$((current - 5))%" ;;
up) amixer set Master "$((current + 5))%" ;; up) amixer -q set Master "$((current + 5))%" ;;
*) notify-send "learn to volume" ;; *) notify-send "learn to volume" ;;
esac esac