Ubuntu 14.04,如何设置鼠标中键模拟?(没有水龙头,真正的按钮)

use*_*992 6 mouse touchpad xorg 14.04 16.04

我寻找了这个主题,但我只找到了有关如何使用 N 根手指点击进行中键模拟(滚轮点击)的信息。我想使用通过 USB 连接的触控板和鼠标下的真实按钮进行仿真。对于这个主题,我看到在 中添加了标志/etc/X11/xorg.conf,但它似乎不存在/已在 Ubuntu 12.04 中移动

jot*_*ken 4

在以前版本的 Ubuntu 中,我曾经使用gpointing-device-settings启用中鼠标模拟。该软件包也适用于 14.04,所以我想它仍然有效:

sudo apt-get install gpointing-device-settings
gpointing-device-settings
Run Code Online (Sandbox Code Playgroud)

更新 1: gpointing-device-settings 在 14.04 上崩溃。但我找到了一种解决方法,可以在 dconf 中手动启用中鼠标模拟:

sudo apt-get install dconf-editor
dconf-editor
Run Code Online (Sandbox Code Playgroud)

导航到/org/gnome/settings-daemon/peripherals/mouse并激活middle-button-enabled

更新 2:上述方法对于 16.04 LTS 仍然有效。但这个官方解决方法的第一步有所帮助。请注意,指南的其余步骤可能不适用。

创建文件/usr/share/X11/xorg.conf.d/middle-mouse-button.conf并插入

Section "InputClass"
     Identifier "middle button emulation class"
     MatchIsPointer "on"
     Option "Emulate3Buttons" "on"
EndSection
Run Code Online (Sandbox Code Playgroud)

更新 3: Ubuntu 再次使用 Gnome 后,情况再次发生变化。对于 17.10、18.04 等,可以使用Gnome 调整工具应用设置,如本问答中所述:键盘和鼠标 -> 中键单击粘贴