Touchpad Support for Archlinux

A more detailed illustrate in Archwiki: libinput

install driver

According to Archwiki the synaptics is no longer actively updated, so the better choice is using libinput as touchpad driver. run:

# pacman -S xf86-input-libinput

configuring

the config file of libinput is located at /etc/X11/xorg.conf.d/. create a new file named 30-touchpad.conf in the location path, and write a new section labeled “InputClass” in it in such format:

Section "InputClass"
    Identifier "libinput touchpad catchall"
    MatchIsTouchpad "on"
    Driver "libinput"
EndSection

by default libinput for touchpad supports clicking and srcolling. to enable tap-as-click you need to add in the section body:

Option "Tapping" "on"

optional

natural scrolling permits you scrolling in a reversed way. add:

Option "NartualScrolling" "true"

for more options see the man page of libinput.

下篇defination and laws of monad in haskell