How to add windows multi-touch gestures in Linux.

Just Migrated to a Linux distribution? Missing Window’s Multi-touch gestures. You are on the right place. This guide will tell you how you can add windows Multi-touch gestures on Linux.

Linux has been most about the keyboard. From the beginning, Linux is all about commands and shortcuts. As a result it makes the user feels like that the pointing devices in Linux are kept secondary to the keyboard. This situation is very difficult in laptops because most of the users have used Windows before and are familiar with Gestures. Now shifting on Linux makes the experience a little bit underwhelming. So if you are suffering with same problem, here’s the proper guide to fix the issue.

Step 1: Adding Lib Input and User as Input group.

First of all you have to add libinput libraries to your system which is used to detect the trackpad gestures on your laptop. This library can only be added if the user is added to the input group of the system. That can be done by this command.

sudo gpasswd -a $USER input

This will prompt you to enter the user password so enter the password of your system. Once the command is executed, you will need to log out of the and login once again so that the binaries are working now.

Now you need to install some packages and that can be done by this command.

sudo apt-get install wmctrl python3 python3-setuptools xdotool python3-gi libinput-tools python-gobject

These packages will allow you to map specific gestures to keypresses.

Now to install the libinput gestures, you need to download the file from here.

Download the file, extract it in the downloads folder and type the command.

cd Downloads/libinput-gestures-master

and then

sudo make install

Now the libinput gestures have been installed, now you have to make sure that it starts with boot. So to do that type the commands.

libinput-gestures-setup autostart

libinput-gestures-setup start

Step 2 :Installing the gestures app.

So to add and configure gestures according to your needs, you have to install the gestures app. It will customize the gestures as you want them and is easy to use. So to install the gestures app head on to

Similar to the libinput installation, extract the file to your downloads folder and run the commands

cd Downloads/gestures

sudo python3 install

Step 3 : Creating your own gestures.

It is pretty easy to use the gestures app as it lets you add new gestures with a click of button. Trickier thing is to assign those gestures actions.

To map a gesture to a specific key press, you can use xdotool. Simply type xdotool key Then the key combination you want to do. You can type Super, Control, Alt, or Shift, and then the key you want.

As an example, you can create a 3 finger swipe up to launch the multitasking view. Map it to the standard shortcut Super(in my case as I use Pop! OS). Just type xdotool key Super+down For a list of the codes you can use for each key, head to the link.

Use the keycode in the second column for the key you want to use.ted to create a pinch to zoom gesture, the shortcut to use if Control + Plus. The code for the Plus key is 0x002b So, you would need to type:

xdotool key Control+0x002b

And boom, your gesture will be added. Similarly you can add more gestures following the procedure.

Leave a Reply

Your email address will not be published. Required fields are marked *