您应该能够使用 来启用/禁用此功能gnome-tweak-tool
。如果您需要安装gnome-tweak-tool
,可以通过终端进行安装:
$ sudo apt install gnome-tweak-tool
Run Code Online (Sandbox Code Playgroud)
然后运行tweaks
,导航到Keyboard & Mouse
- 部分。在标题下touchpad
将Disable While Typing
开关切换至on
。
如果这仍然不适合您,您可以添加一个新文件/usr/share/X11/xorg.conf.d
并将其命名90-libinput-quirks.conf
为类似于以下内容
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "DisableWhileTyping" "True"
EndSection
Run Code Online (Sandbox Code Playgroud)
libinput.conf
文件名本身有些重要,它需要以比Ubuntu 18.04 捆绑的文件更高的数字开头。我的被命名,40-libinput.conf
所以我命名我的90-libinput-quirks.conf
以确保它是在原始配置之后加载的,从而覆盖/附加原始配置。
或者,您可以将其添加到默认文件中的上述Option "DisableWhileTyping" "True"
部分。我不确定默认配置文件是否可以被更新之类的东西覆盖,所以我更喜欢第一种方法。Identifier "libinput touchpad catchall"
40-libinput.conf
归档时间: |
|
查看次数: |
1538 次 |
最近记录: |