对于Corsair M65游戏鼠标,我做了以下工作
$xinput --list --short
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Corsair Corsair M65 Gaming Mouse id=9 [slave pointer (2)]
⎜ ↳ Corsair Corsair M65 Gaming Mouse id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Corsair Corsair M65 Gaming Mouse id=10 [slave keyboard (3)]
↳ Metadot - Das Keyboard Das Keyboard id=12 [slave keyboard (3)]
↳ Metadot - Das Keyboard Das Keyboard id=13 [slave keyboard (3)]
↳ Corsair Corsair M65 Gaming Mouse id=14 [slave keyboard (3)]
因此,我的鼠标ID为9.。我得到与此鼠标关联的寄存器:
$ xinput --list-props 9
Device Corsair Corsair M65 Gaming Mouse:
Device Enabled (149): 1
Coordinate Transformation Matrix (151): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (286): 0
libinput Natural Scrolling Enabled Default (287): 0
libinput Scroll Methods Available (288): 0, 0, 1
libinput Scroll Method Enabled (289): 0, 0, 0
libinput Scroll Method Enabled Default (290): 0, 0, 0
libinput Button Scrolling Button (291): 2
libinput Button Scrolling Button Default (292): 2
libinput Middle Emulation Enabled (293): 1
libinput Middle Emulation Enabled Default (294): 0
libinput Accel Speed (295): 0
libinput Accel Speed Default (296): 0.000000
libinput Accel Profiles Available (297): 1, 1
libinput Accel Profile Enabled (298): 1, 0
libinput Accel Profile Enabled Default (299): 1, 0
libinput Left Handed Enabled (300): 0
libinput Left Handed Enabled Default (301): 0
libinput Send Events Modes Available (271): 1, 0
libinput Send Events Mode Enabled (272): 0, 0
libinput Send Events Mode Enabled Default (273): 0, 0
Device Node (274): "/dev/input/event3"
Device Product ID (275): 6940, 6917
libinput Drag Lock Buttons (302): <no items>
libinput Horizontal Scroll Enabled (303): 1
我将libinput Accel Speed(295)设置为-1以减慢它的速度。
$xinput -set-prop 9 295 -1
然后,我将其添加到启动应用程序中。