|
|
|
@ -2,10 +2,9 @@ |
|
|
|
|
pidof svkbd-sxmo || svkbd-sxmo & |
|
|
|
|
|
|
|
|
|
OUTINPUT="$( |
|
|
|
|
echo "speaker |
|
|
|
|
headphones |
|
|
|
|
earpiece |
|
|
|
|
none |
|
|
|
|
echo "Speaker |
|
|
|
|
Headphones |
|
|
|
|
Earpiece |
|
|
|
|
Close Menu" | dmenu -p "Audio Out" -c -fn "Terminus-30" -l 20 |
|
|
|
|
)" |
|
|
|
|
|
|
|
|
@ -16,15 +15,15 @@ SPEAKER="Line Out" |
|
|
|
|
HEADPHONE="Headphone" |
|
|
|
|
EARPIECE="Earpiece" |
|
|
|
|
|
|
|
|
|
amixer set "$SPEAKER" mute > /dev/null |
|
|
|
|
amixer set "$HEADPHONE" mute > /dev/null |
|
|
|
|
amixer set "$EARPIECE" mute > /dev/null |
|
|
|
|
amixer set "$SPEAKER" mute |
|
|
|
|
amixer set "$HEADPHONE" mute |
|
|
|
|
amixer set "$EARPIECE" mute |
|
|
|
|
|
|
|
|
|
if [[ "$OUTINPUT" = "speaker" ]]; then |
|
|
|
|
amixer set "$SPEAKER" unmute > /dev/null |
|
|
|
|
elif [[ "$OUTINPUT" = "headphones" ]]; then |
|
|
|
|
amixer set "$HEADPHONE" unmute > /dev/null |
|
|
|
|
elif [[ "$OUTINPUT" = "earpiece" ]]; then |
|
|
|
|
amixer set "$EARPIECE" unmute > /dev/null |
|
|
|
|
if [[ "$OUTINPUT" = "Speaker" ]]; then |
|
|
|
|
amixer set "$SPEAKER" unmute |
|
|
|
|
elif [[ "$OUTINPUT" = "Headphones" ]]; then |
|
|
|
|
amixer set "$HEADPHONE" unmute |
|
|
|
|
elif [[ "$OUTINPUT" = "Earpiece" ]]; then |
|
|
|
|
amixer set "$EARPIECE" unmute |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|