summaryrefslogtreecommitdiff
path: root/tools/libinput-list-kernel-devices.py
Commit message (Collapse)AuthorAgeFilesLines
* tools: add a --hid toggle to libinput-list-kernel-devicesPeter Hutterer2022-12-081-1/+52
| | | | | | | | | | | | Lists all SUBSYSTEM=hid devices, including the respective hidraw and evdev nodes. Note that this takes a shortcut in the udev handling: in theory we *should* compare the hidraw/evdev parent device with our hid device. In practice, checking if the devpath starts with the same substring is good enough. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: add a libinput list-kernel-devices toolPeter Hutterer2022-12-081-0/+69
Same as libinput list-devices, but lists the available event nodes. This effectively does the same as libinput record without arguments but it's more obvious in what it is supposed to do and thus easier to point to. Also, it uses pyudev instead of libevdev so it does not need to run as root to discover devices. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>