Warning: THIS WIKI IS DEPRECATED. It is no longer being maintained, and contains outdated and incorrect information. Please refer to the Void Handbook, https://docs.voidlinux.org/, for the official documentation. If you can't find the information you're seeking, please raise an issue at https://github.com/void-linux/void-docs/issues

Libinput

From Void Linux Wiki
Jump to navigation Jump to search

Installation

Install libinput:

# xbps-install -S libinput

And for Xorg, xf86-input-libinputis required as well:

# xbps-install -S xf86-input-libinput

Configuration

For Wayland, there is no libinput configuration file. The window manager/desktop environment in use is responsible for configuration instead.

For Xorg, the default libinput configuration file is stored in /usr/share/X11/xorg.conf.d/40-libinput.conf which should be copied to /etc/X11/xorg.conf.d/ for editing:

# mkdir /etc/X11/xorg.conf.d/
# cp -av /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/

Edit /etc/X11/xorg.conf.d/40-libinput.conf as required. See xorg.conf(5) for more on how to write Xorg configuration files and libinput(4) for more on valid libinput settings. Common settings for the touchpad section are as follows:

Section "InputClass"
        Identifier "libinput touchpad catchall"
        Driver "libinput"
        MatchDevicePath "/dev/input/event*"
        MatchIsTouchpad "1"
        Option "AccelProfile" "flat"
        Option "ClickMethod" "buttonareas"
        Option "DisableWhileTyping" "0"
        Option "HorizontalScrolling" "1"
        Option "LeftHanded" "0"
        Option "MiddleEmulation" "0"
        Option "NaturalScrolling" "1"
        Option "ScrollMethod" "twofinger"
        Option "SendEventsMode" "enabled"
        Option "Tapping" "1"
        Option "TappingDrag" "1"
        Option "TappingDragLock" "0"
EndSection