Ubuntu – how to achieve multi touch gestures in ubuntu 14.04

14.04multi-touchtouchpad

is it possible to get multitouch gestures in ubuntu 14.04 like macbook?
if possible how to activate or install multi touch gestures ?
my laptop is lenovo z580.it has syanptics touchpad which supports multi touch of 4 fingers as of my knowledge.
i tried touchegg but no use.

Best Answer

Yes, it is possible:

Installation

  • install touchegg: sudo apt-get install touchegg
  • install Touchegg-GCE: You have to git clone (or download) Touchegg-GCE from github and then manually compile it, it needs qt4 so sudo apt-get install qt4-dev-tools then open a terminal into the Touchegg-GCE directory and type /usr/bin/qmake-qt4 and make. Now launch touchegg-gce and configure your gestures.

    Autostart and configuration: into ~/.config/autostart/

  • create an executable (chmod +x touch.sh) script touch.sh with the following code. It is necessary to disable the default behaviour of the trackpad for 2-3 fingers gestures

    #!/bin/bash
    synclient TapButton2=0
    synclient TapButton3=0
    synclient ClickFinger2=0
    synclient ClickFinger3=0
    synclient HorizTwoFingerScroll=0
    synclient VertTwoFingerScroll=0
    
  • create two launchers: one for the script(1) and the other for touchegg(2).

    (1) touch.desktop

    [Desktop Entry]
    Type=Application
    Exec=/home/<user>/.config/autostart/touch.sh
    Hidden=false
    NoDisplay=false
    X-GNOME-Autostart-enabled=true
    Name[it_IT]=TouchScript
    Name=TouchScript
    Comment[it_IT]=Enable Touchegg 2-3 fingers
    Comment=Enable Touchegg 2-3 fingers
    

    (2) touchegg.desktop

    [Desktop Entry]
    Name=Touchegg
    GenericName=Touchégg
    Comment=Touchégg Gestures Manager
    Exec=/usr/bin/touchegg %u
    Terminal=false
    Type=Application
    Name[it_IT]=touchegg.desktop