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.
20 lines
408 B
20 lines
408 B
#!/usr/bin/env sh |
|
ARG="$1" |
|
|
|
SPEAKER="Line Out" |
|
HEADPHONE="Headphone" |
|
EARPIECE="Earpiece" |
|
|
|
amixer set "$SPEAKER" mute |
|
amixer set "$HEADPHONE" mute |
|
amixer set "$EARPIECE" mute |
|
|
|
if [[ "$ARG" = "Speaker" ]]; then |
|
amixer set "$SPEAKER" unmute |
|
elif [[ "$ARG" = "Headphones" ]]; then |
|
amixer set "$HEADPHONE" unmute |
|
elif [[ "$ARG" = "Earpiece" ]]; then |
|
amixer set "$EARPIECE" unmute |
|
fi |
|
|
|
echo 1 > /tmp/sxmo_bar
|
|
|