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

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

在以前的Ubuntu版本中,我曾经使用gpointing-device-settings启用中间鼠标仿真。 包也存在于14.04,所以我猜它仍然有效:

 sudo apt-get install gpointing-device-settings gpointing-device-settings 

更新1: gpointing-device-settings在14.04崩溃。 但我找到了一个解决方法,在dconf中手动启用鼠标中键仿真:

 sudo apt-get install dconf-editor dconf-editor 

导航到/ org / gnome / settings-daemon / peripherals / mouse并激活启用中键的function

更新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 

更新3:在Ubuntu再次使用Gnome之后,这再次发生了变化。 对于17.10,18.04等,可以使用Gnome Tweak Tool应用此设置,如本问答所述: 键盘和鼠标 – >中键点击粘贴

继@ jotrocken的回答后,配置几乎可以正常工作。 它应该是:

 Section "InputClass" Identifier "middle button emulation class" MatchIsPointer "on" Option "Emulate3Buttons" "True" EndSection 

然后重启当前在系统上运行的lightdm或其他DM。