Ubuntu Touch Panel gesture tuning software Xswipe

Source: Internet
Author: User
Tags ubuntu touch macbook

Landlord into a ThinkPad T450s, touch Panel support 4 touch control, installed ubuntu14.04 LTS, touch panel only left two fingers sliding, slightly uncomfortable, a variety of Google, Baidu.

I really found a way.

First learned that Touchegg, but all kinds of installation is not on, tossing my heart Gio, finally accidentally in the know on a partner said his computer with xswipe done.

He turned to Xswipe and found the artifact on GitHub on the Open source project website. Portal, or copy address: Https://github.com/iberianpig/xSwipe to the Address bar open, may open very slowly, landlord back up the files to download, put at the end of the article.

The official documentation is in English, although the reader is recommended to read the original article, but in order to take care of English poor small partners, I found a Chinese blog (point I visit), or copy address: http://loliko.me/ zai-linuxzhong-tian-jia-hong-mo-ban-shou-shi/to Address bar open

The following is a description of the documentation on GitHub:

Xswipe

Xswipe is multitouch gesture recognizer. This script does your Linux PC able to recognize swipes like a Macbook.

Usage

Before running the script, you must first do some preparations.

    1. Download Xswipe
    2. Install X11::guitest
    3. Enable Shmconfig
1. Download Xswipe

Type below code, download xswipe from GitHub

$ cd ~$ wget https://github.com/iberianpig/xSwipe/archive/master.zip$ unzip master.zip
2. Install X11::guitest

To install Libx11-guitest-perl from Synaptic Package Manager Or run the script on the terminal run as

$ sudo apt-get install libx11-guitest-perl
Note:if using Ubuntu14.04, or laterinstall older version Synaptics driver, is the compatible with Xswipe.
CD xserver-xorg-input-synaptics$./autogen.sh$./configure--exec_prefix=/usr$ make$ sudo make install
3. Enable Shmconfig

Open/etc/x11/xorg.conf.d/50-synaptics.conf with your favorite the text editor and edit it to enable Shmconfig

$ sudo gedit /etc/X11/xorg.conf.d/50-synaptics.conf

Note: You'll need to create the/etc/x11/xorg.conf.d/directory and create 50-synaptics.conf if it doesn ' t exist yet.$ sudo mkdir /etc/X11/xorg.conf.d/

/etc/x11/xorg.conf.d/50-synaptics.conf
Section "InputClass"Identifier "evdev touchpad catchall"Driver "synaptics"MatchDevicePath "/dev/input/event*"MatchIsTouchpad "on"Option "Protocol" "event"Option "SHMConfig" "on"EndSection

To reflect Shmconfig, restart your session.

That's it for preparation.

Run Xswipe

To run Xswipe, type below code on terminal.

$ perl ~/xSwipe-master/xSwipe.pl

Note:you should run xswipe.pl in same directory as "Eventkey.cfg".

You can use the "swipe" with 3 or 4 fingers, they can call an event. Additionally, some gestures is 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
    • -d RATE: rate was sensitivity to swipe. Default value is 1. Shorten swipe-length by half (e.g., $ perl xSwipe.pl -d 0.5 )
    • -m INTERVAL: INTERVAL is what often synclient monitor changes to the touchpad state. Default value is ten (ms). Set 50ms as Monitoring-span. (e.g., $ perl xSwipe.pl -m 50 )
    • -n: Natural Scroll like a Macbook, use "/nscroll/eventkey.cfg".
    • -e: Enable edge-swipe
Customize

You can customize the settings for Gestues to edit eventkey.cfg. Please check the 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 had any questions on this program.

I follow the instructions after installing Xswipe, proceed to the last step

  perl ~/xswipe-master/xswipe.pl  

encountered an error message
"Can ' t locate smart/comments.pm in < Span class= "mention" > @INC   (need to install the Smart::comments module) ( @INC   Contains:/etc/perl/usr/local/lib/perl/5.18.2/usr/local/share/perl/5.18.2/usr/lib/perl5/usr/share/perl5/usr/lib /perl/5.18/usr/share/perl/5.18/usr/local/lib/site_perl.) at/home/jackson/xswipe-master/xswipe.pl line 15. "

It really hurts, and every last minute there's a problem. Baidu no fruit, and finally Google gave me the answer, the original here: https://forum.teksyndicate.com/t/perl-smart-comments/86880

The way to do this is to type the following command under Terminal
sudo cpan-i smart::comments

at this time to normal networking, landlord with proxy mode of the network, all kinds of errors, do not know the specific reasons where, Finally use the mobile phone to open the WiFi to the computer, love dearly ah (don't ask why I do not have WiFi, the school does not give freshman campus network)
No unexpected words, should be executed after the execution of the command, it is done
use
perl ~/xSwipe-master/xSwipe.pl

应该就可以开启触控板手势,目前我的电脑能实现三指滑动切换工作区,其它还没设置。
若有其它问题,可以在评论区留言,力所能及之处定出手相助。

xSwipe下载:http://pan.baidu.com/s/1gesqHm7
下载之后请先查看README.md文件,在xSwipe得其中一个子文件夹内。

Ubuntu Touch Panel gesture tuning software Xswipe

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.