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.

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

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/

👍❤️😂🎉🔥👀🤡🤔

5 条评论

  1. Erica
    Erica Lv4垃圾佬
    2018-06-18 00:52 Android 8.0.0Google Chrome 67.0.3396.87中国甘肃省兰州市

    テクニカルテキストを日本語で書いてみてください(このレビューはGoogle翻訳に基づいています)

    看tip里面plum偷偷说自己不会日语忍不住想吐槽下(表打我,逃😂

    👍👎🤡❤️🔥👀😂🤔
  2. Kaya Orino
    Kaya Orino Lv4黄油佬
    2018-06-18 03:45 Windows 8.1 x64 EditionGoogle Chrome 67.0.3396.87日本岛根县

    無断転載のため結構頑張ったね
    -えいごのへんじができなくてごめん-

    👍👎🤡❤️🔥👀😂🤔
    1. Kaya Orino
      Kaya Orino Lv4黄油佬
      2018-06-18 03:47 Windows 8.1 x64 EditionGoogle Chrome 67.0.3396.87日本岛根县

      -完全に間違えた…無断転載されないため…-

      👍👎🤡❤️🔥👀😂🤔
    2. plum
      plum 博主
      2018-06-18 09:51 Ubuntu x64Firefox 60.0中国河南省郑州市

      😑 😑 😑

      👍👎🤡❤️🔥👀😂🤔
  3. qing
    2018-06-18 11:53 Android 7.0Google Chrome 64.0.3282.137美国华盛顿西雅图

    哇,好赞!!我16年的时候还折腾了好久xSwipe,后来重装Ubuntu以后放弃了 😂

    👍👎🤡❤️🔥👀😂🤔

添加新评论

😂🤡😎😡😁😋😭😑

目录

__empty__