Spaces map: a full-screen overview on Mod+O #36
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The first version of #18. It settles where the overview lives: a full-screen view of its own, not a drawer page and not niri's overview. #3's window list goes into it; what is inside a window (tabs, terminal contents, Rex status) waits until this works.
Prototyped on a canvas: https://claude.ai/artifact/KaPeJfZrCENeFE9QkN3fjV (private). Board B is the look, and B · Map, crowded shows how it copes with 15, 40 and 80 windows.
What it is
One shell surface covering everything right of the rail, so the rail's dots line up with the rows. Mod+O opens and closes it, taking the key from niri's overview. The touchpad gesture can keep niri's.
screenshot-windowwould put every capture into clipboard history (#3).Keys
The moves are niri actions on the window under the cursor, and the map stays open after them. Moving into the trailing empty space makes a new one under it; emptying a space removes it, as niri does.
Names
Runtime only:
set-workspace-name/unset-workspace-name. A name is lost at logout, and nothing in the config declares one (#35 removesprograms.fjordxy.workspaces).When it gets crowded
These come from the prototype; tune them against the dev session.
+Nbox instead.foot (3), showing the window under the cursor.To check before building
WindowOpenedOrChanged,WindowClosedandWindowLayoutsChangedarrive?pos_in_scrolling_layoutgives a window's column and row. #3 never saw the events on the wire.Not in this version
/to filter, dimming windows that don't match🤖 Generated with Claude Code
What niri 26.04 reports
Checked on the running session (8 windows, 5 workspaces) and in the nested dev session by moving windows by hand.
Enough to draw the map:
layouthaspos_in_scrolling_layout(column, row) andtile_size, in logical px. Windows on inactive workspaces have them too. Box widths aretile_size[0]over the output width (1440 on eDP-1).WindowLayoutsChangedarrives on every move and lists only the windows that changed. A cross-workspace move also sendsWindowOpenedOrChangedwith the newworkspace_id. Consuming into a column shows up as the tile heights halving (928 → 460).active_window_id.Not reported:
tile_pos_in_workspace_viewisnullfor every tiled window, even the focused one on the active workspace. The outline can't be drawn exactly. Instead, mark each space's active window, which is where you'd land.Behaviour that changes the plan:
rune,sparkling-basin,misty-tundraandbrave-emberfrom rexy-desk, kept while empty, and Rex status finds its desk by that name.ron one of them would cut it off from its Rex session. Either rename only unnamed spaces, or rename the Rex session too.niri msg action move-column-*calls started together landed on column 3, 2 and 3 across three identical runs.Niri.action()sends them that way today (Quickshell.execDetached). Each call also costs about 24 ms to spawn.Requirements for the feel
Theme.spring*already matches niri's numbers. A held key carries the spring's speed into the next move instead of restarting. Rows grow and shrink when spaces come and go.focus-window,move-window-to-workspace --window-id … --focus false,set-workspace-name --workspace.move-column-left/right/to-index, consume, expel and swap.Target: motion within one frame (~16 ms) of a key. Only 1 and 3 together get there.
🤖 Generated with Claude Code