ArchLinux touchpad configuration
Install packages
- Touchpad support:
yay -s xf86-input-libinput
basic configuration
- Add to user group:
sudo gpasswd -a $USER input
- Add click function:
- Find the id of Touchpad, referred to as tid:
xinput list
- Find the device number of libinput Tapping Enabled, referred to as lnum:,
xinput list-props device
device is the id of Touchpad
- Turn on the click function:,
xinput set-prop tid lnum 1
replace tid and lnum with your own
- Simple configuration touchpad
/etc/X11/xorg.conf.d/40-libinput.conf
Attribute interpretation
Attributes |
meaning |
"Tapping" |
Enable click to send event |
TappingButtonMap |
lmr, single finger left button, two finger right button, three finger middle button |
DisableWhileTyping |
Typing does not detect mouse events |
TappingDrag |
Click drag |
Section "InputClass"
Identifier "touchpad"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "on"
Option "ButtonMapping" "1 3 0 4 5 6 7"
Option "TappingButtonMap" "lmr"
Option "DisableWhileTyping" "on"
Option "TappingDrag" "on"
EndSection
Advanced configuration (gesture)
- Gesture support:
yay -s libinput-gestures
- Configure gestures
- copy configuration file:
sudo cp /etc/libinput-gestures.conf ~/.config/libinput-gestures.conf
- Change file permissions (will be
li
changed to your own user name, echo $ USER to view)sudo chmod li:users ~/.cofig/libinput-gestures.conf
- debugging
- Use libinput debug-events to monitor touchpad events
libinput debug-events --device Device Node
(Device Node checks according to the lnum number of libinput list-props above)
- Use libinput debug-gui to monitor touchpad events
libinput debug-gui --device Device Node
- reference