Gestures on Ubuntu 18.04(Xorg)

Gestures / Multi-Touch enabling on Ubuntu with Fusuma

$ echo $XDG_SESSION_TYPE.

Steps:

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

Deciding your gestures

$ mkdir -p ~/.config/fusuma        # create config directory
$ nano ~/.config/fusuma/config.yml # edit config file.
swipe:
3:
left:
command: 'xdotool key alt+Left'
right:
command: 'xdotool key alt+Right'
up:
command: 'xdotool key ctrl+t'
threshold: 1.5
down:
command: 'xdotool key ctrl+w'
threshold: 1.5
4:
left:
command: 'xdotool key super+Left'
right:
command: 'xdotool key super+Right'
up:
command: 'xdotool key super+a'
down:
command: 'xdotool key super+s'
pinch:
2:
in:
command: 'xdotool key ctrl+plus'
threshold: 0.1
out:
command: 'xdotool key ctrl+minus'
threshold: 0.1
threshold:
swipe: 0.4
pinch: 0.4
interval:
swipe: 0.8
pinch: 0.1
// --or replace above with default below--
threshold:
swipe: 1
pinch: 1

interval:
swipe: 1
pinch: 1
sudo fusuma

To add it to the Startup;

swipe:
3:
left:
command: 'xdotool key alt+Left'
right:
command: 'xdotool key alt+Right'
up:
command: 'xdotool key ctrl+alt+Up'
threshold: 1.5
down:
command: 'xdotool key ctrl+alt+Down'
threshold: 1.5

Writer | Vlogger | Techie | Technical Tester (Snr-QAE)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store