natask / gestures

Fluid gestures for Linux.
MIT License
67 stars 7 forks source link

more robust device matching #6

Closed natask closed 3 years ago

natask commented 4 years ago

Is your feature request related to a problem? Please describe. Current device matching is not robust. It checks for keywords that aren't garrentied to match touchpads or touchscreens.

Describe the solution you'd like leverage udevadm test-builtin input_id ${PATH} on all entries in /proc/bus/input/devices and check if ID_INPUT_TOUCHPAD or ID_INPUT_TOUCHSCREEN is set. can make the lookup more specific by only applying it to devices With Handlers=mouse.

Describe alternatives you've considered It maybe possible to use KEY=4000 . or KEY=e520 . of /proc/bus/input/devices to match touchscreens and touchpads respectively. I am not sure if this matches to all devices though.