1、安裝imwheel
sudo apt-get install imwheel
2、更改配置
sudo gedit ~/.imwheelrc
在打開的imwheelrc文件中添加下面的內容:
".*" None, Up, Button4, 5 None, Down, Button5, 5 Control_L, Up, Control_L|Button4 Control_L, Down, Control_L|Button5 Shift_L, Up, Shift_L|Button4 Shift_L, Down, Shift_L|Button5
第二三行中"5"表示滾輪速度,默認是“3”,推薦“5”。通過更改這個值,可以控制鼠標的滾動速度。
3、執行imwheel命令,從而使配置生效
imwheel
4、這樣的配置在再次開機之后便不再生效了,所以設置為開機自啟動。
打開開機自啟應用管理
gnome-session-properties
這彈出的編輯啟動程序命令中輸入:imwheel --kill --buttons "4 5"
至此大功告成!!!
參考博客:https://blog.csdn.net/a244068468/article/details/88364226,侵權則刪。