[GUIDE] Keyboard shortcuts with triggerhappy

Dear Markus (@Maexx ),
yesterday late in the evening I found two interesting things…
First, most important and “making things easier, because it works”: As I have installed my kitchen radio now and had time and opportunitiy to LOOK exactly at the screen I’ve seen that in the Browser Window (Chrome) which appears at “KEY_HOMEPAGE” has three shortcuts configured in the middle of the start page.
The first one is: (taaadaaaaa!) - “Volumio”. Pressing this one recalls the Volumio GUI and Browser Window disappears.

Second and less important (because I cannot get it to work):
Triggerhappy (abandoned 2016, BTW) has an option: --ignore eventname
(see documentation) .

So it SHOULD work to put this in the service file" /lib/systemd/system/triggerhappy.service"
e.g.

change
ExecStart=/usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --us$
to
ExecStart=/usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --ignore KEY_HOMEPAGE --socket /run/thd.socket --us$

But it didn’t work in my case.
Eventually one have to re-create the service itself - but I don’t know how and I don’t want to disturb the system as it is a blackbox for me …

(I still cannot find ANY hint WHY triggerhappy is doing this!)

Kind regards,
Ralf

1 Like