Touchpad Gestures in Linux Mint and Ubuntu

So I know I have done a post earlier on using touchegg for 3 finger gestures.

But, there were far too many issues with that. Specifically, that I needed to set things in .xprofile, and for me, the gestures would become functional only if I had Suspended the desktop once after booting, and reran the script to disable 2 finger and 3 fingers in synclient, and then ran touchegg, which is basically a horrible experience.

There’s a better way, by switching to libinput from synaptics, which is a newer driver with input multitouch detection for touchpads.

sudo apt-get remove --purge xserver-xorg-input-synaptics
sudo apt-get install xserver-xorg-input-libinput
sudo gpasswd -a $USER input

Restart your laptop.

Ideally at this point, your default synaptics drivers have been removed, and the libinput drivers will take over.
You can check that by running

xinput list
xinput list-props \<device-id-of-touchpad-from-above\>

Once you’ve confirmed you’re running libinput, run the following commands :

sudo apt-get install xdotool wmctrl
sudo apt-get install libinput-tools
git clone
cd libinput-gestures
sudo ./libinput-gestures-setup install

The default gestures are in /etc/libinput-gestures.conf. If you want to create your own custom gestures then copy that file to ~/.config/libinput-gestures.conf and edit it.

Here’s a more detailed howto to refer:

Here are the gestures from the file I use, to get you running quicker.

gesture swipe left 3 _internal ws_up
gesture swipe right 3 _internal ws_down
gesture swipe left 2 xdotool key alt+Right
gesture swipe right 2 xdotool key alt+Left
gesture swipe up 3 xdotool key shift+alt+Down
gesture swipe down 3 xdotool key super+d
gesture swipe up 4 xdotool key shift+alt+Up
gesture swipe down 4 xdotool key alt+F4

3 thoughts on “Touchpad Gestures in Linux Mint and Ubuntu

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s