Setup Touchpad Gestures On Ubuntu 18.04

Advertisement

It seems you can use libinput to configure your touchpad on Ubuntu. Like two fingers, three fingers, and four fingers.

photo_2018-05-29_21-37-34.jpg

Advertisement

Step 1:

sudo gpasswd -a $USER input
sudo apt-get install libinput-tools
sudo apt-get install xdotool

Step 2:

gem install fusuma

Step 3:

Create a config file folder.

mkdir ~/.config/fusuma
vim ~/.config/fusuma/config.yml

Step 4:

Type contents down below into the config file:

swipe:
  3:
    left:
      command: 'xdotool key alt+Right'
    right:
      command: 'xdotool key alt+Left'
    up:
      command: 'xdotool key super+w'
    down:
      command: 'xdotool key Escape'
  4:
    left:
      command: 'xdotool key ctrl+alt+Right'
    right:
      command: 'xdotool key ctrl+alt+Left'
    up:
      command: 'xdotool key ctrl+alt+Down'
    down:
      command: 'xdotool key ctrl+alt+Up'
pinch:
  in:
    command: 'xdotool key ctrl+plus'
  out:
     command: 'xdotool key ctrl+minus'

threshold:
  swipe: 0.4
  pinch: 0.4

interval:
  swipe: 0.8
  pinch: 0.1

Step 5:

Add fusuma to autorun list. before that you can test your config file with terminal:

fusuma

If you wanna more gestures, Just edit it and try it out .

Source: https://italolelis.com/posts/multitouch-gestures-ubuntu-fusuma/

Discuss this post on plumz.me

Comments are hosted on the Chinese main site. This mirror is read-only.

Table of Contents