summaryrefslogtreecommitdiffstats
path: root/other/acpid/jack.sh
blob: e71d17d9583ed90f843b907060e599beecde1f2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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: