3

Elementary OS(Ubuntu) 系统鼠标滚轮速度调整

 2 years ago
source link: http://i.lckiss.com/?p=7703
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Elementary OS(Ubuntu) 系统鼠标滚轮速度调整

2021-12-31

不知道是虚拟机的问题还是系统的问题,以前物理机没有这种感受,不过好在也有解决办法。

需要一个 imwheel 的软件包,网上也都有,装它:

sudo apt install imwheel

装完修改配置文件:

nano ~/.imwheelrc

直接粘贴相关内容:

".*"
None,      Up,   Button4, 3
None,      Down, Button5, 3
Control_L, Up,   Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L,   Up,   Shift_L|Button4
Shift_L,   Down, Shift_L|Button5

橙色的 3 是滚轮速度,我测试是数值越大越快,3 于我现在的环境最合适,自行调整,改完后可以自己运行试试,直接执行:

imwheel

但这样并不满足需求,作为一个每次开机都需要执行的服务,还是让系统自动执行吧,这种情况最好的办法是用 systemd 进行管理,但经过尝试后,问题比较多,最后在 ~/.config/autostart 下添加了启动方式解决:

文件名:imwheel.desktop

[Desktop Entry]
Name[zh_CN]=鼠标滚轮加速
Comment[zh_CN]=imwheel kill
Exec=imwheel kill
Icon=application-default-icon
X-GNOME-Autostart-enabled=true
Type=Application

当然,这种只是特定情况的下桌面环境的解决方案,我这边是: Elementary OS,这种行为定义也可以在系统设置中创建。

对于其他系统,则需要一个 system service ,但对于每个系统的 service 依赖服务的不同,适用概率也不高,还是得自行研究。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK