forked from wertarbyte/triggerhappy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtriggerhappy.conf.examples
More file actions
18 lines (18 loc) · 910 Bytes
/
triggerhappy.conf.examples
File metadata and controls
18 lines (18 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# adjust volume
KEY_VOLUMEUP 1 /usr/bin/amixer set Master 5%+
KEY_VOLUMEUP+KEY_LEFTSHIFT 1 /usr/bin/amixer set Master 15%+ # with modifier
KEY_VOLUMEUP 2 /usr/bin/amixer set Master 5%+ # even while holding
KEY_VOLUMEDOWN 1 /usr/bin/amixer set Master 5%-
KEY_VOLUMEDOWN+KEY_LEFTSHIFT 1 /usr/bin/amixer set Master 15%-
KEY_VOLUMEDOWN 2 /usr/bin/amixer set Master 5%-
# only trigger commands when in "media" mode
KEY_KPPLUS@media 1 /usr/bin/mpc next # next song
KEY_KPMINUS@media 1 /usr/bin/mpc prev # next song
# only used if in the nameless default mode
KEY_F12@ 1 @media # switch to media mode
KEY_F12@media 1 @ # switch back to nameless default mode
KEY_KPASTERISK 1 <KEY_VOLUMEDOWN # emit a synthetic key event through uinput
# enable trigger only on devices tagged "sys"
<sys>KEY_F11 1 id
# type 4 (EV_MSC), code 4 (MSC_SCAN), value 589825
EV_MSC 589825 echo "ir scan code example 589825"