我的外围设备包括两个物理鼠标,一个内置在我笔记本上的触摸屏,以及两个无线媒体键盘上的触摸屏。我想在我所有的触摸屏上反向滚动方向。
我尝试了设置->鼠标和触屏->触屏->自然滚动。它适用于我的笔记本电脑内置触摸屏,但无线键盘触屏并不受touchpad设置的影响,而是受鼠标设置的影响,所以我猜它们被检测为老鼠。我不想在我的实际鼠标中逆转滚动方向。
最终,我希望有一种方法来调整每个设备的滚动方向,而不是每个设备类型。有办法做到这一点吗?
发布于 2023-03-11 21:56:45
我想出了一种在启动脚本中使用一些xinput命令来完成这个任务的方法(以及其他一些有用的东西)。
#!/bin/bash
# disable all acceleration
xset m 00
# set sensitivities
G305_sens=0.2
Aerox3_sens=1.0
xinput --set-prop "pointer:Logitech G305" "Coordinate Transformation Matrix" $G305_sens 0 0 0 $G305_sens 0 0 0 1
xinput --set-prop "pointer:SteelSeries SteelSeries Aerox 3" "Coordinate Transformation Matrix" $Aerox3_sens 0 0 0 $Aerox3_sens 0 0 0 1
# set touchpad reverse scrolling
# (ASUS touchpad gets set using ubuntu touchpad settings)
xinput --set-prop "pointer:Logitech K830" "libinput Natural Scrolling Enabled" 1
xinput --set-prop "pointer:Logitech K400 Plus" "libinput Natural Scrolling Enabled" 1
对于任何想要实现这一目标的人,请使用.
xinput --list --short
...to找到您的指针设备名称。那就用..。
xinput --list-props YOUR_DEVICE_NAME
..。找到自然滚动的道具,因为我不知道它是否总是和我的一模一样。
https://askubuntu.com/questions/1458606
复制相似问题