[Noob] can't get inverted scrolling to work in my i3 environment

Hi, as you can see from the title I am new in i3 environment, I tried a lot of things but can figure out how to get inverted scrolling work in here, I tried to copy paste the following code in my ~.config/i3/config file but when I refresh the i3 manager (with $mod+r) it is just throwing error. please help

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
      Option "NaturalScrolling" "true"

Hello,

Where did you “learned” that?
You probably saw somewhere/something related to /usr/share/X11/xorg.conf.d/40-libinput.conf
where you add the line Option "NaturalScrolling" "True" like this:

For your mouse:

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

For your touchpad:

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

Then log off and on to apply, but was never about adding it to the i3 config file …

1 Like