Skip to content

Instantly share code, notes, and snippets.

@xcession
Last active September 12, 2021 16:24
Show Gist options
  • Save xcession/e741ec6f967b88d54d03320ffb115df0 to your computer and use it in GitHub Desktop.
Save xcession/e741ec6f967b88d54d03320ffb115df0 to your computer and use it in GitHub Desktop.
[LibInput Natural Scrolling] Enable LibInput Natural Scrolling #libinput #x11 #xorg

Edit /usr/share/X11/xorg.conf.d/40-libinput.conf

Add Option "NaturalScrolling" "True"

For mouse:

Section "InputClass"
    Identifier "libinput pointer catchall"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "NaturalScrolling" "True"
EndSection

For touchpad:

Section "InputClass"
    Identifier "libinput touchpad catchall"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "NaturalScrolling" "True"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment