mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[FEAT]: add a global default floating window size (or schema key default_floating_bounds) #678
Reference in New Issue
Block a user
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?
Originally created by @kho-ja on GitHub (Sep 19, 2025).
Eligibility
Individual Commercial Use License
Suggestion
Summary
When I toggle a window to floating (e.g. Alt+T /
komorebic toggle-float), the window often opens very small. There is no global config key inkomorebi.jsonto set a default floating size for all windows. Workarounds (per-app rules or AutoHotkey resizing) exist, but a global config option would greatly improve UX.What I expected
A simple global setting in
komorebi.jsonlike:"default_floating_bounds": { "width": 1200, "height": 800 }
so that any window toggled to floating uses that size unless a per-app rule overrides it.
What actually happens
Toggling a window to float often uses the window’s previous geometry or a very small rectangle, forcing me to manually resize each floated window.
Steps to reproduce
komorebic toggle-floatDebug info I can attach
komorebic --versionkomorebic state > state.json(I can paste the relevant window entry if you want)Related
Suggested implementation ideas
"default_floating_bounds": { "width": <int>, "height": <int> }to the static config schema (with optionalx/yfields and per-workspace override).toggle-float, unless a per-app rule provides explicitbounds.Thanks — I can provide
state.jsonoutput and a short video if that helps debugging.Alternatives Considered
Alternatives Considered
Per-application rules in
komorebi.jsonIt is possible to set
"state": "floating"and explicit"bounds"for individual apps. However, this requires writing a rule for every application and does not provide a universal default.External hotkey/workaround scripts
A workaround is to use tools like AutoHotkey or WHKD that first call
komorebic toggle-floatand then resize the active window. This works, but it adds extra tooling outside of Komorebi and is harder to maintain.Manual resizing after toggle
The fallback approach is to manually resize each floated window. This is inconsistent and time-consuming for frequent use.
@github-actions[bot] commented on GitHub (Sep 19, 2025):
Feature requests on this repository are only open to current GitHub sponsors on the $5/month tier and above, people with a valid individual commercial use license, and approved contributors.
This issue has been automatically closed until one of those pre-requisites can be validated.
@LGUG2Z commented on GitHub (Sep 19, 2025):
Check out these options
https://komorebi.lgug2z.com/schema#floating_window_aspect_ratio
https://komorebi.lgug2z.com/schema#floating_layer_placement
https://komorebi.lgug2z.com/schema#float_rule_placement
https://komorebi.lgug2z.com/schema#float_override_placement
https://komorebi.lgug2z.com/schema#toggle_float_placement
You can turn off resizing completely, or resize by a more favorable aspect ratio
I don't have any plans to work on an option to specify size by pixels when floating, but I would consider a PR from anyone who wants to work on it
@kho-ja commented on GitHub (Sep 19, 2025):
Oh I did not expect you are gonna write me. Thank you for your respond.
I checked your links but unfortunately these wasn't what I wanted. But good enough. Thanks!