Plum's Blog

Setup Touchpad Gestures On Ubuntu 18.04

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

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/

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »