Skip to content

Instantly share code, notes, and snippets.

@txtyash
Created July 20, 2022 10:16
Show Gist options
  • Save txtyash/3272b92e648ed647d108a2c791f9c437 to your computer and use it in GitHub Desktop.
Save txtyash/3272b92e648ed647d108a2c791f9c437 to your computer and use it in GitHub Desktop.
Configure touchpad in xorg to support natural scrolling, tap to touch, etc.
# Put this file in /etc/X11/xorg.conf.d/ directory and then reboot to reflect changes
Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "on"
Option "ClickMethod" "clickfinger"
Option "NaturalScrolling" "true"
Option "AccelSpeed" "0.5"
EndSection
Section "InputClass"
Identifier "libinput touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput tablet catchall"
MatchIsTablet "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment