Lubuntu 17.04 中的自然滚动

Vag*_*ond 8 lubuntu

我一直在尝试让自然滚动运行,但设置中没有选项。我已经通过 synclient 查看了参数,并且在那里也没有自然滚动的选项,就像在普通的 Ubuntu 中一样。有任何想法吗?

小智 7

你可以试试这个。注意 6 和 7 交换了。

自然滚动:

echo "pointer = 1 2 3 5 4 7 6 8 9 10 11 12" > ~/.Xmodmap && xmodmap ~/.Xmodmap
Run Code Online (Sandbox Code Playgroud)

信息来自:https : //andym3.wordpress.com/2011/09/03/the-one-line-method-of-getting-natural-scrolling-in-linux/


Gin*_*ino 5

正如@Pilot6 建议的那样,对 /usr/share/X11/xorg.conf.d/40-libinput.conf 进行编辑。但是添加到“指针”和“触摸板”部分。

找到“指针”部分并在那里添加“自然滚动”选项。

Section "InputClass"
    Identifier "libinput pointer catchall"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "NaturalScrolling" "true"  # <-- add this line
EndSection
Run Code Online (Sandbox Code Playgroud)

对触摸板部分执行相同操作:

Section "InputClass"
    Identifier "libinput touchpad catchall"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "NaturalScrolling" "true" # <-- add this line
EndSection
Run Code Online (Sandbox Code Playgroud)

保存这些更改、重新启动和自然滚动现在应该适合您。