LeopardWM

A scrollable tiling window manager for Windows.
https://github.com/user-attachments/assets/d367d337-4005-4c1d-bdd5-8a678b34582f
What Makes It Different
Most Windows tilers use tree or BSP layouts. LeopardWM is scroll-first: windows sit on a horizontal strip, and your monitor acts as a viewport that scrolls over them. Navigation stays spatially consistent as windows are added — you move through context instead of constantly rebuilding split trees.
- Vsync-aligned animations — smooth scrolling powered by a
DwmFlush-driven animation engine
- First-class touchpad gestures — three-finger swipes drive focus and scroll out of the box
- Disables Windows 11 Snap Layouts on managed windows — no more accidental edge-snap when you drag a tile
- Auto-detected per-window rounded corners and high-contrast/reduced-motion/battery awareness — system integration that respects user settings
- WebView2 settings GUI with Mica backdrop and live theme switching — not just a config file
- GPL-3.0 — commercial use without a paid license, written in safe Rust
In Action
Overview — zoom out to a map of your non-empty workspaces and jump anywhere
https://github.com/user-attachments/assets/4de8a4f4-1bd9-4a69-bed8-4f6ba3dba0ca
Workspaces — per-monitor workspaces; switch between them and move windows across
https://github.com/user-attachments/assets/0c06ac6b-2527-467c-a369-b41ea48c040b
Tabbed columns — collapse a column into a tab strip, only the active tab fills the rect
https://github.com/user-attachments/assets/73f6a133-e038-41c5-8b33-79bd67c6c267
Scratchpad — stash a window out of the layout and summon it back as a floating overlay
https://github.com/user-attachments/assets/30595d72-0fad-4db8-903c-52307087c00e
Sticky windows — pin a window so it follows you across workspaces, tiled or floating
https://github.com/user-attachments/assets/43715787-1501-4e19-b693-f301065e914d
Design Philosophy
A few deliberate non-features, so you know what you're getting:
- Scroll-first, not multi-layout. No BSP, no DWindle, no Equal/Stair/UltrawideVerticalStack — and we won't add them. niri (Wayland) and PaperWM (GNOME) stay scrolling-only by choice; the horizontal strip is the identity. If you want 9 layout variants, komorebi is the right tool.
- No Virtual Desktop bridging. Per-monitor workspaces don't map cleanly to Windows' global Virtual Desktops, and the only library that bridges them (
winvd) breaks every 3-6 months on Windows feature updates. Instead, Win+Ctrl+Arrow is intercepted and routed to LeopardWM's workspace prev/next so the native muscle memory still works.
- Named-pipe IPC by default. An optional, local-only GlazeWM-compatible endpoint supports Yasb's stock workspaces widget; it is not a general WebSocket API.
Features
- Multi-row scrolling strips — configure 1 to 4 independent horizontal scrolling rows per workspace with custom height splits and gaps
- Multi-monitor workspaces with monitor-aware focus and move (9 workspaces per monitor)
- Global hotkeys with live config reload
- PowerToys Shortcut Guide export —
lwm query hotkeys lists effective bindings; lwm export-shortcut-guide writes a user manifest (stdout, --output PATH, or --install)
- Smooth scroll animations with layout transition effects (vsync-locked)
- Touchpad gestures with configurable swipe actions
- Drag-and-drop — drag a window onto a column to merge it in; Shift+drag to reorder columns or move a column to another monitor or row. Set
plain_drag_action = "reorder" under [behavior] to swap these gestures.
- Tabbed columns — toggle a column between vertical-stack and tab-strip mode (
Ctrl+Alt+T); only the active tab fills the column rect, the rest sit in a clickable strip above
- Scratchpad — stash the focused window out of the layout (
Ctrl+Alt+Shift+S) and summon it back as a floating, centered overlay on demand (Ctrl+Alt+S); stash it again to release it back to tiling
- Sticky windows — pin a window (
Ctrl+Alt+Y) so it follows you across workspaces, keeping its current mode: a tiled window stays tiled (a column you can cycle to), a floating window stays a floating overlay
- Overview mode —
Ctrl+Alt+Space opens a map of the monitor's non-empty workspaces; click a window card to jump to it, click a row to switch workspace, or navigate with arrows or your configured keyboard focus_left / focus_right / focus_up / focus_down bindings while keeping the overview open. Your configured keyboard move_window_up / move_window_down bindings move the selected window to the previous / next numbered workspace on that monitor, including empty workspaces, without switching workspace or closing the overview; selection follows the moved window. Moves stop at workspace 1 or 9, sticky windows stay put, and move_window_left / move_window_right do nothing while the overview is open. Enter selects, digits switch workspace, and Esc cancels without undoing moves. Other bound actions and gesture bindings keep their normal behavior.
- Per-app window rules — float, ignore, or tile by class/title/executable, plus per-app open behavior: target workspace, initial column width, open maximized
- Floating and fullscreen toggles
- Width and height presets with column equalization, maximize-column, center-column, align-column-left/right, and optional free mouse resizing
- Active focus border with auto-detected rounded corners
- System tray with pause, reload, settings, and diagnostics
- WebView-based settings GUI (Mica backdrop, live theme switching, dark mode)
- Safe mode for troubleshooting (
--safe-mode)
- Built-in diagnostics (
lwm doctor)
- Workspace persistence and session recovery
- Optional empty-workspace skipping for relative navigation
- Autostart via Registry, configurable from CLI / Settings / tray
- In-app update notifier — daily check against GitHub Releases, opt-out
- Windows 11 Snap Layouts disabled for managed tiled windows
- Battery-aware: animations auto-disable on battery / power saver
- Respects Windows reduced-motion and high-contrast settings
- DPI-aware gap and border scaling per-monitor
Installation
Via package manager (recommended)
winget install jcardama.LeopardWM # Windows Package Manager
scoop bucket add extras # Scoop (first time only)
scoop install extras/leopardwm
This installs LeopardWM and puts leopardwm, leopardwm-cli, and lwm on your PATH. Use winget upgrade jcardama.LeopardWM or scoop update leopardwm to install the latest release.
Via MSI installer
Download LeopardWM-x.y.z-x86_64.msi (or LeopardWM-x.y.z-arm64.msi for ARM64) from GitHub Releases and run it. Re-running a newer MSI upgrades in place — no manual uninstall needed.
Via standalone zip
For users who prefer not to install:
- Download
LeopardWM-x.y.z-x86_64-windows.zip (or LeopardWM-x.y.z-arm64-windows.zip for ARM64) from GitHub Releases
- Extract to a permanent location
- Put
lwm on the PATH. The zip does not change the PATH.
- Run
leopardwm.exe
- (Optional) Enable autostart:
lwm autostart enable
Current releases are not code-signed, so Windows SmartScreen may show a warning on first install.
Put lwm on the PATH
Zip installs need this setup so status bars and other programs can run lwm by name. MSI installs also need it if you deselected PATH Environment Variable (on by default). winget and Scoop already handle the PATH.
Use the folder that actually contains lwm.exe, not the executable itself. For a zip, this is the extracted LeopardWM-x.y.z--windows folder, with no bin subfolder. Explorer's Extract All can create a nested folder of the same name. For a default MSI install, use C:\Program Files\LeopardWM\bin unless you chose another install folder.
To add it to your user PATH without admin rights:
- Search Start for "environment variables" and open Edit environment variables for your account.
- Select Path under user variables, then choose Edit.
- Choose New, paste the folder that contains
lwm.exe, and choose OK to close each dialog.
Or run this in PowerShell, replacing the example folder with yours:
$dir = 'C:\Tools\LeopardWM' # the folder that contains lwm.exe
$userPath = [Environment]::GetEnvironmentVariable('Path', 'User')
$entries = @($userPath -split ';' | Where-Object { $_ })
if ($entries -notcontains $dir) {
[Environment]::SetEnvironmentVariable('Path', (($entries + $dir) -join ';'), 'User')
}
Open a new terminal and run where.exe lwm to see every lwm found on the PATH. Restart Yasb and any other bar, terminal, or launcher after a PATH change: running programs keep the PATH they had at startup. If one still cannot find lwm, sign out and back in.
After extracting a newer zip into a different folder, update the PATH entry to that folder.
Quick Start (from source)
Prerequisites: Rust with the MSVC toolchain (stable-x86_64-pc-windows-msvc or stable-aarch64-pc-windows-msvc).
See Contributing for development checks and the optional Node.js Settings check.
git clone https://github.com/jcardama/LeopardWM.git
cd LeopardWM
# For x86_64:
cargo build --release
# For ARM64:
cargo build --release --target aarch64-pc-windows-msvc
Start the daemon:
# x86_64:
./target/x86_64-pc-windows-msvc/release/leopardwm.exe
# ARM64:
./target/aarch64-pc-windows-msvc/release/leopardwm.exe
A default config is created automatically at %APPDATA%\leopardwm\config\config.toml. Customize via the tray icon → Settings, or edit the file directly.
By default, resizing a tiled window with the mouse snaps to width and height presets. Set mouse_resize = "free" under [layout], or choose Free under Settings → Layout → Mouse resize, to keep the dragged size instead.
By default, partially visible tiled columns can overlap another monitor. Set offscreen_mode = "park" under [layout], or choose Park off-screen under Settings → Layout → Off-screen columns, to move columns that would overlap another monitor outside the virtual screen. Oversized columns retain the default behavior.
Park mode moves columns only once the layout is at rest. While the strip scrolls, a column sliding past a monitor edge can briefly appear on the neighboring monitor. If your monitors sit side by side, you can avoid this by arranging them diagonally or stacked in Windows display settings, so that no monitor lies directly past another's left or right edge. A mouse-remapping tool such as Cursr or PhysMouse can then keep the cursor moving between them as if they were still side by side. Setting scroll_duration_ms = 0 under [animation] also avoids the overlap, but turns off the scroll animation.
Set new_window_monitor = "focused" under [behavior] or choose Settings → Behavior → New window monitor → Focused monitor to open new windows on the focused monitor's active workspace, including an empty workspace. The default, "opening", uses the monitor where Windows opened the window, falling back to the focused monitor when it opens outside all monitors. If no focused monitor is known, "focused" uses the opening behavior. A workspace rule selects the workspace index on the policy-selected monitor; sticky windows retain their opening monitor and active-workspace placement. Floating windows moved by this policy are fitted to the chosen monitor's work area before being centered. Changes apply live on config reload or Settings save only to windows that open while LeopardWM is running. Already-open windows discovered at startup or during reload/rescan keep their existing monitor and are added to its active workspace; their floating rectangles are not moved or fitted by this policy. Already-managed windows and startup persistence restores are unchanged.
Default Hotkeys
Most hotkeys use Ctrl+Alt as the base modifier. Layered pattern: base = focus, +Shift = move, +Win = monitor scope. Every hotkey is rebindable in config.toml. Combos Windows reserves (like Win+Ctrl+Arrow) can't be bound directly, but the opt-in Reclaim Windows-reserved shortcuts setting lets you use them anyway.
Punctuation bindings accept -, =, ,, ., [, ], ;, /, `, \, and ', or the word tokens Minus, Equals, Comma, Period, Bracket_Left, Bracket_Right, Semicolon, Slash, Backtick, Backslash, and Apostrophe. Each punctuation binding matches the Windows virtual key for that symbol on a US English layout. On other keyboard layouts, that key can be in a different place. The Settings shortcut recorder saves the key you press on any layout, using its US-layout symbol as the saved name.
| Key | Action |
|---|
Ctrl+Alt+H/L/J/K | Focus left / right / down / up |
Ctrl+Alt+Home / End | Focus start / end of strip |
Ctrl+Alt+Shift+H/L | Move column left / right |
Ctrl+Alt+Shift+Home / End | Move column to start / end of strip |
Ctrl+Alt+Shift+J/K | Move window down / up in column |
Ctrl+Alt+Shift+PageUp / PageDown | Move window to prev / next workspace (cycles) |
Ctrl+Alt+[ / ] | Move window to left / right column |
Ctrl+Alt+Shift+[ / ] | Expel window to new column left / right |
Ctrl+Alt+, / . | Consume left / right column's window into the focused column |
Ctrl+Alt+Minus / Ctrl+Alt+Equals | Cycle column width down / up |
Ctrl+Alt+Shift+Minus / Ctrl+Alt+Shift+Equals | Cycle window height down / up |
Ctrl+Alt+0 | Equalize all column widths |
Ctrl+Alt+Shift+0 | Equalize window heights in column |
Ctrl+Alt+M | Maximize focused column to viewport width |
Ctrl+Alt+C | Center focused column in viewport |
Ctrl+Alt+Win+,/. | Focus monitor left / right |
Ctrl+Alt+Win+Shift+,/. | Move window to monitor |
Ctrl+Alt+1...9 | Switch to workspace 1–9 |
Ctrl+Alt+Shift+1...9 | Move focused window to workspace 1–9 |
Ctrl+Alt+Space | Toggle workspace overview |
Ctrl+Alt+Shift+Left / Right | Workspace prev / next (cycles) |
Ctrl+Alt+W | Close focused window |
Ctrl+Alt+F | Toggle floating |
Ctrl+Alt+Shift+F | Toggle fullscreen |
Ctrl+Alt+T | Toggle tabbed mode on focused column |
Ctrl+Alt+S | Toggle scratchpad (summon / hide) |
Ctrl+Alt+Shift+S | Stash focused window to scratchpad (or release it back to tiling) |
Ctrl+Alt+Y | Toggle sticky (follow across workspaces, keeping tiled/floating mode) |
Ctrl+Alt+P | Toggle pause |
Ctrl+Alt+R | Refresh (re-enumerate windows) |
Ctrl+Alt+Shift+R | Reload config |
Win+Ctrl+Escape | Emergency restore + panic-revert |
Turning off a default hotkey
To turn off a default hotkey in config.toml, delete its binding line and list its action ID in disabled under [hotkeys]. For example, after removing the close_window binding:
[hotkeys]
disabled = ["close_window"]
Deleting the line alone is not enough: defaults are merged back on load unless the action is disabled, already bound elsewhere, or its default chord is used by another binding. Alternatively, clear the binding in Settings → Hotkeys, which does both for you.
These commands have no default keyboard binding and are also available in the
Settings gesture menus:
| Command | Action |
|---|
focus_next / focus_prev | Focus the next / previous window across columns, wrapping at strip ends |
focus_floating / focus_tiling | Focus the remembered floating window / return focus to the tiled layer |
switch_focus_floating_tiling | Switch focus between the floating and tiled layers |
focus_row_up / focus_row_down | Focus the row above / below |
move_window_to_row_up / move_window_to_row_down | Move the focused window to the row above / below |
scroll_left / scroll_right | Move the strip viewport left / right by 100 px without changing focus |
nudge_left / nudge_right | Move a floating window or shift tiled windows left / right by move_step |
align_column_left / align_column_right | Align the focused column to the left / right edge of the screen |
float / tile | Float the focused window if tiled / tile it if floating |
scroll_up and scroll_down under [gestures] default to focus_next and
focus_prev. Hold [hotkeys].scroll_modifier (Ctrl+Alt by default) while using
the mouse wheel to run them. Set [hotkeys] scroll_modifier = "none" to turn
modifier-wheel navigation off, or clear the scroll modifier in Settings. An
empty or unrecognized config value falls back to Ctrl+Alt. This does not disable
other wheel gestures or swipes. For small window moves instead, set:
[gestures]
scroll_up = "nudge_left"
scroll_down = "nudge_right"
> The scratchpad and sticky pins are session-scoped: they are keyed by window handle and reset when the daemon restarts.
Multi-Row Layout
Multi-row layouts are off by default. Configure 1 to 4 independent horizontal scrolling rows per workspace; each row has its own scroll offset, column widths, and tabbed columns.
Basics
focus_row_up / focus_row_down moves focus to the row above / below; these commands are unbound by default and can be bound in Settings or [hotkeys]
lwm move-to-row up / lwm move-to-row down (or bind move_window_to_row_up / move_window_to_row_down in Settings) moves the focused window into a new column immediately after the destination row's focused column, or the first column if the row is empty
- Tiled vertical focus (
Ctrl+Alt+J / Ctrl+Alt+K) crosses rows at column edges regardless of move_window_across_rows; setting it to true (default false) also lets Ctrl+Alt+Shift+J / Ctrl+Alt+Shift+K move windows across rows at column edges
- Window rules can open tiled windows in a specific row using
row = 1 (1-based). Values past the workspace's row count select its last row; row = 0 and the row setting on rules with action = "float" are ignored
Configuration
[layout.rows]
split = ["100%"] # fallback for workspaces without an override; one row by default
gap = 8 # vertical gap between rows in pixels (scaled per-monitor with DPI)
# Configure rows per workspace (1 to 4 rows: fractions like "1/2", "1/3", or weights like "1", "2").
# Workspaces without an explicit entry use [layout.rows].split.
[[layout.rows.workspaces]]
workspaces = [1, 2] # 1 or more workspaces (1-9)
split = ["1/2", "1/2"] # 2 equal rows
[[layout.rows.workspaces]]
workspace = 3 # single workspace
split = ["1/3", "1/3", "1/3"] # 3 rows
[behavior]
move_window_across_rows = true # allow move_window_up/down to cross row boundaries (default false)
[hotkeys]
"Ctrl+Alt+PageUp" = "focus_row_up" # optional example bindings
"Ctrl+Alt+PageDown" = "focus_row_down"
[[window_rules]]
match_executable = "slack.exe"
row = 2 # 1-based row index (1 = top row)
Tabbed columns
Stack multiple windows into a clickable tab strip inside any column. Combine with the scrolling viewport for niri-style tabs that also pan horizontally — a combination no other Windows window manager ships today.
Basics
Ctrl+Alt+T on the focused column toggles between vertical stacking (the default) and tabbed mode
Ctrl+Alt+J / Ctrl+Alt+K cycle the active tab — same keys as intra-column focus, no new bindings to learn
- Click any tab in the strip to activate it; the click is a real focus change, so the border, foreground state, and IPC events all follow
- Tab titles and icons update live as windows rename themselves or swap notification badges
Per-tab actions
- Hover any tab to reveal a close-X at its right edge — click to close the tabbed window
- Middle-click does the same as the close-X
- Right-click any tab for a context menu:
Close window / Untab this window / Rename tab…
- The implicit close gesture (X-button / middle-click) is configurable in Settings → Behavior → "Tab close action" —
close_window (default, browser-style) or untab (rip the tab out into a new vertical column to the right)
- Right-click menu items always carry their literal action —
Close window always closes regardless of the toggle, Untab this window always untabs
- "Rename tab…" opens a modal dialog seeded with the current tab title. Submitting saves a per-window override that survives untab, workspace moves, and daemon restart. Clearing the field removes the override and the live title returns
Drag-and-drop (Chrome semantics)
- Drop a window onto a tabbed column from anywhere — body or strip — and it appends as the rightmost tab and becomes active
- The drop-zone ghost spans the whole column rect so the target is unambiguous
Lifecycle
- A tabbed column with one window auto-reverts to vertical mode
- Tabbed state (and which tab is active) survives daemon restart, along with any per-tab title overrides
- Tab overrides for windows that no longer exist are pruned automatically at daemon startup
- The strip hides during fullscreen, pause, and on workspaces with no tabbed column
Customization — strip height, background, active/inactive text colours, active highlight, opacity, and the tab close action are configurable from the Settings UI or [appearance] / [behavior] (tab_strip_height, tab_strip_bg, tab_strip_active_bg, tab_strip_active_text, tab_strip_inactive_text, tab_strip_opacity, tab_close_action).
CLI
LeopardWM ships two interchangeable CLI binaries — both invoke the same code:
| Binary | When to use |
|---|
leopardwm-cli | Canonical name. Use in docs, scripts, and shared examples. |
lwm | Short alias for daily typing. |
Examples below use whichever is shorter for the line. See the CLI command reference for every command and its options.
Daemon lifecycle
lwm run # start the daemon (idempotent — no-op if already running)
lwm stop # stop the daemon
lwm status # show version, monitor count, window count, uptime
Matching versions (Recommended): use the CLI and daemon from the same release. Corrected lwm run pending-apply handling depends on both sides understanding apply_pending. A matching pair reports a still-pending recovery landing as a non-success without emergency visibility restore. An older CLI maps that status to unknown and may invoke emergency restore. Mixed versions are not negotiated or isolated on the pipe. Pending handling does not change the Apply request shape. This release still advances the overall IPC protocol from v3 to v4 for workspace-state snapshots.
Query state
lwm query workspace # current workspace layout summary
lwm query focused # focused window info
lwm query all # every managed window across all workspaces
lwm query hotkeys # effective bindings plus config diagnostics
PowerToys Shortcut Guide
Export the daemon's effective hotkeys as a PowerToys Shortcut Guide user manifest:
lwm export-shortcut-guide # YAML to stdout
lwm export-shortcut-guide --output PATH # write a file
lwm export-shortcut-guide --install # replace the user manifest
--output and --install are mutually exclusive. --install writes
%LOCALAPPDATA%\Microsoft\WinGet\KeyboardShortcuts\LeopardWM.LeopardWM.en-US.yml.
Use matching CLI and daemon builds; query and export require IPC v3. The
manifest is a snapshot: after changing bindings, reload LeopardWM and export
again, then reopen Shortcut Guide. Query and export report resolved
configuration, not proof that the keyboard hook is installed or active; safe
mode can still list configured bindings.
Each alternative binding is a separate shortcut. Equivalent spellings of the
same physical chord resolve consistently: the lexicographically first valid
configured binding wins, and warnings identify ignored collisions. F13-F24 used
as modifiers cannot be represented by PowerToys and are skipped with a warning;
F13-F24 used as ordinary trigger keys can be exported. Warnings go to stderr so
stdout remains usable YAML.
Interface language
Choose Settings → Appearance → Language, or set this in config.toml:
[appearance]
language = "en" # "en" (default) or "zh-CN"
The open Settings window, tray menu, and daemon notifications use the selected
language after saving or reloading config; no daemon restart is needed. Unsupported
values fall back to English with a config warning. There is no automatic OS-language
selection. Simplified Chinese is a human-reviewed translation.
Locale files are embedded in the daemon, so editing a translation requires a rebuild.
See the localization contributor guide for file locations,
placeholders, validation, and the surfaces that remain English.
To edit or add a catalog, see Translating LeopardWM.
Layout options
Settings → Layout → Center columns, or [layout] center_columns, chooses "off" (default), "single" (center the only active column when it fits), or "fit" (center each row's active columns together while they fit). This applies with every centering_mode and center_past_edges setting; minimized-only columns and floating windows do not count. With center_past_edges enabled, edge alignment can also scroll past the strip ends. In fit mode, aligning left or right temporarily releases centering until the row layout changes. The legacy center_single_column key is still read, but center_columns takes precedence when both are present.
Taskbar buttons — Settings → Behavior → Taskbar buttons, or taskbar_buttons under [behavior], offers "hide_offscreen" (default, hide buttons on inactive workspaces and for tiled windows scrolled out of view), "hide_inactive_workspaces" (keep every button on each monitor's active workspace, even when scrolled out of view), and "show_all". Floating and minimized windows keep their buttons on the active workspace; inactive workspaces hide all buttons unless "show_all" is selected. Sticky windows follow the active workspace. Changes apply on config reload without changing window placement. Existing hide_offscreen_taskbar_buttons = true / false maps to "hide_offscreen" / "show_all"; when both keys are present, taskbar_buttons wins. Settings saves only the new key.
Layout commands
Most users drive the layout via hotkeys, but many commands are also available through the CLI for scripting or AutoHotkey integration. With a floating window focused, move commands nudge it within the monitor work area by [behavior] move_step logical pixels (default 50, range 1–1000); width and height presets size it against that work area, and center centers it there. Keyboard or wheel nudge commands use the same step to move floating windows or shift tiled windows.
lwm focus left | right | up | down
lwm focus-floating # focus the remembered floating window
lwm focus-tiling # return focus to the tiled layer
lwm switch-focus-floating-tiling # switch between floating and tiled layers
lwm focus-row up | down | 1..4 # focus adjacent row or select a row
lwm cycle-width # next width preset, wrapping at the end
lwm cycle-height # next height preset, wrapping at the end
lwm move left | right # move focused column
lwm move-window up | down # reorder within a column
lwm nudge-left | nudge-right # shift windows by move_step
lwm move-to-row up | down # move window to row above / below
lwm workspace 3 # switch to workspace 3
lwm toggle-floating
lwm float # float the focused window if tiled
lwm tile # tile the focused window if floating
lwm toggle-fullscreen
lwm scratchpad-stash # stash focused window (or release the scratchpad)
lwm scratchpad-toggle # summon / hide the scratchpad
lwm toggle-sticky # pin / unpin focused window on every workspace
lwm toggle-ignore # session-only ignore for the OS foreground window
Set floating_above_tiled = true under [behavior] or enable Settings → Behavior → Keep floating windows above tiled windows (off by default) to keep visible managed floating and sticky floating windows above tiled windows when a tiled window receives focus. This only changes relative ordering in the normal Z-order band: floating windows keep their order among themselves, do not become native topmost, and never take focus or move/resize. App-owned topmost and unmanaged windows are not modified. Minimized windows, inactive workspaces, and other monitors are excluded; fullscreen on that monitor and overview suspend re-raising.
floating_above_tiled works only when track_focus_changes = true (the default). Restart LeopardWM after changing track_focus_changes, since focus tracking hooks are configured at startup. Turning tracking off also stops floating re-raises immediately on reload.
Disabling the option simply stops re-raising. There is no daemon-owned Z-order state to restore on disable, ignore, release, or shutdown.
Set focus_crosses_monitors = true or move_crosses_monitors = true under [behavior], or enable the corresponding Settings toggles, to focus the neighboring monitor or move the focused column there when a tiled horizontal command reaches the strip edge. Both default to false; floating focus is unchanged. lwm move-to-monitor and the move_to_monitor_* hotkeys still move one window. These horizontal options are independent of workspace_edge_wrap, which only affects vertical navigation and moves.
Set workspace_edge_wrap under [behavior] or in Settings to "off" (default) to leave edge focus and moves on the current workspace, "wrap" to switch or move to the adjacent workspace and wrap between 1 and 9, or "clamp" to stop at workspace 1 and 9. Legacy true and false still mean "wrap" and "off" respectively.
Set skip_empty_workspaces = true under [behavior] or enable Settings → Behavior → Skip empty workspaces (off by default) to skip empty slots on the same monitor. This applies to workspace_next / workspace_prev, which always wrap, and to focus_down / focus_up when workspace_edge_wrap switches workspaces. With clamp, focus stops at the first or last occupied workspace; if no other occupied workspace is reachable, it does nothing.
Tiled, floating, and minimized managed windows count as occupancy; sticky windows do not. Explicit numbered selection, all move-to-workspace commands (including edge-wrap moves), overview, and horizontal focus are unchanged. Closing the last window does not automatically switch workspaces. Moving it away switches only when following moved windows is enabled.
Set follow_window_to_workspace = true under [behavior] or enable Settings → Behavior → Follow moved windows (off by default) to switch to the destination and keep focus on a window moved to another workspace. This also applies to moves at a workspace edge, but not overview drag.
cycle_width and cycle_height are unbound by default; assign each a shortcut in Settings or [hotkeys]. Height cycling applies only to vertically stacked multi-window columns.
lwm toggle-ignore targets the actual OS foreground window, not LeopardWM's cached
focus. Toggling out unmanages that window for this daemon session only; toggling
it back in re-admits it on the current monitor's active workspace. Persistent
Ignore rules still win. The action is in the hotkey catalog with no default
shortcut.
Release all managed windows
lwm release-all-windows
This pauses tiling, clears LeopardWM's active decoration, globally attempts to
restore any top-level windows parked at LeopardWM's off-screen sentinel, and
cascades every tiled and floating managed window. Membership and admission stay
intact: use lwm toggle-pause to resume tiling. The command has no confirmation
prompt. If recovery fails or a live window cannot be restored, cascaded, or is
still maximized, release may be partial, tiling remains paused, and the CLI
reports the failure. Release first invalidates older animation work and waits up
to 100 ms for the animation worker. If that worker is busy, or a timed-out
placement worker is still recovering, no cascade is performed and tiling stays
paused. Retry lwm release-all-windows after the worker finishes; the failed
request never schedules a later cascade. Final cascade positions are ordered
after previously queued animation positions, and ordering failures are reported.
Autostart (boot with Windows)
lwm autostart enable # writes HKCU\Software\Microsoft\Windows\CurrentVersion\Run
lwm autostart disable # removes it
This is also exposed as a Settings UI toggle and a tray menu item.
Subscribe to events (status bars, custom integrations)
lwm subscribe # legacy event kinds, newline-delimited JSON
lwm subscribe --events workspace,focused_window # filtered subset
lwm subscribe --events workspace_state # complete all-monitor workspace state
lwm query workspaces # one complete workspace snapshot
lwm workspace 2 --monitor '\\.\DISPLAY2' # select a workspace on that display
lwm subscribe | jq # pretty-printed in another terminal
After the daemon answers Subscribed, the connection stays open and streams
IpcEvent frames as state changes occur. An empty filter preserves only the
legacy event set (workspace_changed, focused_window_changed, layout_changed,
config_reloaded, heartbeat); complete workspace snapshots require explicit
--events workspace_state opt-in and acknowledgement (IPC v4). Targeted workspace commands
use 1-based indices and transfer focus to the named monitor; snapshot indices are
0-based. See the bar integration guide and full event schemas.
Enable GlazeWM compatibility in Settings or set enabled = true under [glazewm_compat] in the config, then add Yasb's stock glazewm.workspaces.GlazewmWorkspacesWidget. It uses ws://localhost:6123 by default and updates as workspaces change. If GlazeWM already holds that port, LeopardWM continues without the endpoint; if LeopardWM holds it, GlazeWM cannot start. See the Yasb setup and styling guide for port configuration and the alternative CLI-based Custom widget.
Troubleshooting
lwm doctor # checks config, daemon reachability, integrity and log status
lwm collect-logs # writes a redacted snapshot under %LOCALAPPDATA%\leopardwm\diagnostics\ and prints its path
lwm reload # reload config from disk without restarting
lwm refresh # re-enumerate windows after weird state
lwm panic-revert # emergency: uncloak everything, drop daemon out of management
Run lwm help (or lwm --help) for the full surface — there are ~40 subcommands.
Touchpad gesture diagnostics
Precision Touchpads that do not send three-finger wheel events can opt in to
native HID swipe detection with raw_input = true under [gestures] in
config.toml (or the Gestures setting). Restart LeopardWM after changing it.
lwm doctor and lwm collect-logs show whether native swipes are active or why
they are inactive.
Set the Windows three- and four-finger touchpad gestures to Nothing under
Settings > Bluetooth & devices > Touchpad, or Windows will consume the swipe.
The existing mouse hook still handles modifier-plus-scroll; if native
registration or device capability checks fail, wheel-based swipes remain active
when wheel_swipes is enabled.
Raw Input compatibility varies by device.
wheel_swipes = true under [gestures] is the default. Set it to false (or turn
off Settings > Gestures > Wheel-based swipes) to stop injected wheel events from
navigating windows, including mouse side wheels such as the MX Master. This
applies live on config reload; wheel events still reach the application, and
modifier-plus-wheel navigation is unchanged. Non-Precision touchpads that send
swipes as wheel events lose those swipes with it off. Precision Touchpads can
keep native swipes with raw_input = true. enabled = false still disables all
gesture support. Changes to enabled apply live on Settings save or config
reload. Re-enabling uses the native Raw Input setting from daemon startup;
changing raw_input still requires a restart.
Failed physical gestures are diagnosed with an opt-in, short capture — not by leaving general logging at TRACE. Capture is default off; turning it on does not change gesture behavior.
-
In %APPDATA%\leopardwm\config\config.toml, set a short interval under [gestures]:
diagnostic_capture_secs = 15
The value is startup-only and clamped to 120 seconds. Settings saves preserve the knob; there is no live start command.
-
Restart the daemon with the documented workflow. lwm reload is not enough.
lwm stop
lwm run
Stopping and starting can disturb off-screen client-area or DWM frame geometry. That is a known restart limitation, not a gesture-compatibility claim.
-
During the capture window:
- Two-finger scroll without the configured navigation modifier (
hotkeys.scroll_modifier, default Ctrl+Alt). Pass-through is expected (stage=classifier outcome=reject).
- The same scroll with the modifier. Navigation should classify as a pass and may
recognized/dispatch.
- All four three-finger directions, with a pause between each.
-
Record the Windows touchpad setting as observed; do not treat it as a required mapping, and do not assume it guarantees wheel delivery to LeopardWM:
- Windows 10: Settings → Devices → Touchpad
- Windows 11: Settings → Bluetooth & devices → Touchpad
-
Use lwm doctor to inspect the daemon and CLI process-integrity lines. They do not measure the arbitrary foreground app; separately reported elevated-window blocks are different evidence. The capture header records daemon_integrity only. This report cannot prove elevated hook visibility, finger count, or device origin.
-
When the interval ends, the daemon writes a summary even with zero input. Inspect %LOCALAPPDATA%\leopardwm\logs\leopardwm-gesture-capture.log, or the Gesture Capture section of lwm collect-logs (full file, not the last-100 daemon tail). For a gesture bug report, share that artifact.
Interpretation:
| Stage | Meaning |
|---|
registration | disabled / failed / registered / stopped — config and hook setup evidence, not a claim that a capture is running now |
hook_delivery | A wheel message reached the production hook (axis, delta, flags, modifier held, swipe candidate) |
classifier | pass entered navigation or swipe handling; reject is pass-through |
accumulation | Running total after this event |
timeout | Partial swipe accumulator reset after the gesture timeout |
cooldown | Navigation event suppressed during cooldown |
recognized | Engine emitted swipe_* or scroll_* |
dispatch | Daemon binding: known plus a canonical command name, no_action (empty binding), or unknown (command text omitted) |
no_input=true means the capture observed zero hook_delivery records and had no dropped, capped, admitted-at-deadline, or deadline-boundary in-flight records; registration alone still counts as no hook input. It is not proof that the touchpad is dead. If records_dropped, records_capped, records_admitted_at_close, records_in_flight_at_close, or records_after_close is non-zero, input may have been lost or crossed the bounded deadline — repeat with a shorter interval or fewer gestures.
-
Set diagnostic_capture_secs = 0 afterward so the next restart does not rearm capture and overwrite the report. Default-off does not truncate an existing file; a new capture replaces it.
Config & Runtime Paths
track_focus_changes under [behavior] synchronizes managed focus with Windows focus changes such as Alt-Tab. It defaults to true; changes to focus tracking hooks take effect the next time LeopardWM starts, not on config reload or Settings save.
With [behavior] focus_follows_mouse = true, set focus_lock_modifier to "Ctrl", "Alt", "Shift", "Win", or "F13" through "F24" to hold that key while moving the mouse without changing focus. The default is "none". Releasing the key does not change focus until the next mouse enter. When Alt or Win blocks a focus change, LeopardWM masks the key while it is held to avoid opening an app menu or Start. If an F-key is also a hotkey's trigger, that hotkey can prevent the lock from engaging; LeopardWM warns about this configuration.
> Note: Crate names and on-disk paths still use leopardwm internally. A full crate rename is future work.
| Item | Path |
|---|
| Config | %APPDATA%\leopardwm\config\config.toml |
| State | %APPDATA%\leopardwm\data\workspace-state.json |
| Daemon log | %LOCALAPPDATA%\leopardwm\logs\leopardwm-daemon.log (previous: leopardwm-daemon.old.log) |
| Daemon error log | %LOCALAPPDATA%\leopardwm\logs\leopardwm-daemon.err.log |
| Watchdog log | %LOCALAPPDATA%\leopardwm\logs\leopardwm-watchdog.log (previous: leopardwm-watchdog.old.log) |
| Gesture capture | %LOCALAPPDATA%\leopardwm\logs\leopardwm-gesture-capture.log |
Architecture
LeopardWM is a Rust workspace with five crates:
| Crate | Responsibility |
|---|
leopardwm-core-layout | Platform-agnostic scrolling layout engine |
leopardwm-platform-win32 | Win32 integration, window operations, DwmFlush animation engine |
leopardwm-ipc | Named-pipe command/response protocol |
leopardwm-daemon | Runtime event loop, state management, dedicated message-pump threads |
leopardwm-cli | User-facing CLI (also installed as lwm for shorter typing) |
LeopardWM is a window controller, not a compositor. DWM remains the compositor. Behavior can vary across app frameworks (Win32, WPF, Electron, UWP).
LeopardWM runs unprivileged. A window running at a higher privilege level (elevated/administrator, or a protected process) can't be repositioned by an unprivileged process, so LeopardWM leaves it floating instead of reserving an empty column for it, and lists it under lwm doctor. Run LeopardWM as administrator if you need those windows tiled (note: an elevated WM has the inverse limitation, drag-and-drop from normal apps into it is blocked).
Built-in Window Exclusions
LeopardWM automatically skips certain windows that should never be tiled. You can add your own rules via [[window_rules]] in the config, but these are always active.
These windows are filtered out during enumeration and never enter the layout engine:
| Class | Why |
|---|
Progman | Program Manager (desktop) |
Shell_TrayWnd / Shell_SecondaryTrayWnd | Taskbar |
WorkerW | Desktop worker |
Windows.UI.Core.CoreWindow | UWP system windows |
XamlExplorerHostIslandWindow / TopLevelWindowForOverflowXamlIsland | XAML islands |
RAIL_WINDOW | WSLg RemoteApp — RDP-projected Linux windows that break when repositioned |
Ghost | DWM hung-window replacement — tiling would duplicate the original |
#32770 | Standard Win32 dialog (Open/Save/Print/Properties) |
Chrome_RenderWidgetHostHWND | Internal Electron/Chrome render widget, not a real window |
Ignored executables (window rules)
These processes are ignored via built-in window rules (action = ignore):
| Executable | Why |
|---|
smartscreen.exe | Windows Defender SmartScreen |
consent.exe | UAC elevation prompt |
msiexec.exe | Windows Installer |
CredentialUIBroker.exe | Windows credential/login prompt |
SnippingTool.exe | Screen capture overlay |
Built-in floating rules
| Executable | Title regex | Why |
|---|
Audacity.exe | ^Importing | Import progress popup |
A user rule matching the same window overrides the built-in rule.
Fixed-size caption windows
Windows with a title bar and minimize button but no resize frame or maximize button open floating at their own size and position by default. Set [behavior] fixed_size_windows = "tile" to tile them instead, or use "float" for the default. Any matching window rule overrides this setting; an action = "tile" rule keeps a particular window tiled. A rule without an action, for example one specifying only open_on_workspace or column_width, also tiles the window. Dialog-like windows without minimize or maximize buttons remain unmanaged unless a rule matches.
Floating Window Rule Position
Floating window rules can specify x and y as integer offsets in 96-DPI logical pixels from the top-left of the work area on the monitor where the window opens. The monitor is chosen by normal admission, including new_window_monitor; no rule-specific monitor selector is needed. The offsets scale with that monitor's DPI. An unset axis keeps the window's own position before clamping.
[[window_rules]]
match_class = "ExampleClass"
action = "float"
x = 100
y = 50
When either offset is set, both axes are clamped inside the work area. A window larger than the area on an axis is aligned to that area's start on that axis. Rules with neither x nor y retain their existing placement behavior. These fields apply only to floating rules and are config-only; Settings preserves them when saving rules.
Size Conditions for Window Rules
Small helpers can share an app's class, title, and executable with its main window. For example, ignore QQ NT helpers with an app-specific size rule:
[[window_rules]]
match_executable = "QQ.exe"
match_max_width = 400
match_max_height = 300
action = "ignore"
Both optional limits use the outer window size in logical pixels, the same units as rule width and height. At 100% display scaling, these equal the window's pixel dimensions. At 150%, a 600 × 450 pixel window counts as 400 × 300 logical pixels.
Limits are ANDed with the class, title, and executable conditions; size alone cannot match a window. Rules are first-match-wins, so put the size rule above broader rules for the same app. Size conditions apply on admission: an ignored small window is re-evaluated if it grows or its title changes, but a managed window is never dropped for shrinking. Edit Max width and Max height in a rule's Options menu in Settings. Leaving both blank preserves existing matching behavior.
Focus Border Corners
The focus border tries to match each window's actual corner radius. Apps that explicitly set DWMWA_WINDOW_CORNER_PREFERENCE are honored (DONOTROUND → 0 px, ROUNDSMALL → 4 px, ROUND → 8 px); everything else falls back to the 8 px Win11 default.
Some apps draw their own non-DWM-composited frame with square corners while still reporting the OS default — Firefox / Zen Picture-in-Picture popups are the most common example. Override the corner style per window rule:
[[window_rules]]
match_class = "MozillaDialogClass"
corner_style = "square" # also: "rounded" | "small_rounded"
You can also set border = false to hide the focus border for a matching window, or border_color = "RRGGBB" to replace the global border color. border = true is the same as leaving it out and does not enable a globally disabled border; any matching rule with border = false hides the border. For border_color and corner_style, the first matching rule that sets the field wins. Windows high contrast overrides both global and rule colors with the system highlight color.
The MozillaDialogClass → square rule ships in the default config as a working example. Open Settings → Window rules, then use a rule’s Options menu to edit corners (Auto / Square / Rounded / Small rounded), Border visibility, Border color, placement, or its initial Column width. Column width is a viewport fraction from 0.05 to 1.0; leave it blank for the default width.
Support
If you find LeopardWM useful, consider supporting development:

Contributing
See CONTRIBUTING.md.
✨ Contributors
Thanks to everyone who has helped shape LeopardWM.
Mihir Talati (@Mihir-Null)
Conner C (@c3us-dev)
冰冻大西瓜 (@bd-dxg)
Shawn (@ShawnChiu)
Dean Sellis (@azumafuji)
License
GPL-3.0