libinput 配置文件
输入以下命令
sudo vim /etc/X11/xorg.conf.d/40-libinput.conf
#把以下内容复制进去
Section "InputClass"
# 限定此配置文件只适用于触控板
Identifier "touchpad"
MatchIsTouchpad "on"
# 设定驱动为 libinput
Driver "libinput"
# 在后面插入具体配置
# ...
# 使用预设的触控板加速配置 2
Option "AccelerationProfile" "2"
# 设置灵敏度为 0.05
Option "Sensitivity" "0.05"
# 设置轻触点击
Option "Tapping" "on"
#设置单指双指和三指分别对应左右中按键
Option "TappingButtonMap" "lrm"
#设置自然滚动
Option "NaturalScrolling" "on"
EndSection