diff options
author | 2015-03-07 12:25:32 -0500 | |
---|---|---|
committer | 2015-03-07 12:25:32 -0500 | |
commit | 5009311386052de13a10969a7440402b300a1db9 (patch) | |
tree | a160eab0f561792856586095b154cf1c76099c53 /other/acpid/jack.sh | |
parent | 5ece0347f6af34ec0ee63cbe9f079bf317de9ee2 (diff) | |
download | configs-5009311386052de13a10969a7440402b300a1db9.tar.gz configs-5009311386052de13a10969a7440402b300a1db9.tar.xz configs-5009311386052de13a10969a7440402b300a1db9.zip |
use acpid for updating panel speaker/headset icon
Diffstat (limited to '')
-rwxr-xr-x | other/acpid/jack.sh | 17 |
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: |