Touchegg

From ArchWiki

Touchegg is a multitouch gesture program that runs as a user in the background, recognizes gestures, translates them to more conventional types of events and/or performs custom actions in response to them.

Touchegg is not compatible with Wayland.

Installation

Install touchegg package. Alternatively, it is also available at touchegg-gitAUR. Install toucheAUR if you want a desktop application to configure touchegg.

For X11 GNOME, one can also install the extension X11 Gestures in addition to touchegg.

Configuration

The default configuration can be found in /usr/share/touchegg/touchegg.conf.

To customize it, copy the default configuration to ~/.config/touchegg/touchegg.conf and make your changes.

It is a basic XML file that defines various gestures. Please note that at this time, TAP_AND_HOLD, PINCH, and ROTATE do not appear to work.

See the list of triggers and the list of actions.

The two-fingers scrolling emulation has been dropped, due to bad user experience, in the recent 2.0 rewrite of touchegg. To restore it, install xdotool and add the following to the configuration file:

<gesture type="SWIPE" fingers="2" direction="DOWN">
      <action type="RUN_COMMAND">
        <repeat>true</repeat>
        <command>xdotool click 4</command>
        <decreaseCommand>xdotool click 5</decreaseCommand>
      </action>
    </gesture>
    <gesture type="SWIPE" fingers="2" direction="UP">
      <action type="RUN_COMMAND">
        <repeat>true</repeat>
        <command>xdotool click 5</command>
        <decreaseCommand>xdotool click 4</decreaseCommand>
      </action>
    </gesture>

Note that on KDE, text gets selected while scrolling (see upstream issue 401).

Start on login

Enable touchegg.service, the client can then be autostarted.