Multitouch Trackpad Touchpad Gestures
This guide sets up touchpad gestures with fusuma on Garuda Sway and Garuda i3.
Tested hardware
Section titled “Tested hardware”Touchpad: Apple Magic Trackpad 2
-
Install fusuma
Terminal window paru -S ruby-fusuma -
Install the following fusuma plugins
Terminal window paru -S ruby-fusuma-plugin-tap ruby-fusuma-plugin-keypress -
Create the directory
~/.config/fusumaTerminal window mkdir ~/.config/fusuma -
Create a new file
~/.config/fusuma/config.yml -
Edit your newly created config.yml to contain the following:
Use a text editor, place the content below into the file and save. You can adjust it with the example configs from the fusuma wiki.
The config uses
swaymsg. For i3, replace each instance ofswaymsgwithi3-msg.~/.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.## Email:## Note, this is not a file included in Garuda Official.# This is user contributed to help others along the way.## swipe sectionswipe:3:left:command: swaymsg move left # Move Window Leftright:command: swaymsg move right # Move Window Rightup:command: swaymsg move up # Move Window Updown:command: swaymsg move down # Move Window Down4:left:command: swaymsg workspace next # Next Workspaceright:command: swaymsg workspace prev # Previous Workspaceup:command: swaymsg fullscreen toggle # Fullscreen Toggledown:command: swaymsg floating toggle # Tiling Floating Toggle# pinch sectionpinch:2:in:command: "xdotool keydown ctrl click 4 keyup ctrl" # Zoom In - Test in a browserout:command: "xdotool keydown ctrl click 5 keyup ctrl" # Zoom Out - Test in a browser4:in:command:"xdotool key super+a" # Window Overview - Mod+a not defined in sway# Redefine to something usefulout:command:"xdotool key super+s" # Workspace Overview - Mod+s not defined in sway# Redefine to something usefulthreshold:swipe: 0.4pinch: 0.4interval:swipe: 0.8pinch: 0.1 -
Start fusuma in terminal by simply typing the command fusuma
Terminal window fusumaStart fusuma in a terminal, not daemonized, for initial testing. fusuma should now be running in your terminal.
-
Test
Try some gestures on your trackpad or touchpad.
You can see which gestures are defined in the
~/.config/fusuma/config.ymlthat you just created.Try 3-finger-swipe up/down/left/right, for example.
-
Set up fusuma daemonized so it runs automatically when you log in
Fusuma is running in a terminal for testing right now. Press
Control + CCtrlC to stop it. Now make it run in the background each time you log in.
Conclusion
Section titled “Conclusion”Fusuma is reliable and works across window managers.