Commit Graph
25 Commits
Author SHA1 Message Date
LGUG2Z bc962167b7 chore(deps): bump komorebi-layouts for the scrolling model
komorebi-layouts now carries the platform-free half of the Scrolling
layout: the model of a strip of columns, re-exported as
komorebi_layouts::scrolling::model, and what a host needs around it,
which is the layout options for the model, the placement of containers
in a work area, resizing a column or a tile, and the hand-over of column
records between workspaces.

The center_focused_column layout option of the Scrolling layout is one
of Never, Always and OnOverflow there, and a boolean is still read as
true for Always and false for Never. The two places here that said true
say Always, and the schema and the options for nix say so.

This is the revision of the feature/moar-scrolling branch of komorebi
that has them. It is pinned by revision until the branch is merged, and
komorebi-themes moves with it so that the repository is fetched once.
komorebi-scrolling has no license field, so deny.toml clarifies it as it
does the other crates of that repository.
2026-10-29 16:38:24 -07:00
LGUG2Z 2cd5884f21 docs(schema): regenerate schemas, nix options and cli docs
Bring the generated files back in line with the code on master.

- schema.json: add monocle_focus_behaviour and the MonocleFocusBehaviour
  definition. schema.asc.json and schema.bar.json were already current.
- nix/komorebi-options.nix: add the monocle_focus_behaviour option.
  nix/komorebi-bar-options.nix was already current.
- docs/cli: add the pages for layout-ratios, monocle-focus-behaviour,
  permissions and toggle-monocle-focus-behaviour. Update 19 pages for
  the --bar flag of enable-autostart, the per-value help of enum
  arguments and reworded help text. Re-wrap 4 pages whose text did not
  change.

How the files were made:

- schemars-nixgen writes the properties of an object in a different
  order on every run, so the files are not regenerated whole. Only the
  new option is added; the rest of a full run was checked to be the same
  lines in another order.
- docgen on master writes a bare fence with no heading and "Usage: name",
  where the pages in docs/cli have a "# name" heading and "Usage:
  komorebic name". The pages keep the format they have.
- Pages are wrapped at 100 columns, the width docgen uses when it does
  not write to a terminal, instead of the width of the terminal the old
  pages were made in.
2026-10-29 16:38:24 -07:00
LGUG2Z 0cc4ca7f67 docs(nix): update options 2026-05-03 11:13:42 -07:00
LGUG2Z 742543188d feat(wm): add dynamic work area offsets
This commit migrates this features as it was implemented in
LGUG2Z/komorebi@d3779e5a74 and
LGUG2Z/komorebi@53c81c4596.
2026-03-29 15:29:50 -07:00
LGUG2Z ceba46f878 refactor(layouts): migrate to komorebi-layouts crate
This commit migrates to the new komorebi-layouts crate exposed in the
LGUG2Z/komorebi repository, significantly reducing duplication and
change maintenance between the two komorebi implementations.
2026-02-07 14:50:20 -08:00
LGUG2Z 8b4604d47e fix(border): maintain config compat with windows opts
This commit adds a 7px border offset adjustment to the BORDER_OFFSET
value wherever it is used to maintain config compatibility with komorebi
for Windows.

Windows has stupid 7px invisible borders around every app window which
have to be taken into account when setting the values for these options,
but this is not the case on macOS.

However, if we don't replicate the factoring in of those invisible
borders into our offset calculations, the same border config on Windows
and macOS looks vastly different.
2026-01-04 19:40:40 -08:00
LGUG2Z 88a04c2078 feat(config): expose opts for titleless and tabbed applications
This commit exposes configs for titleless (i.e. MS Edge installed apps)
and tabbed (i.e. Ghostty) applications. Ghostty is no longer hard coded
as a tabbed application and should be added via config.
2026-01-02 10:21:46 -08:00
LGUG2Z 49bdf41bfc refactor(schema): simplify defaults in static_config 2025-12-31 12:38:37 -08:00
LGUG2Z 27454c3186 refactor(config): pull theme structs from komorebi-themes
Centralized both KomorebiTheme and KomobarTheme in the komorebi-themes
module in komorebi for Windows.

