xinput ids

Kai Hendry hendry at webconverger.com
Sun Jun 7 23:53:34 PDT 2015


Hi there,

I'm trying to reliably configure a touch input device in X. However the
IDs can change between reboots.

>From doing some googling, it seems that most people script something
like:

ID=`xinput list | grep -Eo 'ouchpad\s*id\=[0-9]{1,2}' | grep -Eo
'[0-9]{1,2}'`


To find the ID reliably. Is this the right way to do it? Is there
perhaps a better way with udev/systemd?

Many thanks,


More information about the xorg mailing list