Gestures here refer to the muscle-memory moves that make both window managers feel the same—keyboard-driven motions, touchpad swipes that trigger key events, and helper scripts that keep layouts predictable.
- Directional Focus:
- i3:
Mod+j/k/h/lor arrow keys. - Xmonad: same bindings via EZConfig, plus
Mod+mto focus master.
- i3:
- Window Moves:
- i3:
Mod+Shift+j/k/h/l(and arrow equivalents) move containers. - Xmonad:
Mod+Shift+Return/j/kswap master/down/up.
- i3:
- Workspace Cycling:
- i3:
Mod+1–Mod+0to jump; pair with external gesture tools that send the same numeric shortcuts. - Xmonad: Adds
Mod+[ / Mod+](prevWS/nextWS) andMod+Shift+[ / ]to push windows across workspaces—ideal for swipe gestures that emit bracket keys.
- i3:
- Layout Toggles:
- i3:
Mod+s/w/efor stacking/tabbed/split layouts,Mod+Shift+dtoggles floating,Mod+ffor fullscreen. - Xmonad:
Mod+ccycles layouts,Mod+ftoggles fullscreen,Mod+sjumps to Accordion,Mod+wto Tabbed.
- i3:
- i3 Tiling Drag:
tiling_drag modifier titlebarlets you drag a tiling window withMod + Left Click—pair this with touchpad gestures that hold Alt while swiping. - Xmonad Mouse Bindings:
Mod + Button1/2/3replicate the same drag/move behavior used in i3.
- Layout Reset:
- i3 binds
Mod+Shift+sto~/.config/i3/setup_layout.sh, useful for gesture daemons that fire shell commands (e.g., three-finger tap). - Xmonad mirrors this with the same key combo via
spawn.
- i3 binds
- Display Switching:
Mod+Shift+wlaunches~/.config/scripts/display-setup.sh, keeping monitor swaps consistent across both WMs—map this to secondary gestures if you regularly dock/undock.
- Use
xdotoolorydotoolin gesture managers to emit the bracket-based workspace cycle bindings so i3 and Xmonad respond the same way. - Document any new gesture daemons (libinput-gestures, fusuma, etc.) in this file, including the commands they emit, so you can recreate the experience on fresh installs.