0x2*_*fa0 26
运行synclient -l
以显示您的 Synaptics 触控板配置。在输出的末尾,你会发现类似
RightButtonAreaLeft = 3068
RightButtonAreaRight = 0
RightButtonAreaTop = 4326
RightButtonAreaBottom = 0
Run Code Online (Sandbox Code Playgroud)
必须通过键入以下两个命令将这些值更改为零:
synclient RightButtonAreaLeft=0
和 synclient RightButtonAreaTop=0
用一根手指点击触控板上的任何地方现在总是会触发左键点击。要右键单击,请在触控板上的任意位置单击两指。请注意,每次重新启动或重新登录时,新设置都会丢失。
在 Unity 中使自定义触控板设置永久化
要使新设置永久生效,请将这两个命令写入 shell 脚本并将脚本添加到您的启动应用程序中:
nano ~/.synaptics-custom-settings.sh
Run Code Online (Sandbox Code Playgroud)
将下面的代码粘贴到 shell 脚本中,用Ctrl+退出编辑器X,然后用 确认保存对话框Y。
#!/bin/bash
synclient RightButtonAreaLeft=0
synclient RightButtonAreaTop=0
Run Code Online (Sandbox Code Playgroud)
使 shell 脚本可执行:
chmod a+rx ~/.synaptics-custom-settings.sh
Run Code Online (Sandbox Code Playgroud)
在 Unity 中打开 Startup Applications 程序并添加~/.synaptics-custom-settings.sh
到启动应用程序列表中。这样,每次登录时都会自动应用自定义触控板设置。
来源:http : //kernpanik.com/geekstuff/2015/01/12/disable-rightclick-synaptics.html
出于我不明白的原因,Helio 的回答似乎只是有时对我有用。其他各种线程让我认为不同的配置文件之间存在一些冲突。无论如何,这是一个对我有用的快速解决方案。可能会帮助别人:
编辑 /usr/share/X11/xorg.conf.d/50-synaptics.conf
并注释掉这部分中的选项:
# This option enables the bottom right corner to be a right button on
# non-synaptics clickpads.
# This option is only interpreted by clickpads.
Section "InputClass"
Identifier "Default clickpad buttons"
MatchDriver "synaptics"
Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
# To disable the bottom edge area so the buttons only work as buttons,
# not for movement, set the AreaBottomEdge
# Option "AreaBottomEdge" "82%"
EndSection
Run Code Online (Sandbox Code Playgroud)
像这样:
# This option enables the bottom right corner to be a right button on
# non-synaptics clickpads.
# This option is only interpreted by clickpads.
Section "InputClass"
Identifier "Default clickpad buttons"
MatchDriver "synaptics"
# Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
# To disable the bottom edge area so the buttons only work as buttons,
# not for movement, set the AreaBottomEdge
# Option "AreaBottomEdge" "82%"
EndSection
Run Code Online (Sandbox Code Playgroud)
在 Ubuntu 20.04 上没有/usr/share/X11/xorg.conf.d/50-synaptics.conf
. 相反,您可以使用 GNOME Tweak 工具。安装它,sudo apt install gnome-tweak-tool
然后您可以切换鼠标触摸板模式:
选择“手指”选项对我有用。然后一键右键单击被禁用,但仍然可以通过用 2 个手指点击来完成。
来源:https : //itsfoss.com/fix-right-click-touchpad-ubuntu/
归档时间: |
|
查看次数: |
11549 次 |
最近记录: |