Touchpad Natural Scrolling Arch Linux

Steps

  1. install xf86-input-libinput bash sudo pacman -S xf86-input-libinput

  2. go to /etc/X11/xorg.conf.d bash cd /etc/X11/xorg.conf.d

  3. create a file named 30.touchpad.conf using the nano text editor bash sudo nano 30-touchpad.conf

  4. put this in the created file:

Section "InputClass"
    Identifier "devname"
    Driver "libinput"
    Option "Tapping" "on"
    Option "Natural Scrolling" "true"
EndSection
  1. reboot and everything should work fine!

Update: 19/04/2023

  • changed Identifier "devname" to Identifier "touchpad"
  • also added this after Driver:
MatchIsTouchpad "on"