小智 31
$ xinput --list
? Virtual core pointer id=2 [master pointer (3)]
? ? Virtual core XTEST pointer id=4 [slave pointer (2)]
? ? A4Tech USB Full Speed id=10 [slave pointer (2)]
? ? A4Tech USB Full Speed 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)]
? Power Button id=7 [slave keyboard (3)]
? CHESEN USB Keyboard id=8 [slave keyboard (3)]
? CHESEN USB Keyboard id=9 [slave keyboard (3)]
Run Code Online (Sandbox Code Playgroud)
$ xinput --set-prop 10 "Device Accel Constant Deceleration" 4Run Code Online (Sandbox Code Playgroud)
不知道为什么有两个相同的名字所以随机选择了id。它成功了。
#!/bin/bash
xinput --set-prop 10 "Device Accel Constant Deceleration" 4
xinput --set-prop 10 "Device Accel Velocity Scaling" 1
Run Code Online (Sandbox Code Playgroud)
然后运行命令:$ gnome-session-propertiesRun Code Online (Sandbox Code Playgroud)
并将脚本添加到列表中。chmod +x。
ken*_*enn 11
另一个选项是xset。
命令格式为
xset mouse <acceleration> <threshold>
Run Code Online (Sandbox Code Playgroud)
降低鼠标加速度
xset mouse 1 1
Run Code Online (Sandbox Code Playgroud)
提高鼠标速度
xset mouse 10 1
Run Code Online (Sandbox Code Playgroud)
mouse可以缩写为m. 鼠标的参数是acceleration和threshold。加速度可以指定为整数或简单的分数。当鼠标或机器连接的任何指针在短时间内acceleration移动超过threshold像素时,它的移动速度将提高数倍。这样,鼠标在缓慢移动时可以用于精确对齐,但可以设置为在需要时通过手腕轻弹在屏幕上移动。m 选项的一个或两个参数可以省略,但如果只给出一个,它将被解释为加速度。如果不使用参数或使用标志“default”,则将设置系统默认值。如果threshold提供了参数并且为 0,则acceleration参数将用于更自然和连续公式的指数,为慢动作提供精确控制,但为快速运动提供大范围的控制,并为两者之间的运动提供渐进过渡。acceleration这种情况下的推荐值为 3/2 到 2,但不限于该范围。
acceleration定义光标移动速度比默认速度快多少倍。threshold是加速生效所需的速度,通常以每 10 毫秒的设备单位来衡量。加速度可以是一小部分,所以如果你想减慢鼠标的速度,你可以使用 1/2, 1/3, 1/4, ... 如果你想让它更快,你可以使用 2/1, 3/1 , 4/1, ...
有关更多信息,请查看 https://wiki.archlinux.org/index.php/Mouse_acceleration
| 归档时间: |
|
| 查看次数: |
48071 次 |
| 最近记录: |