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 http://github.com/bulletmark/libinput-gestures
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:
https://devhub.io/repos/bulletmark-libinput-gestures

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
Advertisements

Shift GTK-3/ Geary Buttons to the left on linux mint

This works on the latest Geary

Manually :

Install dconf-editor

 sudo apt install dconf-editor 

open it up by typing dconf-editor.

Go to : org / cinnamon / desktop / interface / gtk-decoration-layout

and on the right find the button layout key setting.

the current string set there is expected to be : menu:minimize,maximize,close

change that to : close,minimize,maximize:menu

That’s it, you’re done.

Shift Google Chrome buttons to the left

Google chrome still uses the old gconf file for it’s configuration.
If you like me use linux mint, but prefer the mac like configuration of buttons on the left, this is something that you would be interested in.

Manually :

Install gconf-editor

 sudo apt install gconf-editor 

open it up by typing gconf-editor.

Go to :  / apps / metacity / general /

and on the right find the button layout key setting.

the current string set there is expected to be : menu:minimize,maximize,close

change that to : close,minimize,maximize:menu

That’s it, you’re done.

3 finger gestures in ubuntu 16.04

Easy Peasy.

Install touchegg.


sudo apt install touchegg

To enable 3 finger and above touch in Ubuntu 16.04 (of course be sure your touchpad driver supports multitouch, or else upgrade your kernel)

Go to your home directory and create a .xprofile with the following content.


synclient ClickFinger3=0
synclient TapButton3=0
touchegg &

Now when you boot your laptop, you’ll be able to use gestures.

To configure the gestures, you can go to


sudo vi .config/touchegg/touchegg.conf

It’s a pretty self explanatory config file. But here’s some references.

touchegg actions

touchegg gestures

touchegg FAQ

Invert Fn Function Key Behaviour in Linux

Hey all,

Here’s a small tip that I thought should be documented.

If your fn key is behaving opposite to the way you want it to, there are likely 2 causes:

  1. Either your bios setting is the opposite of what you want
  2. Or your linux is interpreting differently.

Here are a few solutions :

  1. Try pressing fn + NumLock key
  2. Try pressing fn + ~ key (it’s the one before a 1 on most US keyboards)
  3. Press fn + Esc Key (Or look for a key with a lock sign on it)
  4. Go to the bios and look for the function key option to change it.

2 worked for me on linux!

Cheers