Ubuntu 18.04でタッチパッドジェスチャーを設定する

広告

Ubuntuではlibinputを使ってタッチパッドを設定できるらしい。2本指、3本指、4本指とか。

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

広告

ステップ1:

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

ステップ2:

gem install fusuma

ステップ3:

設定ファイル用のフォルダを作る。

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

ステップ4:

設定ファイルに以下の内容を書き込む:

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

ステップ5:

fusumaを自動起動リストに追加する。その前に、ターミナルで設定ファイルをテストできる:

fusuma

もっとジェスチャーが欲しければ、編集して試してみるだけ。

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

本家 plumz.me でこの記事にコメントする

コメントは中国語の本家サイトで受け付けています。このミラーは閲覧専用です。

目次