conf: add an example snippet for how to assign options

Users still like to copy the whole file, potentially messing things up.
Let's put a warning into the file directly that this is less than ideal.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2019-01-07 16:26:47 +10:00
parent 04f42d6e0f
commit b63f7994dc

View File

@@ -1,4 +1,21 @@
# Match on all types of devices but joysticks # Match on all types of devices but joysticks
#
# If you want to configure your devices, do not copy this file.
# Instead, use a config snippet that contains something like this:
#
# Section "InputClass"
# Identifier "something or other"
# MatchDriver "libinput"
#
# MatchIsTouchpad "on"
# ... other Match directives ...
# Option "someoption" "value"
# EndSection
#
# This applies the option any libinput device also matched by the other
# directives. See the xorg.conf(5) man page for more info on
# matching devices.
Section "InputClass" Section "InputClass"
Identifier "libinput pointer catchall" Identifier "libinput pointer catchall"
MatchIsPointer "on" MatchIsPointer "on"