threshold : 작동을 유발하기 까지 손가락 움직임의 거리. pinch 의 경우 이 값이 작아야 빠르게 작동이 시작되었음. pinch threshold 는 0.5 정도가 적당해보임. 이 값이 크면 너무 큰 동작으로 손가락을 벌려야 했음.interval : pinch 에서 interval이 너무 짧으면 핀치하는 동안 명령이 여러번 실행되는 문제가 있었음. pinch interval은 3정도가 적당해보임.gsettings set org.gnome.desktop.peripherals.touchpad send-events enabled
gnome-tweaks 등에서 xkb 설정) 에서 Alt/Win 키 동작 → Hyper 를 윈도우 키로 매핑 이 설정돼 있으면 xdotool key super+<다른키>가 자동하지 않는다.xdotool을 통하지 않고 직접 실행한다.show-desktop.sh 참조~/.config/fusuma/config.ymlswipe:
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