One of the many things I love about OS X is multitouch support and gestures associated with it that make my life so much better. When I picked up on GNU/Linux and installed my first dualboot on my MBP a couple of years ago it took me some fiddling and research to make it work the way I wanted to, but the process was relatively pain free and just a matter of pulling a few packages from the Ubuntu repositories as far as I recall.
This is why I was at first a bit disappointed when I picked up a Samsung Ativ Book 9 lite as a second notebook for school. Having no appetite for Windows 8, I made the (very) quick decision to install a decent OS on it. I tried a few distros and I finally settled for Elementary OS, which I think is great and has everything I want plus all the power of Ubuntu under the hood. The installation went by effortlessly (with the exception of the UEFI part of the install, I had trouble booting the live USB in UEFI mode for instance; it wouldn’t load the graphical live session for some reason, but the installation session would run in graphic mode with no problem whatsoever). A couple of updates later, installing the fglrx driver from jockey and saucy kernel (necessary to get wireless working proprerly), and voilà ; everything worked as you would expect it to and I got around 6 hours of battery life, which is more than I ever dreamed of, thanks to the backlight support that for some reason only works with both the newer kernel and the fglrx proprietary driver, and the help of laptop-mode-tools.
The Ativ Book 9 lite has quite a large touchpad and is normally well detected by the computer. However the multitouch gesture implementation is relatively inexistent out of the box, with the exception of two fingers scrolling, which works fine without any issue. But what if you want to be able to use three or four-fingers gestures like on OS X?
Touchegg To the Rescue!
This is where touchégg comes into light. Touchégg is “a multitouch gesture recognizer for GNU/Linux that allows associating actions to each gesture”. My first experience with it was somehow abruptly ended by segmentation faults when using the packaged version that is just an apt-get install touchegg away. I did my research and managed to get it to work fine, using tutorials here and a handy config file from the Elementary OS website, basically building touchégg from source.
Here’s how I got it to work on my machine:
- Download the touchégg source code from here and unpack it;
- Download and install dependencies with this handy command:
sudo apt-get build-dep touchegg. This will pull and install necessary dependencies.
- cd to the source directory and run these commands:
$ make (Note that the make command take a couple of minutes to complete; it’s okay, just look for potential errors in the output. You should be fine.)
$ sudo make install
- Using your favorite text editor, copy the config file from the eOs website and save it under ~/.config/touchegg/touchegg.conf
- Add touchegg to the list of startup applications, so that it, well, starts up at login.
And voilà ! You’ve got a couple of multitouch gestures that work quite well in an OS X way. For instance, with this config file, a three-fingers swipe to the left or right switches workspaces, up or down switches would show workpsaces or expose open windows respectively, and a four-fingers swipe up resizes the current window.
You can also find the file below.