Comprehensive guide for users and autonomous coding agents covering common scenarios, edge cases, root causes, and verified solutions.
- Window Management & Capturing
- Keyboard Navigation & Shortcuts
- Mouse & Focus Behavior
- Tray Hub & Watchdog Self-Healing
- Updates, Diagnostics & Rollback
Root Cause:
- Window Rule Matching: Komorebi evaluates application matching rules in
applications.local.jsonand bundledapplications.json. If a window class or title matches anignoreorfloatingrule (e.g. transient dialogs, tooltips, or splash screens), Komorebi intentionally leaves it unmanaged. - Floating Mode Active: The window was opened as a floating dialog or explicitly toggled to floating mode.
Solutions:
Alt + M(Force Manage): Focus the window and pressAlt + Mto immediately force Komorebi to manage it inside the active workspace tiling grid (komorebic manage).Alt + SpaceorAlt + T(Toggle Float): Toggles the window between floating mode and tiled grid mode (komorebic toggle-float).Alt + Shift + W(Retile Workspace): Recalculates all window coordinates and retiles the entire active workspace (komorebic retile).
Root Cause: Windows enforces User Interface Privilege Isolation (UIPI). When an application (such as PowerShell, Windows Terminal, or CMD) is launched "Run as Administrator" (High Integrity Level), the Windows kernel strictly prevents standard user processes (Medium Integrity Level) from:
- Sending Win32 positioning messages (
SetWindowPos,MoveWindow,ShowWindow) - Hooking window events (
SetWinEventHook) - Forcing foreground activation (
SetForegroundWindow)
If Komorebi was started under standard user privileges (RunLevel: Limited), Windows blocks it from modifying any elevated Administrator window.
Solutions:
- Standard Execution (Recommended): Open your terminal or development tools as a standard user. Komorebi will tile and manage them automatically.
- Elevated WM Execution: If you frequently use Administrator tools, configure the
StartKomorebischeduled task to run withRunLevel: HighestAvailableso Komorebi has elevation to manage both standard and elevated windows.
Use the dedicated window management hotkeys:
| Action | Hotkey | Command |
|---|---|---|
| Force Manage into Grid | Alt + M |
komorebic manage |
| Unmanage from Grid | Alt + Shift + M |
komorebic unmanage |
| Toggle Floating / Tiled | Alt + Space or Alt + T |
komorebic toggle-float |
| Retile Entire Screen | Alt + Shift + W |
komorebic retile |
Alt + Left / Right / Up / Down: Focus adjacent window in that direction (instant 2ms socket call)Alt + J/Alt + K: Previous / next workspaceCtrl + Alt + Left / Right: Previous / next workspace (alternate)Alt + A/Alt + S: Previous / next active workspaceAlt + D: Switch to last focused workspaceAlt + 1-9: Switch directly to named workspace 1-9
Alt + M: Force manage focused window into tiling gridAlt + Shift + M: Unmanage focused windowAlt + Space/Alt + T: Toggle floatAlt + F: Toggle Monocle mode (fullscreen within workspace boundary)Alt + N: Minimize windowAlt + Q: Close focused windowAlt + Shift + Space: Toggle container behaviour (stacking / tiling)Ctrl + Alt + Space/Ctrl + Alt + Shift + Space: Next / previous layout preset
Alt + Shift + Up / Down / Left / Right: Move focused window in that directionAlt + Shift + J/Alt + Shift + K: Send window to previous / next workspaceAlt + Shift + 1-9: Send window to workspace 1-9 (without following)Ctrl + Alt + 1-9: Move window to workspace 1-9 and followAlt + Shift + A / S / D / F: Move active workspace across monitors (Left / Down / Up / Right)
Alt + H/Alt + L: Decrease / increase width by 5%Alt + U/Alt + I: Increase / decrease height by 5%Alt + Y: Modal interactive resize modeAlt + P: Agentic Pair-Programming preset (BSP layout)Alt + G: Grid layout preset
Alt + Return: Launch Windows TerminalAlt + B: Launch FirefoxAlt + E: Launch File ExplorerAlt + O: Launch ObsidianAlt + R: Launch Flow LauncherAlt + C: Launch Cursor IDEAlt + Shift + R: Controlled reload (restarts daemon cleanly)Alt + Shift + BackspaceorAlt + Shift + X: Quick restartAlt + Shift + E: Stop window manager
Alt + F(Monocle Mode -toggle-monocle): Expands the active tiled window so it occupies the entire workspace tiling area while preserving the Komorebi taskbar, window borders, and workspace margins. PressingAlt + Fagain immediately restores the window to its exact previous grid spot without recalculating layout dimensions.- Windows Maximize (
toggle-maximize): Sends a native Win32SW_MAXIMIZEmessage. This covers the taskbar, strips border highlights, and treats the window outside of tiling geometry.
Core window management hotkeys in config/whkdrc use direct binary IPC calls to komorebic.exe over local named pipes / Unix domain sockets rather than spawning an intermediate powershell.exe process. This reduces keystroke dispatch latency from ~400ms down to 1-2ms, giving instantaneous 60 FPS window response.
In komorebi.json, "mouse_follows_focus": true is enabled. Whenever focus changes via keyboard shortcut (Alt + Left/Right/Up/Down, Alt + 1-9, Alt + J/K), Komorebi automatically warps the mouse cursor to the center of the newly focused window. This triggers hover states in web browsers, code editors, and communication apps seamlessly.
masir provides relative-motion focus-follows-mouse. It only shifts window focus when the physical mouse pointer moves across a window boundary. A stationary mouse cursor never steals focus from keyboard-driven workflows.
| Badge Indicator | State | Description |
|---|---|---|
| 🟢 Green | Healthy (4/4) | All subsystems (komorebi, komorebi-bar, whkd, masir) are fully active and monitored. |
| 🟡 Yellow | Recovering / Degraded | The Watchdog has detected a missing subsystem (e.g. bar or hotkey daemon) and is actively auto-resurrecting it. |
| ⏸️ Cyan | Paused | Tiling is temporarily paused (Alt + Shift + P). Windows can be dragged freely without automatic tiling. |
| 🔴 Red | Offline | The window manager is stopped. |
The C# .NET 8 Tray Hub (KomorebiTray.exe) runs a high-frequency supervisor loop:
- Bar Crash / GPU TDR Recovery: If a graphics driver reset or sleep event crashes
komorebi-bar, the Watchdog restarts the bar in <200ms via-RestartBarwithout flickering or disturbing active application layouts. - Hotkey Daemon (
whkd) Auto-Resurrection: If the keyboard daemon exits or encounters an OS hook drop, the Watchdog detects it and restartswhkdwithin 5 seconds. - Core Engine Resurrection: If
komorebi.exehalts unexpectedly, the Watchdog performs a clean mutex-guarded restart of the entire stack. - GDI Saturation Guard: Win32 GDI handle counts are tracked continuously. A balloon notification is issued if GDI allocation exceeds 7,500 handles (warning before the 10,000 system limit).
To check for updates:
komorebi-update -CheckOnlyTo apply the latest release in-place:
komorebi-update
# Or force upgrade:
komorebi-update -ForceYou can also right-click the Komorebi Tray Icon and click 🚀 Check for Updates / Upgrade.
Run the built-in doctor script for a complete health report:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:LOCALAPPDATA\Programs\KomorebiStarter\doctor.ps1" -JsonOr right-click the tray icon and select 🩺 Run Diagnostics (Doctor).
Restore previous desktop (preserving GlazeWM/backups):
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:LOCALAPPDATA\Programs\KomorebiStarter\restore.ps1"Clean uninstallation (preserves configuration files):
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:LOCALAPPDATA\Programs\KomorebiStarter\uninstall.ps1"Complete uninstallation (removes all configuration and runtime state):
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:LOCALAPPDATA\Programs\KomorebiStarter\uninstall.ps1" -RemoveConfig -Force