This guide walks you from a fresh WinJitsu installation to snapping your first window. The whole process takes less than two minutes: start the daemon, confirm it is healthy, then fire a couple of action commands to see the animations in action. Once you are comfortable with the basics, the final step shows how to bind WinJitsu actions to keyboard shortcuts so you never have to touch the terminal again.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Evilchuck666/WinJitsu/llms.txt
Use this file to discover all available pages before exploring further.
WinJitsu debounces rapid keypresses — if you trigger the same action several times in quick succession (e.g. from key-repeat), only the last action in the burst fires. The default debounce window is 250 ms and is configurable with
--delay-ms when starting the daemon.Start the daemon
WinJitsu actions are sent to a background daemon over a Unix socket. Start it once per session (or add it to your session autostart):The process forks immediately into the background and writes its PID to a file so it can be found and stopped later. You will see a brief startup message in the terminal:To restart a running daemon (e.g. after changing config values), use:
Check your configuration
Inspect the active configuration file path and all resolved values:WinJitsu prints the location of the active config file and all resolved values:If you then run an action command without a running daemon, WinJitsu prints an error and exits cleanly:
Snap a window
Open any application window and make sure it is the focused window. Then run:The window glides to the top half of your screen. Try a few more positions:Each command is sent to the daemon over the Unix socket. The daemon debounces the request, then steps the window geometry from its current position to the target over 25 animation frames (by default).
Restore the window
WinJitsu caches the window’s original geometry before every snap or fullscreen operation. To restore it:The window animates back to the size and position it occupied before the last
F or grid-snap action. If you want to toggle between fullscreen and restored without separate commands, use:Bind a hotkey
For everyday use, bind WinJitsu actions to keyboard shortcuts in your window manager. Here is a minimal i3 example:Because the daemon is already running, each
exec winjitsu [ACTION] call returns in milliseconds — the CLI simply writes the action to the socket and exits. For GNOME, KDE, and other desktop environments, see Hotkey Binding for full step-by-step examples.Explore Further
Actions Reference
Complete reference for all 14 action codes — grid positions, fullscreen, multi-monitor, and cache management.
Hotkey Binding
Step-by-step instructions for binding WinJitsu actions in i3, GNOME, KDE, and more.