Jub*_*ast 21
Ubuntu 使用gnome,gnome 使用dconf(一个充满设置的“数据库”)。
如何:
sudo apt install dconf-editor 通过终端或Dconf Editor在 Ubuntu 软件中搜索org-> gnome-> desktop-> peripherals->mouse 这是鼠标设置。
您在accel-profile 中有以下选项:
要禁用鼠标加速:
Use default value为offCustom value为flat要更改鼠标速度:
org/gnome/desktop/peripherals/mouse/speedUse default value为offCustom value为适合您我找到了一个解决方案,您可以通过命令直接从终端使用gsettings。
# displays what this setting represents
gsettings describe org.gnome.desktop.peripherals.mouse accel-profile
# displays the values it accepts as input
gsettings range org.gnome.desktop.peripherals.mouse accel-profile
# sets the accelleration profile to 'flat'
gsettings set org.gnome.desktop.peripherals.mouse accel-profile 'flat'
Run Code Online (Sandbox Code Playgroud)
我来到这个解决方案是因为我偶然发现了https://developer.gnome.org/GSettings/#gsettings其中说。
要修改 dconf 后端存储本身,请使用 dconf 工具;但应该优先使用 gsettings。
此答案中的命令使用 gsettings 而不是 dconf。