libinput is a library to handle input devices in Wayland compositors and to provide a generic X.Org input driver.
Extracted from the Libinput's wiki.
Instalation
The libinput driver is provided by xserver-xorg-input-libinput
Configuration
To configure the touchpad, copy the following file to /etc/X11/xorg.conf.d/ and refer to the options below.
/usr/share/X11/xorg.conf.d/40-libinput.conf
We will have something similar to the following
Section "InputClass" Identifier "libinput touchpad catchall" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Driver "libinput" EndSection
Below are some classic options
Option "Tapping" "bool"
Option "TappingDrag" "bool"
Option "NaturalScrolling" "bool"
Option "TappingButtonMap" "(lrm|lmr)"
For more information about the options visit man page