This commit removes the duplicated references in komorebi for Mac and
just pulls in those; now we only have to update the docs in one place.

Regenerated all the schemas after pulling in the changes.
2025-12-27 22:24:07 -08:00
LGUG2Z ff8c852e62 docs(schema): ensure every enum variant has a renderable title 2025-12-27 20:07:17 -08:00
LGUG2Z b421043494 docs(schema): ensure all public-facing bar config opts have docstrings 2025-12-27 14:46:29 -08:00
LGUG2Z 93bdb327f0 chore(deps): bump komorebi-themes and regen docs 2025-12-27 13:45:59 -08:00
LGUG2Z 73ca25500b docs(config): ensure all public-facing static config opts have docstrings 2025-12-26 21:29:05 -08:00
LGUG2Z f290c7e037 docs(config): encode defaults of unwrapped options into schema
This commit ensures that the various default values that the different
Option<T> config properties can be unwrapped to are encoded by schemars
so that they can be picked up by docgen and nixgen.
2025-12-26 15:19:33 -08:00
LGUG2Z 4e66b46e87 docs(schema): clean up unused schema opts from windows
This commit removes some Windows-only schema opts from StaticConfig and
updates the justfile to start generating content for the new Starlight
documentation site.
2025-12-26 11:02:47 -08:00
LGUG2Z a56f2b42d4 docs(schema): remove custom layout and stackbar refs
This commit removes references to custom layouts and the stackbar as
these are end-of-life komorebi for Windows features which are not being
ported.
2025-12-23 20:07:46 -08:00
LGUG2Z 1e71cb7d92 docs(schema): publish versioned schema docs to lgug2z.com 2025-12-23 12:00:13 -08:00
LGUG2Z 1cb3327395 chore(deps): bump schemars to 1.1 and netdev to 0.40 2025-12-21 10:00:55 -08:00
LGUG2Z 13635817c3 docs(schema): clarify that 'theme' takes priority over 'border_colours' 2025-12-20 22:21:19 -08:00
LGUG2Z e16a885a5e feat(config): add border radius option
This commit adds a border_radius configuratino option which defaults to
10, which matches the uniform radius on Sequoia. Tahoe is a mess, but
people can at least specify their own preferred border radius value now.
Eventually we should look up the radius of each individual window when
creating the borders like JankyBorders does (I think?)
2025-10-27 09:06:20 -07:00
LGUG2Z f848c1d8f0 feat(wm): add opt to constrain grid layout by rows
This commit adds a new LayoutOptions option, GridLayoutOptions,
currently with a single configurable "rows" opt which can be use to
constrain the grid by number of rows.
2025-10-17 16:29:58 -07:00
LGUG2Z 791208a130 feat(wm): add opt to keep focused column centered on scrolling layout
This commit adds a new option under layout_options.scrolling -
"center_focused_column", which defaults to false. When

set to true, and when the number of scrolling columns is an odd number
>=3, komorebi will, if there are enough windows being managed on the
workspace, and if the focused window is not too close to either the
beginning or the end of the workspace ring, keep the focused window in a
centered position in the layout
2025-10-11 14:03:40 -07:00
LGUG2Z ed2185a667 feat(config): add window hiding position behaviour
This commit adds a new monitor configuration option
"window_hiding_position", which takes an enum with the variants
BottomLeft and BottomRight.

Until now the behaviour had been hard-coded to hide windows at the
bottom left of every monitor.

If no value is given on a monitor configuration object, this option will
default to BottomLeft.
2025-10-07 16:46:40 -07:00
LGUG2Z ded36d39ee docs(schema): update jsonschema files 2025-09-30 11:07:00 -07:00
LGUG2Z f9dd8cf9f1 docs(mkdocs): add generated markdown docs for cli cmds 2025-09-26 12:50:17 -07:00