使用imwheel优化不同软件的滚动效果

不知道是Linux系统的通病,还是自己鼠标的驱动不太行,测试过manjaro,arch,deepin等等系统,自己笔记本鼠标滚轮都有很大的问题。要么滚的太慢,要么滚的太快。

1、安装imwheel,比较简单:

#Debian,Ubuntu
sudo apt install imwheel

#arch,manjaro
sudo pacman -S imwheel

2、修改配置文件.imwheelrc:

"^chromium$"
Control_L,Up,Control_L|Button4
Control_R,Up,Control_R|Button4
Control_L,Down,Control_L|Button5
Control_R,Down,Control_R|Button5
Shift_L,Up,Shift_L|Button4
Shift_R,Up,Shift_R|Button4
Shift_L,Down,Shift_L|Button5
Shift_R,Down,Shift_R|Button5
None,Up,Button4,7,0,34285
None,Down,Button5,7,0,34285

"^netease-cloud-music$"
Control_L,Up,Control_L|Button4
Control_R,Up,Control_R|Button4
Control_L,Down,Control_L|Button5
Control_R,Down,Control_R|Button5
Shift_L,Up,Shift_L|Button4
Shift_R,Up,Shift_R|Button4
Shift_L,Down,Shift_L|Button5
Shift_R,Down,Shift_R|Button5
None,Up,Button4,6,0,40000
None,Down,Button5,6,0,40000

"^Telegram$"
Control_L,Up,Control_L|Button4
Control_R,Up,Control_R|Button4
Control_L,Down,Control_L|Button5
Control_R,Down,Control_R|Button5
Shift_L,Up,Shift_L|Button4
Shift_R,Up,Shift_R|Button4
Shift_L,Down,Shift_L|Button5
Shift_R,Down,Shift_R|Button5
None,Up,Button4,5,0,48000
None,Down,Button5,5,0,48000

最后两行None,Up,None,Down,是鼠标滚动行数,根据自己的需求修改即可。

3、启动:

imwheel kill

留言

* - 必填