GNOME Shell X11Gestures Extension
Enable GNOME Shell multi-touch gestures on X11 with this extension.
1) Install Touchégg
Touchégg must be installed separately.
sudo add-apt-repository ppa:touchegg/stable -y
sudo apt update
sudo apt install touchegg
Configuration
After installing Touchégg you’ll notice that you can start using multi-touch gestures. However, you are not forced to use the gestures and actions that come out of the box, you can configure the gestures you’d like to use and the actions they’ll trigger.
A) Configure with Touché
Touché is a desktop application to easily configure your touchpad and touchscreen multi-touch gestures.
Install Flatpak
# to install flatpak
sudo apt install flatpak
# install the software flatpak plugin
sudo apt install gnome-software-plugin-flatpak
# add the flathub repository
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
- Restart the terminal with
CTRL
+D
Download Touché
flatpak install flathub com.github.joseexposito.touche
Run Touché
flatpak run com.github.joseexposito.touche
B) Configure Manually
Start by copying the default configuration from /usr/share/touchegg/touchegg.conf
to ~/.config/touchegg/touchegg.conf
. You can do it using your file manager or by running this command in your terminal:
mkdir -p ~/.config/touchegg && cp -n /usr/share/touchegg/touchegg.conf ~/.config/touchegg/touchegg.conf
Now open ~/.config/touchegg/touchegg.conf
with your favorite text editor.
It is a XML document with 3 main sections:
- Global settings
- Global gestures:
<application name="All">...</application>
- Application specific gestures:
<application name="Google-chrome,Firefox"></application>
-
The application name can be obtained by running this command and clicking on the target application window:
xprop | grep WM_CLASS
-
Example Settings
```xmlGlobal Settings
Option | Value | Default | Description | Example |
---|---|---|---|---|
animation_delay | Number | 150 | Delay, in milliseconds, since the gesture starts before the animation is displayed | Use the MAXIMIZE_RESTORE_WINDOW action. You will notice that no animation is displayed if you complete the action quick enough. This property configures that time |
action_execute_threshold | Number | 20 | Percentage of the gesture to be completed to apply the action. Set to 0 to execute actions unconditionally | Use the MAXIMIZE_RESTORE_WINDOW action. You will notice that, even if the animation is displayed, the action is not executed if you did not move your fingers far enough. This property configures the percentage of the gesture that must be reached to execute the action |
color | Hex color | 3E9FED | Color of the animation | #909090 |
borderColor | Hex color | 3E9FED | Color of the animation | FFFFFF |
- For more information and configurations, visit Touchégg - GitHub.