The scripts returns (echo
s) xinput id of a pointing device by its name, and if the name is not unique also by its USB interface number.
It is suggested to set the script mode to grant execute permissions.
Name | Position | Mandatory | Default value | Description |
---|---|---|---|---|
DEVICE_NAME |
1 | yes | The device name as reported by xinput list . |
|
DEVICE_NUM |
2 | optional | 0 |
The device USB interface number: udev 's bInterfaceNumber / ID_USB_INTERFACE_NUM value.If the value is one character (digit) only, then it is left padded with 0 . |
flags:-f or --force |
last | optional | absent | If the flag is present, always compare DEVICE_NUM value, even if there is only one device with DEVICE_NAME . |