You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
408 B
21 lines
408 B
5 years ago
|
#!/usr/bin/env sh
|
||
5 years ago
|
ARG="$1"
|
||
5 years ago
|
|
||
|
SPEAKER="Line Out"
|
||
|
HEADPHONE="Headphone"
|
||
|
EARPIECE="Earpiece"
|
||
|
|
||
5 years ago
|
amixer set "$SPEAKER" mute
|
||
|
amixer set "$HEADPHONE" mute
|
||
|
amixer set "$EARPIECE" mute
|
||
5 years ago
|
|
||
5 years ago
|
if [[ "$ARG" = "Speaker" ]]; then
|
||
5 years ago
|
amixer set "$SPEAKER" unmute
|
||
5 years ago
|
elif [[ "$ARG" = "Headphones" ]]; then
|
||
5 years ago
|
amixer set "$HEADPHONE" unmute
|
||
5 years ago
|
elif [[ "$ARG" = "Earpiece" ]]; then
|
||
5 years ago
|
amixer set "$EARPIECE" unmute
|
||
5 years ago
|
fi
|
||
|
|
||
5 years ago
|
echo 1 > /tmp/sxmo_bar
|