lmc can run mixer

This commit is contained in:
Luke Smith 2020-03-29 12:02:15 -04:00
parent 97cd22f7fc
commit 49247875e0
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -10,11 +10,13 @@ if [ "$PULSE" ]; then
mute() { pulsemixer --mute ;} mute() { pulsemixer --mute ;}
up() { pulsemixer --change-volume +"$NUM" ;} up() { pulsemixer --change-volume +"$NUM" ;}
down() { pulsemixer --change-volume -"$NUM" ;} down() { pulsemixer --change-volume -"$NUM" ;}
control() { pulsemixer ;}
else else
toggle() { amixer sset Master toggle ;} toggle() { amixer sset Master toggle ;}
mute() { amixer sset Master mute ;} mute() { amixer sset Master mute ;}
up() { amixer sset Master "$NUM"%+ ;} up() { amixer sset Master "$NUM"%+ ;}
down() { amixer sset Master "$NUM"%- ;} down() { amixer sset Master "$NUM"%- ;}
control() { alsamixer ;}
fi fi
case "$1" in case "$1" in
@ -22,6 +24,7 @@ case "$1" in
mute) mute ;; mute) mute ;;
up) up ;; up) up ;;
down) down ;; down) down ;;
esac >/dev/null control) control ;;
esac
pkill -RTMIN+10 "${STATUSBAR:?}" & pkill -RTMIN+10 "${STATUSBAR:?}" &