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

Chrome Bookmarks Profiler

Hi all,

So here’s a small chrome extension I built that I personally find pretty useful.

The idea is, that while working at office, surfing the web at home, or building a new website, for each instance, I use a different set of websites to quick browse. So I felt it would be real nice to have something that can quickly switch out your bookmarks bar from different sets of bookmarks.

I couldn’t find anything like that in the chrome webstore, so I built it myself.

Here’s a link to it.

https://github.com/samarth-math/bookmarksReplacer/releases/tag/1.2

Here are some screenshots.

Screenshot from 2015-12-05 20:22:33Screenshot from 2015-12-05 20:21:49

If you like this enough to wanna see it in the chrome webstore, just donate 5 dollars. It’s the developer fees, and I’m a student, with no spare money!

You can do a transfer, just hit me up for details.

For the rest, feel free to enjoy it for free. That’s what I’m doing.

UPDATE : Here’s a link to the official extension:
https://chrome.google.com/webstore/detail/replace-bookmark-bar/ggncfhpgnoijjkkmbbnbohnbpfnmejeh