Guide For Setting Up Multitouch Touchpad / Trackpad Gestures With fusuma

~/.config/fusuma/config.yml for Multitouch Trackpad Gestures in Garuda Sway using fusuma

  • @BluishHumility --->>> Below is a custom tested and working fusuma config.yml
    for Garuda Sway.

  • Please test on your sway box at your leisure.
    Tested in Garuda Sway on bare metal ( Inxi Here )
    Success, All touchpad gestures working as expected.

  • Check back with your results please sir. TIA @BluishHumility Done & Thanks!

NOTE:

Do not install the plugin packages "ruby-fusuma-plugin-sendkey" or
"ruby-fusuma-plugin-appmatcher". If installed, remove them.

  • ~/.config/fusuma/config.yml
# Custom ~/.config/fusuma/config.yml for Garuda Sway Edition
#
# config.yml for fusuma --- https://github.com/iberianpig/fusuma
#
# This should work in any linux distro running sway and using fusuma.
#
# Author: Donald Tanner (Cannabis on Garuda Forum)
# Email:  
#
# Note, this is not a file included in Garuda Official.
# This is user contributed to help others along the way.
#
# swipe section
swipe:
  3:
    left:
      command: exec sway move left # Move Window Left
    right:
      command: exec sway move right #  Move Window Right
    up:
      command: exec sway move up # Move Window Up
    down:
      command: exec sway move down # Move Window Down
  4:
    left:
     command: exec sway workspace next # Next Workspace
    right:
      command: exec sway workspace prev # Previous Workspace
    up:
      command: exec sway fullscreen toggle # Fullscreen Toggle
    down:
      command: exec sway floating toggle # Tiling Floating Toggle
# pinch section
pinch:
  2:
    in:
      command: 'xdotool keydown ctrl click 4 keyup ctrl' # Zoom In - Test in a browser
    out:
      command: 'xdotool keydown ctrl click 5 keyup ctrl' # Zoom Out - Test in a browser
  4:
    in:
      command: 'xdotool key super+a' # Window Overview - Mod+a not defined in sway
                                     # Redefine to something useful
    out:
      command: 'xdotool key super+s' # Workspace Overview - Mod+s not defined in sway
                                     # Redefine to something useful
threshold:
  swipe: 0.4
  pinch: 0.4

interval:
  swipe: 0.8
  pinch: 0.1
  • Restart fusuma and Test
1 Like