Skip to content

Instantly share code, notes, and snippets.

@theodric
Last active February 7, 2026 21:01
Show Gist options
  • Select an option

  • Save theodric/1385458974bc0ebdd820386e6c446271 to your computer and use it in GitHub Desktop.

Select an option

Save theodric/1385458974bc0ebdd820386e6c446271 to your computer and use it in GitHub Desktop.
~/.config/fusuma/config.yml
## this should be used in conjunction wtih a patched copy of kwin_wayland which diasbles the idiotic gestures built in by default for the last 5+ years
# Global settings (approximate Touchegg's action_execute_threshold and animation_delay)
threshold:
swipe: 0.5 # Lower = easier to trigger (similar to 10% threshold)
pinch: 0.5
interval:
swipe: 0.8 # Delay between gestures
pinch: 0.8
# Default context (equivalent to Touchegg's <application name="All">)
swipe:
3:
left:
sendkey: "LEFTALT+LEFT" # History back
right:
sendkey: "LEFTALT+RIGHT" # History forward
up:
sendkey: "LEFTCTRL+TAB" # Open a new tab
down:
sendkey: "LEFTSHIFT+LEFTCTRL+TAB" # Close a tab
4:
up:
command: "qdbus6 org.kde.kglobalaccel /component/kwin invokeShortcut 'Overview'"
down:
command: "qdbus6 org.kde.kglobalaccel /component/kwin invokeShortcut 'Show Desktop'"
# right:
# command: "qdbus org.kde.KWin /KWin previousDesktop"
# left:
# command: "qdbus org.kde.KWin /KWin nextDesktop"
left:
command: "qdbus6 org.kde.KWin /KWin setCurrentDesktop 2" # History back
right:
command: "qdbus6 org.kde.KWin /KWin setCurrentDesktop 1" # History forward
# right:
# sendkey: "LEFTCTRL+LEFTMETA+LEFT"
# left:
# sendkey: "LEFTCTRL+LEFTMETA+RIGHT"
---
# App-specific context (equivalent to Touchegg's <application name="Google-chrome,Chromium,Firefox,Brave-browser,brave-browser,zen,dolphin">)
# Check exact app names with `fusuma-appmatcher -l` and adjust the list.
context:
application:
- Google-chrome
- Chromium
- Firefox
- Brave-browser
- zen
- Dolphin # May need to be 'org.kde.dolphin' or similar
pinch:
2:
in:
sendkey: 'KP_SUBTRACT' # Zoom out; decrease sends KP_ADD if gesture reverses (handled by Fusuma direction)
out:
sendkey: 'KP_ADD' # Zoom in; decrease sends KP_SUBTRACT if gesture reverses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment