Ubuntu 16.04多点触控手势
是否可以在Ubuntu Xenial Xerus上进行多点触控手势? 比如TouchEgg? 我已经尝试但没有成功。
我从来没有成功地使用touchegg
。 但是有一种简单的方法可以通过其他工具实现它。 以下是步骤:首先下载,编译libinput-gestures
并从git repository安装:
git clone http://github.com/bulletmark/libinput-gestures cd libinput-gestures sudo make install
确保安装了libinput-tools
和xdotool
:
sudo apt install libinput-tools xdotool
确保当前用户在输入组中有权读取触摸板设备:
sudo gpasswd -a $USER input # Log out and back in to assign this group
每次启动时启动libinput-gestures
:
libinput-gestures-setup autostart
现在,您可以通过向下滑动来更改虚拟工作区。 如果要进行一些自定义配置,则应将配置文件复制到主文件夹。 然后你可以在那里改变它。
cp /etc/libinput-gestures.conf ~/.config/libinput-gestures.conf nano ~/.config/libinput-gestures.conf
查看git存储库以获取更多文档: https : //github.com/bulletmark/libinput-gestures
不要忘记注销然后登录以查看更改生效。
您可以通过禁用xinput 2FGT手势并让手势冒泡到xserver来触摸工作。
为此,请找出要修复的输入法的id:
xsetwacom list
然后禁用处理该方法的手势
xsetwacom set (id here) Gesture off
这使它对我有用。
如果要在重启后永久更改这些更改,最简单的方法是将上面的命令写入~/.xinirc
。 请参阅此处了解替代方法。
libinput-gestures适用于ubuntu 16.04上的xps15。
我想分享我的配置命令。
gesture swipe up 3 xdotool key ctrl+alt+Up gesture swipe down 3 xdotool key ctrl+alt+Down gesture swipe left 3 xdotool key ctrl+alt+Left gesture swipe right 3 xdotool key ctrl+alt+Right gesture swipe up 4 xdotool key super+w gesture swipe down 4 xdotool key ctrl+super+d
是。
首先,您要检查您的触摸板是否支持多点触控。 如此处所写我如何测试我的触控板是否支持超过2个手指手势?
sudo apt-get update sudo apt-get install geis-tools geisview
在新窗口中,转到DeviceAdded :(可能是最后一个选项)并检查设备触摸:。 finger_number将告诉您触摸板支持的多点触控手指的数量。
接下来,安装touchegg:
sudo apt install touchegg
接下来,转到您的主目录。
创建一个文件:.xprofile,其中包含以下内容:
synclient TapButton2=0 synclient ClickFinger2=0 synclient TapButton3=0 synclient ClickFinger3=0 synclient HorizTwoFingerScroll=0 synclient VertTwoFingerScroll=0 touchegg &
现在重新启动计算机。
当您登录时,您应该从touchegg获得多点触控支持。 您可以配置文件并修改手势
〜/的.config / touchegg / touchegg.conf