linuxOS_AP05/debian/test/usr/lib/udev/rules.d/60-triggerhappy.rules

9 lines
400 B
Plaintext
Raw Permalink Normal View History

2025-09-26 01:40:02 +00:00
## open new input devices and pass the file descriptor to the triggerhappy daemon
ACTION=="add", SUBSYSTEM=="input", \
ATTRS{name}!="triggerhappy", \
RUN+="/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev"
## add device exclusively
#ACTION=="add", SUBSYSTEM=="input", \
# ATTRS{name}=="Nintendo Wiimote", \
# RUN+="/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev --grab"