模拟Lenovo Yoga 2 Pro Synaptics触摸板的中键点击

我正在编写指南如何在Lenovo Yoga 2 Pro上安装Ubuntu

要获得一个中间的鼠标按钮,我尝试了这个:

我编辑了文件/usr/share/X11/xorg.conf.d/50-synaptics.conf 。 在那里我编辑了“触摸板捕获”部分,所以它看起来像这样:

 Section "InputClass" Identifier "touchpad catchall" Driver "synaptics" MatchIsTouchpad "on" # This option is recommend on all Linux systems using evdev, but cannot be # enabled by default. See the following link for details: # http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html MatchDevicePath "/dev/input/event*" Option "FingerLow" "46" Option "FingerHigh" "46" Option "ClickFinger1" "1" Option "ClickFinger2" "2" Option "ClickFinger3" "3" Option "TapButton1" "1" Option "TapButton2" "2" Option "TapButton3" "3" Option "AreaBottomEdge" "85%" Option "SoftButtonAreas" "60% 0 85% 0 40% 60% 85% 0" # Btn2 LRTB - Btn3 LRTB Option "EmulateMidButtonTime" "75" EndSection 

(来源: http : //memobadz.wordpress.com/2014/02/16/lenovo-yoga-pro-2-on-ubuntu/ )

但这并没有启用memobadz’wordpress Blog中提到的模拟中间点击 (虽然它在其他方面仍然有很大帮助)。

如何通过点击三个手指来模拟鼠标中键?

到目前为止,我无法用这种帮助来管理它。

以下是我在/usr/share/X11/xorg.conf.d/50-synaptics.conf文件中的内容,并按预期工作。

 Section "InputClass" Identifier "touchpad catchall" Driver "synaptics" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Option "TapButton2" "3" Option "TapButton3" "2" EndSection 

或者,您可以按照中所述创建脚本

在桌面启动20秒后执行命令

或在$HOME/.xprofile包含以下命令

 sleep 20 synclient TapButton2=3 synclient TapButton3=2 

您不必在Ubuntu中点击触控板上的任何内容 – 您可以从2012年的每个答案点击右上角(现在在Ubuntu衍生Linux Mint 18中仍然如此): https:// askubuntu的.com /一个/ 141460