summaryrefslogtreecommitdiff
path: root/audio_jack_plugged_in.sh
diff options
context:
space:
mode:
Diffstat (limited to 'audio_jack_plugged_in.sh')
-rwxr-xr-xaudio_jack_plugged_in.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/audio_jack_plugged_in.sh b/audio_jack_plugged_in.sh
new file mode 100755
index 0000000..c8277e7
--- /dev/null
+++ b/audio_jack_plugged_in.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+case "$3" in
+ plug) amixer sset Speaker off ;;
+ unplug) amixer sset Speaker on ;;
+esac