於是拿出塵封已久的羅技木星軌跡球來用
羅技木星軌跡球是我用過滾球最舒服的軌跡球
(其實是因為 K 牌好貴)
但沒有滾輪是他的缺點
在 Windows 底下有模擬滾輪的軟體,在 Linux 之下有沒有呢?
搜尋了一番之後找到這一篇討論
https://unix.stackexchange.com/questions/367106/logitech-marble-mouse-linux-scroll-modifier-setup
依照 3 樓的方法寫了設定檔
但用起來還是有點缺憾,中鍵得要按左右兩鍵
於是改了一下設定檔成以下這樣
左邊小按鍵模擬為滾輪鍵,按住並滑動滾球就可以上下左右四方向捲動視窗
單擊左邊小按鍵設定為中鍵
單擊右邊小按鍵設定為上一頁
完美!
# /usr/share/X11/xorg.conf.d/50-marble-mouse.confSection "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "ButtonMapping" "1 0 3 4 5 6 7 2 8"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "8"
Option "ZAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "Emulate3Buttons" "true"
EndSection