summaryrefslogtreecommitdiff
path: root/audio_jack_plugged_in.sh
diff options
context:
space:
mode:
Diffstat (limited to 'audio_jack_plugged_in.sh')
-rw-r--r--[-rwxr-xr-x]audio_jack_plugged_in.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/audio_jack_plugged_in.sh b/audio_jack_plugged_in.sh
index c8277e7..af121a8 100755..100644
--- a/audio_jack_plugged_in.sh
+++ b/audio_jack_plugged_in.sh
@@ -1,6 +1,10 @@
#!/usr/bin/env sh
case "$3" in
- plug) amixer sset Speaker off ;;
- unplug) amixer sset Speaker on ;;
+plug)
+ amixer sset Speaker off
+ amixer sset 'Playback Polarity' Normal ;;
+ unplug)
+ amixer sset 'Playback Polarity' 'R Invert'
+ amixer sset Speaker on ;;
esac