bsp: center the lone tiled window on-screen - #457
Open
sndrgrdn wants to merge 1 commit into
Open
Conversation
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
force-pushed
the
feat/bsp-lone-window-centering
branch
from
August 26, 2026 16:51
e9e3a36 to
bc3b443
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Centers the lone tiled window in BSP workspaces at a configurable size, Omarchy/Hyprland-style.
[layout.bsp]gainscenter_single_window(default off) plus width/height ratios.toggle_center_single_windowlayout command (keybind + CLI) flips it at runtime; config reload resets.Hyprland's
dwindle:single_window_aspect_ratiocan 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.