Answers:
您可以使用xinput设置鼠标的灵敏度/加速度。
$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech USB-PS/2 Optical Mouse id=8 [slave pointer (2)]
⎜ ↳ Microsoft Microsoft® Nano Transceiver v2.0 id=10 [slave pointer (2)]
⎜ ↳ Microsoft Microsoft® Nano Transceiver v2.0 id=11 [slave pointer (2)]
⎜ ↳ Macintosh mouse button emulation id=13 [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)]
↳ Power Button id=7 [slave keyboard (3)]
↳ Microsoft Microsoft® Nano Transceiver v2.0 id=9 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=12 [slave keyboard (3)]
从该输出中获取id
鼠标的数值。我将为我的Logitech鼠标提供一个示例。对于多只小鼠,冲洗并重复。
因此,对于我的罗技我将使用xinput get-feedbacks <device name>
和xinput set-ptr-feedback <device name> <threshold> <num> <denom>
$ xinput get-feedbacks 8
1 feedback class
PtrFeedbackClass id=0
accelNum is 3
accelDenom is 10
threshold is 4
加速度设置为分数,因此您需要为其设置nom和denom:
$ xinput set-ptr-feedback 8 4 3 1
$ xinput get-feedbacks 8
1 feedback class
PtrFeedbackClass id=0
accelNum is 3
accelDenom is 1
threshold is 4