diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-11-15 11:20:39 +1000 |
---|---|---|
committer | José Expósito <jose.exposito89@gmail.com> | 2021-11-16 06:47:48 +0000 |
commit | 3cb39abe9b229c18938fdf3748c60004a79d51a3 (patch) | |
tree | e6c3fea64b23edc01c009e51c03d3776bc483be9 | |
parent | d1f274c78119d8cc59e4ae781c4fcdee20bb8aff (diff) | |
download | libinput-3cb39abe9b229c18938fdf3748c60004a79d51a3.tar.gz |
doc/user: expand the udev rules for better readability
Split it over multiple lines and use fake cat command to show where that
rule could live.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | doc/user/device-configuration-via-udev.rst | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/doc/user/device-configuration-via-udev.rst b/doc/user/device-configuration-via-udev.rst index 6f36064b..80f536b1 100644 --- a/doc/user/device-configuration-via-udev.rst +++ b/doc/user/device-configuration-via-udev.rst @@ -68,10 +68,13 @@ MOUSE_WHEEL_CLICK_ANGLE Below is an example udev rule to assign "seat1" to a device from vendor -0x012a with the model ID of 0x034b. :: +``0x012a`` with the model ID of ``0x034b``. :: - ACTION=="add|change", KERNEL=="event[0-9]*", ENV{ID_VENDOR_ID}=="012a", \ - ENV{ID_MODEL_ID}=="034b", ENV{ID_SEAT}="seat1" + $ cat /etc/udev/rules.d/99-my-device-is-on-seat1.rules + ACTION=="add|change", KERNEL=="event[0-9]*", \ + ENV{ID_VENDOR_ID}=="012a", \ + ENV{ID_MODEL_ID}=="034b", \ + ENV{ID_SEAT}="seat1" @@ -96,10 +99,13 @@ handle some combinations for historical reasons. Below is an example udev rule to remove an **ID_INPUT_TOUCHPAD** setting and change it into an **ID_INPUT_TABLET** setting. This rule would apply -for a device with the vendor/model ID of 012a/034b. :: +for a device with the vendor/model ID of ``012a``/``034b``. :: - ACTION=="add|change", KERNEL=="event[0-9]*", ENV{ID_VENDOR_ID}=="012a", \ - ENV{ID_MODEL_ID}=="034b", ENV{ID_INPUT_TOUCHPAD}="", ENV{ID_INPUT_TABLET}="1" + $ cat /etc/udev/rules.d/99-my-device-is-a-tablet.rules + ACTION=="add|change", KERNEL=="event[0-9]*", \ + ENV{ID_VENDOR_ID}=="012a", \ + ENV{ID_MODEL_ID}=="034b", \ + ENV{ID_INPUT_TOUCHPAD}="", ENV{ID_INPUT_TABLET}="1" |