summaryrefslogtreecommitdiffstats
path: root/other/acpid/jack.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xother/acpid/jack.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/other/acpid/jack.sh b/other/acpid/jack.sh
new file mode 100755
index 0000000..e71d17d
--- /dev/null
+++ b/other/acpid/jack.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+# acpi script that takes an entry for headphone actions
+
+case "$1" in
+ jack/headphone)
+ case "$3" in
+ plug)
+ echo "⮜" > /tmp/spkicon
+ ;;
+ unplug)
+ echo "⮟" > /tmp/spkicon
+ ;;
+ esac
+ ;;
+esac
+
+# vim:set ts=4 sw=4 ft=sh et: