AccelProfile
2025-02-17
Default mouse acceleration settings on X11 are anoying as hell, especially when you just launch your i3-wm and realize mouse movements are way off. On most DEs you can change it from within settings, but with a WM you're on your own.
ArchWiki article on this topic: https://wiki.archlinux.org/title/Mouse_acceleration
Quick fix: /etc/X11/xorg.conf.d/40-libinput.conf
Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "AccelProfile" "flat"
EndSection
The second fix is for touchpad tap to click. Whether I like to have it enabled depends on a device.
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "on"
EndSection
You're welcome.