lmc can run mixer
This commit is contained in:
parent
97cd22f7fc
commit
49247875e0
1 changed files with 4 additions and 1 deletions
|
@ -10,11 +10,13 @@ if [ "$PULSE" ]; then
|
|||
mute() { pulsemixer --mute ;}
|
||||
up() { pulsemixer --change-volume +"$NUM" ;}
|
||||
down() { pulsemixer --change-volume -"$NUM" ;}
|
||||
control() { pulsemixer ;}
|
||||
else
|
||||
toggle() { amixer sset Master toggle ;}
|
||||
mute() { amixer sset Master mute ;}
|
||||
up() { amixer sset Master "$NUM"%+ ;}
|
||||
down() { amixer sset Master "$NUM"%- ;}
|
||||
control() { alsamixer ;}
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
|
@ -22,6 +24,7 @@ case "$1" in
|
|||
mute) mute ;;
|
||||
up) up ;;
|
||||
down) down ;;
|
||||
esac >/dev/null
|
||||
control) control ;;
|
||||
esac
|
||||
|
||||
pkill -RTMIN+10 "${STATUSBAR:?}" &
|
||||
|
|
Loading…
Reference in a new issue