DEV Community

Nucu Labs
Nucu Labs

Posted on

Multi Touch Gestures on Linux

Hello,

I’ve been using Linux full time on my work laptop and one thing that I really miss from the Macbook is the multi touch gestures. I often find myself swiping 3 fingers up the trackpad to see all my open applications and nothing happens, bummer.

Then, I came across Fusuma, a great project which aims to bring multi touch gesture support to Linux laptops!

It won’t give you an Apple like experience but it’s okay-ish. I can finally swipe three fingers up to show all my open applications and three fingers left or right to switch between my gnome workspaces, and it comes with some plugins which allow you to create a personalized touchpad experience, for example, tap 3 fingers at the same time and shutdown the computer. ¯_(ツ)_/¯

To install and use Fusuma please follow the installation instructions from the Github repo. 🙂

Bellow, is my Fusuma config file:

# sudo gpasswd -a $USER input
# sudo apt-get install libinput-tools  
# sudo apt-get install xdotool
# sudo apt install ruby
# sudo gem install fusuma
# nano ~/.config/fusuma/config.yml 
swipe:
  3: 
    left: 
      command: 'xdotool key ctrl+alt+Up'
    right: 
      command: 'xdotool key ctrl+alt+Down'
    up: 
      command: 'xdotool key super'
    down: 
      command: 'xdotool key super'

pinch:
  2:
    in:
      command: 'xdotool key ctrl+plus'
      threshold: 0.1
    out:
      command: 'xdotool key ctrl+minus'
      threshold: 0.1

threshold:
    swipe: 1
    pinch: 0.8

interval:
    swipe: 1
    pinch: 1
Enter fullscreen mode Exit fullscreen mode

Thanks for reading!

Top comments (0)