楼主进了一台Thinkpad T450s,触控板支持4点触控,安装了ubuntu14.04 LTS之后,触控板只剩下双指滑动了,略有不爽,各种google,百度。
真找到办法了。
首先得知了touchegg,但是各种安装不上,折腾的我心力焦悴,最后偶然在知乎上有一位伙伴说了他的电脑用xSwipe搞定了。
于是转向xSwipe,在开源项目 站上GitHub上找到了这神器。 传送门,或者复制地址:https://github.com/iberianpig/xSwipe 到地址栏打开,可能打开得很慢,楼主备份了要下载的文件,下载地址放在文章末尾了。
官方的文档是英文版,虽然推荐读者阅读原版文章,但是为了照顾英文不好的小伙伴,我找到了一片中文博客(点我访问),或者复制地址:http://loliko.me/zai-linuxzhong-tian-jia-hong-mo-ban-shou-shi/ 到地址栏打开
下面是GitHub上的说明文档:
xSwipe
xSwipe is multitouch gesture recognizer. This script make your linux PC able to recognize swipes like a Macbook.
Usage
Before running the script, you must first do some preparations.
- Download xSwipe
- Install X11::GUITest
- Enable SHMConfig
1. Download xSwipe
Type below code, download xSwipe from github
2. Install X11::GUITest
To install libx11-guitest-perl from synaptic package manager Or run the script on the terminal run as
NOTE: If using Ubuntu14.04, or later
Install older version synaptics driver that is compatible with xSwipe.
3. Enable SHMConfig
Open /etc/X11/xorg.conf.d/50-synaptics.conf with your favorite text editor and edit it to enable SHMConfig
NOTE:You will need to create the /etc/X11/xorg.conf.d/ directory and create 50-synaptics.conf if it doesn’t exist yet.
/etc/X11/xorg.conf.d/50-synaptics.conf
To reflect SHMConfig, restart your session.
That’s it for preparation.
Run xSwipe
To run xSwipe, type below code on terminal.
Note:You should run xSwipe.pl in same directory as “eventKey.cfg” .
You can use “swipe” with 3 or 4 fingers, they can call an event. Additionally, some gestures are avilable.
- edge-swipe : swipe with 2 fingers from outside edge(need to enable with option).
- long-press : hold pressure for 0.5 seconds with 3 or 4 fingers.
Option
- : RATE is sensitivity to swipe.Default value is 1. Shorten swipe-length by half (e.g.,)
- : INTERVAL is how often synclient monitor changes to the touchpad state. Default value is 10(ms). Set 50ms as monitoring-span. (e.g.,)
- : Natural scroll like Macbook, use “/nScroll/eventKey.cfg”.
- : Enable edge-swipe
Customize
You can customize the settings for gestues to edit eventKey.cfg. Please check this article, “How to customize gesture”.
Bindable gestures
- 3/4/5 fingers swipe
- 2/3/4/5 fingers long-press
- 2/3/4 fingers edge-swipe
- 2fingers edge-swipe: only swipe-left/right from right/left edge
- 3fingers edge-swipe: only swipe-down from top egde
Example shortcut keys
- go back/forward on browser (Alt+Left, Alt+Right)
- open/close a tab on browser (Ctrl+t/Ctrl+w)
- move tabs (Ctrl+Tab, Ctrl+Shift+Tab)
- move workspaces (Alt+Ctrl+Lert, Alt+Ctrl+Right, Alt+Ctrl+Up, Alt+Ctrl+Down)
- move a window (Alt+F7)
- open launcher (Alt+F8)
- open a terminal (Ctrl+Alt+t)
- close a window (Alt+F4)
Please let me know if you have any questions about this program.
我按照说明文档安装xSwipe之后,进行到最后一步
文章知识点与官方知识档案匹配,可进一步学习相关知识Git技能树首页概览3014 人正在系统学习中 相关资源:GHOST系统只剩C盘数据恢复软件_ghost分区丢失只剩c盘数据恢复…
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!