summaryrefslogtreecommitdiff
path: root/udev/80-libinput-device-groups.rules.in
diff options
context:
space:
mode:
Diffstat (limited to 'udev/80-libinput-device-groups.rules.in')
-rw-r--r--udev/80-libinput-device-groups.rules.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/udev/80-libinput-device-groups.rules.in b/udev/80-libinput-device-groups.rules.in
new file mode 100644
index 00000000..c2af0ce7
--- /dev/null
+++ b/udev/80-libinput-device-groups.rules.in
@@ -0,0 +1,8 @@
+ACTION!="add|change", GOTO="libinput_device_group_end"
+KERNEL!="event[0-9]*", GOTO="libinput_device_group_end"
+
+ATTRS{phys}=="?*", \
+ PROGRAM="@UDEV_TEST_PATH@libinput-device-group %S%p", \
+ ENV{LIBINPUT_DEVICE_GROUP}="%c"
+
+LABEL="libinput_device_group_end"