參考 https://wiki.archlinux.org/index.php/Mouse_acceleration
在 X windows 下,要設定個別的 mouse 的參數,例如加速與靈敏度,可以使用 xinput。
emerge -av x11-apps/xinput
Using xinput
First, get a list of devices plugged in (ignore any virtual pointers):
$ xinput list
Take note of the ID. You may also use the full name in commands if the ID is prone to changing.
Get a list of available properties and their current values available for modification with
$ xinput list-props 9
where 9
is the ID of the device you wish to use. Or
$ xinput list-props mouse brand
where mouse brand is the name of your mouse given by $ xinput list
Example, changing the property of Constant Deceleration
to 2:
$ xinput list-props 9
Device 'mouse brand': Device Enabled (121): 1 Device Accel Profile (240): 0 Device Accel Constant Deceleration (241): 1.000000 Device Accel Adaptive Deceleration (243): 1.000000 Device Accel Velocity Scaling (244): 10.000000
$ xinput --set-prop 'mouse brand' 'Device Accel Constant Deceleration' 2
To make it permanent, edit xorg configuration (see above) or add commands to xprofile. The latter won't affect speed in a Display Manager.
Configuration example
You may need to resort to using more than one method to achieve your desired mouse settings. Here's what I did to configure a generic optical mouse: First, slow down the default movement speed 3 times so that it's more precise.
$ xinput --set-prop 9 'Device Accel Constant Deceleration' 3 &
Then, enable acceleration and make it 3 times faster after moving past 6 units.
$ xset mouse 3 6 &
If you are satisfied of the results, store the preceding commands in ~/.xinitrc
.
沒有留言:
張貼留言