From 5009311386052de13a10969a7440402b300a1db9 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 7 Mar 2015 12:25:32 -0500 Subject: use acpid for updating panel speaker/headset icon --- other/acpid/jack.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 other/acpid/jack.sh (limited to 'other/acpid/jack.sh') 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: -- cgit v1.2.3-60-g2f50