Arch-Linux
讓拇指按鈕工作 |佐伊 ec2-b
我是
steam
用來玩CS:GO
的Arch Linux
。到目前為止一切正常,但滑鼠拇指按鈕。我試圖在遊戲中映射它們,然後我意識到遊戲根本無法辨識這些鍵。我經歷了拇指按鈕 - 前進和後退,但我認為這裡的問題evdev
是沒有將拇指按鈕事件辨識為按鈕。(我正在使用Arch Linux
++設置bspwm
)sxhkd
xev
向前拇指按鈕的輸出LeaveNotify event, serial 33, synthetic NO, window 0x4c00001, root 0x1e6, subw 0x0, time 4046616, (2,420), root:(974,442), mode NotifyGrab, detail NotifyAncestor, same_screen YES, focus YES, state 0 EnterNotify event, serial 33, synthetic NO, window 0x4c00001, root 0x1e6, subw 0x0, time 4046777, (2,420), root:(974,442), mode NotifyUngrab, detail NotifyAncestor, same_screen YES, focus YES, state 0 KeymapNotify event, serial 33, synthetic NO, window 0x0, keys: 4294967270 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
xev
後拇指按鈕的輸出LeaveNotify event, serial 33, synthetic NO, window 0x4a00001, root 0x1e6, subw 0x0, time 3944070, (7,455), root:(979,477), mode NotifyGrab, detail NotifyAncestor, same_screen YES, focus YES, state 0 EnterNotify event, serial 33, synthetic NO, window 0x4a00001, root 0x1e6, subw 0x0, time 3944181, (7,455), root:(979,477), mode NotifyUngrab, detail NotifyAncestor, same_screen YES, focus YES, state 0 KeymapNotify event, serial 33, synthetic NO, window 0x0, keys: 4294967270 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
我也嘗試
xorg
了以下配置。Section "InputDevice" Identifier "Evdev Mouse" Driver "evdev" Option "Name" "Kingsis Peripherals ZOWIE Gaming mouse" Option "evBits" "+1-2" Option "keyBits" "~272-287" Option "relBits" "~0-2 ~6 ~8" Option "Pass" "3" Option "CorePointer" EndSection Section "ServerLayout" Identifier "Default Layout" InputDevice "Evdev Mouse" "CorePointer" EndSection
我試過殺人
sxhkd
根據this question中的解決方案,可以全域抓取密鑰。只有潛在的應用程序才會
sxhkd
如此,所以我終止了該程序並嘗試了xev
視窗上的拇指按鈕,但它給出了與上述相同的結果。如何讓拇指按鈕工作?
我完全忘記了我
imwheel
在後台執行以提高滾輪速度。滑鼠按鈕被全域擷取imwheel
但從未出現。我可以限制imwheel
擷取按鈕 4 和 5,就像這個問題的答案一樣
還不能評論,所以寫這個作為答案。我建議使用一些已知配置來檢查另一個常見的滑鼠,如以下連結所示: https ://wiki.archlinux.org/index.php/Mouse_buttons
例如,他們在那裡指出大多數羅技 MX 滑鼠中的拇指按鈕解析為 8 和 9。一旦一切都與其他普通滑鼠一起工作,使用 Zowie 進行故障排除可能會更清晰、更容易。