Touchegg

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 toucheggAUR 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.

The list of triggers can be found here.

The list of actions can be found here.

The two-fingers scrolling emulation has been droped, 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 here).

Start on login

Enable touchegg.service.

The client can be loaded from the wm.

For gnome

  1. Hit alt-f2;
  2. Type ;
  3. Hit ;
  4. In the box labeled "Command" type . Fill in "Name" and "Label" as you choose;
  5. Hit OK.
Note: gnome-session-properties has been removed from gnome 3.12. Currently, you can install gnome-session-propertiesAUR from the AUR. See more details in the BBS thread

Alternatively, you can create a desktop entry in ~/.config/autostart/

For the startx command

You can modify your .xprofile:

gollark: UCS-2 is basically what you assume UTF-16 is if you're a wrong person.
gollark: It even has Braille characters.
gollark: The only valid single-page encoding is the CC character set.
gollark: UTF-16 is NOT SAFE.
gollark: You can convert it to bytes if you want.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.