Skip to content

bsp: center the lone tiled window on-screen - #457

Open
sndrgrdn wants to merge 1 commit into
acsandmann:mainfrom
sndrgrdn:feat/bsp-lone-window-centering
Open

bsp: center the lone tiled window on-screen#457
sndrgrdn wants to merge 1 commit into
acsandmann:mainfrom
sndrgrdn:feat/bsp-lone-window-centering

Conversation

@sndrgrdn

@sndrgrdn sndrgrdn commented Aug 26, 2026

Copy link
Copy Markdown

Centers the lone tiled window in BSP workspaces at a configurable size, Omarchy/Hyprland-style.

  • [layout.bsp] gains center_single_window (default off) plus width/height ratios.
  • When enabled and a workspace has exactly one tiled, non-fullscreen window, it is centered at those ratios. Fullscreen and fullscreen-within-gaps leaves are exempt; a second window resumes the normal split.
  • New toggle_center_single_window layout command (keybind + CLI) flips it at runtime; config reload resets.
  • Defaults preserve existing behavior (off, full area).

Hyprland's dwindle:single_window_aspect_ratio can only express a fixed width:height ratio, so "narrower width, full height" is not possible there; independent ratios cover it.

Closes #458

AI-assisted — Tool: Pi; model: opencode-go/deepseek-v4-flash.

@sndrgrdn

Copy link
Copy Markdown
Author

Addresses #458

AI-assisted — Tool: Pi; model: opencode-go/deepseek-v4-flash.

Add an optional, configurable lone-window centering mode for the BSP layout
(Omarchy/Hyprland-style). When enabled and a workspace has exactly one tiled,
non-fullscreen window, it is centered at a configurable width/height fraction of
the usable area instead of filling it. Fullscreen leaves are exempt and a second
window resumes normal splitting.

Config: [layout.bsp] center_single_window / width & height ratios.
New toggle_center_single_window layout command (keybind + CLI).
Defaults preserve existing behavior (feature off).
@sndrgrdn
sndrgrdn force-pushed the feat/bsp-lone-window-centering branch from e9e3a36 to bc3b443 Compare August 26, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: center the lone tiled window on-screen (BSP)

1 participant