사용자 도구

사이트 도구


linux:fusuma

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
linux:fusuma [2020/07/26 17:33]
kwon37xi [참조]
linux:fusuma [2020/08/16 07:23] (현재)
kwon37xi
줄 3: 줄 3:
   * touchpad gesture   * touchpad gesture
   * [[linux:libinput_gestures|libinput-gestures]]   * [[linux:libinput_gestures|libinput-gestures]]
 +
 +===== 설정 =====
 +  * ''threshold'' : 작동을 유발하기 까지 손가락 움직임의 거리. pinch 의 경우 이 값이 작아야 빠르게 작동이 시작되었음. pinch threshold 는 ''0.5'' 정도가 적당해보임. 이 값이 크면 너무 큰 동작으로 손가락을 벌려야 했음.
 +  * ''interval'' : pinch 에서 ''interval''이 너무 짧으면 핀치하는 동안 명령이 여러번 실행되는 문제가 있었음. pinch interval은 ''3''정도가 적당해보임.
 +  * [[https://github.com/iberianpig/fusuma-plugin-sendkey|fusuma-plugin-sendkey]] : [[linux:xdotool|XDOTool]] 없이 별도로 키보드 누르기를 해주는 플러그인
 +
 +===== KDE 와 기타 =====
 +  * [[https://gist.github.com/kwon37xi/3173fda9047d2782372e6f9cb5bd70df|workspace-switcher.sh]]
 +
  
 ===== Gnome 에서 사용시 ===== ===== Gnome 에서 사용시 =====
줄 9: 줄 18:
 </code> </code>
  
-  * 만약 **키보드 추가설정**(''gnome-tweaks'' 등에서 xkb 설정) 에서 **Hyper 를 윈도우 키로 매핑** 이 설정돼 있으면 ''xdotool key super+<다른키>''가 자동하지 않는다.+  * 만약 **키보드 추가설정**(''gnome-tweaks'' 등에서 xkb 설정) 에서 **Alt/Win 키 동작 -> Hyper 를 윈도우 키로 매핑** 이 설정돼 있으면 ''xdotool key super+<다른키>''가 자동하지 않는다. 
 +    * see [[linux:xdotool|XDOTool]] 
 +  * 각종 명령을 ''xdotool''을 통하지 않고 직접 실행한다. 
 +  * [[linux:wmctrl|WMCtrl]] - ''show-desktop.sh'' 참조 
 +  * [[https://gist.github.com/kwon37xi/68a7ea43759ba270e9ae224d314b959a|gnome-workspace-switcher.sh]] 
 +  * [[linux:gnome|Gnome]] 용으로 만든 ''~/.config/fusuma/config.yml''
  
 +<code>
 +swipe:
 +  3: 
 +    left: 
 +      command: 'xdotool key alt+Right' # Browser back
 +    right: 
 +      command: 'xdotool key alt+Left' # Browser forward
 +    up: # Gnome Overview
 +      command: "dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'"
 +    down: # Gnome Menu
 +      command: "dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.shellDBusService.ShowApplications();'"
 +  4:
 +    left: 
 +      command: 'wmctrl -s 3' # to the last workspace
 +    right: 
 +      command: 'wmctrl -s 0' # to the first workspace
 +    up: 
 +      command: '/home/kwon37xi/.local/bin/gnome-workspace-switcher.sh Down'
 +    down: 
 +      command: '/home/kwon37xi/.local/bin/gnome-workspace-switcher.sh Up'
 +pinch:
 +  2: 
 +    in:
 +      command: '/home/kwon37xi/.local/bin/show-desktop.sh'
 +    out:
 +      command: "wmctrl -r ':ACTIVE:' -b toggle,fullscreen"
 +threshold:
 +  swipe: 1
 +  pinch: 0.5
 +interval:
 +  swipe: 1
 +  pinch: 3
 +</code>
 ===== 참조 ===== ===== 참조 =====
   * [[https://medium.com/@jjeaby/mac-%EC%B2%98%EB%9F%BC-linux-touchpad-gesture-%EC%82%AC%EC%9A%A9-1d018e235249|Ubunutu 에서 touchpad 제스쳐 사용하기. 우분투나 여러 Linux 배포판을 사용하면서 아쉬운 것은 Mac에서… | by jjeaby(Lee yong jin) | Medium]]   * [[https://medium.com/@jjeaby/mac-%EC%B2%98%EB%9F%BC-linux-touchpad-gesture-%EC%82%AC%EC%9A%A9-1d018e235249|Ubunutu 에서 touchpad 제스쳐 사용하기. 우분투나 여러 Linux 배포판을 사용하면서 아쉬운 것은 Mac에서… | by jjeaby(Lee yong jin) | Medium]]
   * [[https://conservative-vector.tistory.com/entry/Ubuntu-%ED%84%B0%EC%B9%98%ED%8C%A8%EB%93%9C%EB%A5%BC-%ED%8E%B8%ED%95%98%EA%B2%8C-Fusuma|Ubuntu 터치패드를 편하게! :: Fusuma]]   * [[https://conservative-vector.tistory.com/entry/Ubuntu-%ED%84%B0%EC%B9%98%ED%8C%A8%EB%93%9C%EB%A5%BC-%ED%8E%B8%ED%95%98%EA%B2%8C-Fusuma|Ubuntu 터치패드를 편하게! :: Fusuma]]
linux/fusuma.1595752399.txt.gz · 마지막으로 수정됨: 2020/07/26 17:33 저자 kwon37xi