본문 바로가기

Study/linux

Ubuntu 터치패드를 편하게! :: Fusuma

우분투 터치패드에 제스쳐를 설정해줘서 편하게 쓰자.

한 번 설정해줬더니 이젠 마우스보다 편하다.

Fusuma라는 툴을 이용한다.

설치도 간단하고 사용법도 간단하다. 강력추천!!

 

 

설치방법

1. 유저를 input 그룹에 추가

$ sudo gpasswd -a $USER input

 

 

2. libinput-tools 설치

$ sudo apt-get install libinput-tools

 

 

3. Ruby 설치

$ sudo apt-get install ruby

 

 

4. Fusuma 설치

$ sudo gem install fusuma

 

 

5. xdotool 설치

$ sudo apt-get install xdotool

 

 

6. 만약 GNOME에서 터치패드 작동이 안된다면 다음 명령어 입력

$ gsettings set org.gnome.desktop.peripherals.touchpad send-events enabled

 

 

7. 업데이트

$ sudo gem update fusuma
$ sudo apt-get update

 

8. 시작 프로그램에 추가

$ which fusuma             #fusuma가 설치된 path 알아내기
$ gnome-session-properties    #gnome 시작프로그램 설정

`$which fusuma`로 알아낸 path를 command에 입력

command마지막에 `-d`옵션 추가

 

 

 

 

 

 

 

제스처 설정방법

`~/.config/fusuma/config.yml` 파일에서 설정 가능.

$ mkdir -p ~/.config/fusuma        # create config directory
$ gedit ~/.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 ctrl+alt+Up'
    down:
      command: 'xdotool key ctrl+alt+Down'
pinch:
  2:
    in:
      command: 'xdotool key ctrl+plus'
      threshold: 0.1
    out:
      command: 'xdotool key ctrl+minus'
      threshold: 0.1
 
threshold:
  swipe: 1
  pinch: 1
 
interval:
  swipe: 1
  pinch: 1
 

 

 

다른 자세한 옵션들은 원본 링크 참고:

https://github.com/iberianpig/fusuma?source=post_page-----1d018e235249----------------------

 

iberianpig/fusuma

Multitouch gestures with libinput driver on X11, Linux - iberianpig/fusuma

github.com