komorebi-for-kde/README.md, CONTRIBUTING.md -> docs/linux/
komorebi-for-mac/README.md, CONTRIBUTING.md -> docs/macos/
komorebi-for-kde/.github/* -> docs/dev/old-ci/linux/
komorebi-for-mac/.github/*, mkdocs.yml, check_schema_docs.py, dependencies.json,
formula.template.rb -> docs/dev/old-ci/macos/
The CI workflows, dependabot files, issue templates, the macOS Homebrew formula template and
docs-site configuration of the two old repositories are kept for the CI and release plan
that follows (one workflow set, one release); under docs/ GitHub ignores them, as it did
under the subdirectories, so no KDE or macOS workflow runs on this branch. Renames only (19
files); the Windows .github and files at the root are untouched.
komorebi-for-kde and komorebi-for-mac each had a rustfmt.toml (the root one minus
newline_style), a rust-toolchain.toml and .envrc (identical to the root's), a .gitignore and
a LICENSE.md; they are deleted, and the root .gitignore gains the KDE entries (/.vm,
__pycache__/, *.pyc). tools/format-all now has one group: every .rs file of the repository,
file by file with skip_children, with the root rustfmt.toml and the dev shell's nightly
(the --tree option is gone).
Verified: tools/format-all --check passes on the whole tree (the formatting of the six
files edited in the path-fix revision was applied to that revision).
The root justfile now has the recipes of all three: the Windows ones (PowerShell loops
through [windows] recipes, as before) and unix variants of install, build and schemapub,
the KDE ones (lint, check-js, the VM recipes, run-kde, wsl2-probe, nixgen-linux), the
macOS nixgen, and jsonschema/docgen-local that write schemas/<platform> and
docs/<platform>/cli for the platform they run on. Package names are the unified ones (one
komorebic, komorebi, komorebi-bar everywhere) and all paths are the final directories.
komorebi-for-kde/justfile and komorebi-for-mac/justfile are deleted. The KDE
`just check` recipe (cargo test --workspace) is dropped: on Linux it builds the Windows crates;
the commands in docs/dev/build-and-test.md replace it.
Verified: just --list parses; just --dry-run jsonschema prints the right commands on Linux.
The recipes themselves were not run.
The root deny.toml now covers every platform: the graph targets are the three Windows
targets plus x86_64 and aarch64 Linux and aarch64 macOS; the advisory ignores gain the
KDE ones (zbus family, RUSTSEC-2026-0370..0372) and the macOS ones (git2 through shadow-rs,
RUSTSEC-2026-0183/0184; quick-xml, RUSTSEC-2026-0194/0195); the licence allow list was
already a superset of both trees' lists; clarify entries are added for komorebi-linux,
komorebi-macos, komorebi-hotkeys and komorebi-version; quickxml_to_serde joins the allowed
git sources. komorebi-for-kde/deny.toml and komorebi-for-mac/deny.toml are deleted.
The reasons of ignores that exist in more than one file keep the root text.
Not verified: cargo deny was not run here (it is not installed; the nix check of the root
flake runs it in the flake revision of this stack).
schema.json, schema.asc.json, schema.bar.json -> schemas/windows/
komorebi-for-kde/schema.json, schema.asc.json -> schemas/linux/
komorebi-for-mac/schema.json, schema.asc.json, schema.bar.json -> schemas/macos/
The generated schemas of the three platforms are checked in side by side instead of at the
root and in two subtrees. Renames only; the tests, the justfile, the nix checks and the
docs that read them by path are updated in the path-fixing revision of this stack.
komorebi-for-kde/scripts/ -> scripts/linux/
komorebi-for-kde/spikes/ -> spikes/
Renames only. The scripts' own references to the old directories (and to komorebi/src of
the old trees) are fixed in the path-fixing revision of this stack.
komorebi-for-kde/nix/ -> nix/linux/
komorebi-for-mac/nix/ -> nix/macos/
The nix expressions of the platforms (modules, option files, VM test suites, kwin effects,
the darwin module) sit next to the existing nix/workspace-src.nix. Renames only (252
files); the flakes that import them are replaced by one root flake later in this stack, so
nix does not evaluate at this revision.
komorebi-for-kde/docs/ -> docs/linux/
komorebi-for-mac/docs/ -> docs/macos/
The Windows docs stay where they are (docs/). Renames only, so links and include paths
that named the old directories are broken at this revision; they are fixed in the revision
that fixes the paths of the whole layout move.
komorebi/ -> komorebi-windows/
komorebi-for-kde/komorebi/ -> komorebi-linux/
komorebi-for-mac/komorebi/ -> komorebi-macos/
komorebi-for-kde/komorebi-hotkeys/ -> komorebi-hotkeys/
The directories now carry the names of their packages (komorebi-windows, komorebi-linux,
komorebi-macos). Renames only: every file is a 100% rename (270 files); nothing is edited,
so the workspace does not build at this revision. The next revision fixes the paths.
komorebic-linux, komorebi-client-linux, komorebic-macos, komorebi-client-macos and
komorebi-bar-macos were #[path] includes of the unified komorebic, komorebi-client and
komorebi-bar modules, kept only so the old package names kept building. The unified
packages are the only ones now, so the five directories and their workspace members are
gone (Cargo.lock loses their dependency entries).
Things that named the old packages follow: the clarify entries of the two per-tree
deny.toml files, tools/fast-check, tools/mac-check.sh and tools/kde-closure-check (it now
walks komorebic and komorebi-client), and the doc comment of komorebic/src/main.rs.
komorebi-for-kde/nix/root-crates.json gains komorebic, komorebi-client and
crates/komorebi-version, because those are root crates the KDE build depends on now.
komorebi-for-mac/komorebi/src/pan.rs read its transcripts from the deleted
komorebic/fixtures; they are byte-identical to the root komorebic/fixtures, so the three
paths point there.
Not touched here (done in the flake and justfile revisions of this stack): the nix
flakes and justfiles of the trees, which still name the removed packages, and docs/dev.
Verified: Windows cargo clippy --locked --all-targets -D warnings (default members) passes;
KDE cargo test -p komorebi -p komorebic -p komorebi-client -p komorebi-linux passes; macOS
cargo check --target aarch64-apple-darwin (fake CC) of komorebi, komorebi-macos, komorebic,
komorebi-client, komorebi-bar passes; tools/kde-closure-check passes. The nix flakes were
not run.
version-linux (komorebi-for-kde/version, shadow-rs 2) and version-macos
(komorebi-for-mac/version, shadow-rs 1) had the same build.rs and the same lib.rs. They
are now one package, crates/komorebi-version (lib name version, shadow-rs from the
workspace), and the KDE and macOS daemons, their command lines and the unified komorebic
depend on it under the key version. The extern crate lines of komorebic/src/main.rs that
renamed the two crates are gone, and the two deny.toml clarify entries name the new
package.
komorebi-daemon/tests/linux_version.rs read the version out of the old crate's Cargo.toml
text, which no longer has a number (it is inherited); it now expects the package version,
which is the workspace version.
Verified: cargo test -p komorebi -p komorebic -p komorebi-client -p komorebi-linux (KDE
side, native Linux) all pass, including the version test; cargo check --target
aarch64-apple-darwin of the macOS packages with the fake C compiler passes. Windows and
nix were not run for this revision (Windows does not use the crate; nix runs at the end of
the stack).
Every package of the workspace now takes its version from [workspace.package]
(version.workspace = true) instead of its own number. The numbers before were
0.1.42 (Windows libraries and packages), 0.1.0 (KDE, the macOS version crate,
komorebi-shortcuts and the e2e guest crates) and 0.1.1 (macOS libraries); the
unified release is 0.2.0 for all of them.
Cargo.lock only changes the version of the workspace's own packages.
Not changed here: the version text in schema doc comments and the generated
schemas (next revision), and the shim packages, which are deleted later and
only pick up the number meanwhile.
Verified: cargo metadata --offline --locked succeeds.
Candidate 9 (final): wip-cand9draft (wip-u-cmd2 with the router gate_message hook and 12 more shared arms, wip-u-mac-wm2, wip-u-docs2) merged with wip-u-kdenix (KDE deny --config order, intra-doc links, two KDE manifests formatted with taplo, KDE fmt check through tools/format-all with the flake's own nightly). Conflicts, if any, are resolved here.
Candidate 9 (draft): wip-u-cmd2 (router gate_message hook + 12 more arms through komorebi_core::command; stacked on wip-u-wm2) with wip-u-mac-wm2 (shared push_simple_rule, macOS ignore-rule fix, Minimize/Close/DebugWindow methods) and wip-u-docs2 (MIGRATION-SUMMARY.md, macos-hand-check-plan.md), all on wip-cand8. Conflicts, if any, are resolved here.
The kfde fmt check ran `cargo fmt -p ...` and failed with `failed to resolve
mod windows` for komorebic and komorebi-client: rustfmt follows the
cfg_select! branches of the shared entry files into files the KDE source does
not have. It is now a runCommand running tools/format-all --tree kde with the
rustfmt of the flake's own nightly (fmtToolchain, the toolchain craneLibFmt
already used) over komorebi-for-kde/**/*.rs and the linux modules of the
shared crates, file by file with skip_children and komorebi-for-kde/rustfmt.toml.
tools/format-all now takes the rustfmt of the root dev shell first (the same
pinned nightly) before a nightly on PATH, because a different nightly may
format differently or not follow cfg_select.
Verified: with the rustfmt of that very nightly (rust-overlay 19ecdd08,
rustfmt 1.11.0-nightly 2026-10-27, built from the flake's pins)
tools/format-all --check passes for kde, mac and windows on this tree, so the
only failure was the module resolution, not different formatting. The nix
attribute evaluates; not built.
Pure formatting, no other change: taplo fmt (default configuration) of
komorebi-for-kde/komorebi/Cargo.toml and komorebi-for-kde/komorebic/Cargo.toml,
the two files the kfde toml-fmt check reported. The earlier taplo sweep covered
the Windows and macOS sources only.
Verified: taplo fmt --check over the check's file set (the root Cargo.toml,
every .toml of komorebi-for-kde and of the nine to eleven root crates in
komorebi-for-kde/nix/root-crates.json) passes, it failed on exactly these two.
These two manifests change the KDE derivations (deps included, once); the
Windows and macOS ones do not read them.
The kfde doc check failed (rustdoc exit 101) on eleven links: Backend::hide,
restore, cursor_pos, set_rect, focus, center_cursor_in, current_workspaces and
window_workspace are not items of the trait Backend that the links resolve to
here, [`Window`] and [`TRANSPARENCY_ALPHA`] are not in scope in their modules,
and the public Workspace alias links to the private WorkspaceScrolling. The
brackets are removed (the names stay as code), and the two link definitions in
desktop.rs. Documentation text only, no code change.
Verified: RUSTDOCFLAGS='-D warnings' cargo doc --locked -p komorebi -p
komorebi-linux -p komorebic -p komorebi-client -p komorebi-hotkeys --no-deps
(the flake's package set) finishes without errors, before it reproduced
exactly these eleven; local stable rustc is 1.99.1, the toolchain of the flake.
The inline router arms become minimize_foreground_window, close_foreground_window and
debug_window(window_id, reply) with the bodies they had, so that the three arms are the
same text as macOS's (the bodies differ by the platform: the backend and Window::from here,
the foreground element and the Accessibility window list there). Pure move, no behaviour
change.
Verified: KDE cargo check --all-targets and lib tests PASS; tools/format-all --apply
--tree kde ran.
The KDE deny check failed with `error: unexpected argument '--config'
found`: the flake wrote `cargo deny ... check --config <deny.toml> bans
licenses sources`, and in cargo-deny 0.20.2 (the one of the pinned
kfde-nixpkgs) --config is an option of `cargo deny` itself, not of
`check`. It now goes into cargoDenyExtraArgs, before `check`.
Verified: cargo deny 0.20.2 from nixpkgs f05535a0 (the flake's pin) with the
flake's --exclude list, `--config komorebi-for-kde/deny.toml check bans
licenses sources`: bans ok, licenses ok, sources ok (the clarify entries
and the komorebi-bar-core exclusion of the previous fix are enough, also for
komorebi-daemon, komorebi-settings and the wgpu stack). Not built in nix.
The arms MoveWindow, FocusWindow, CycleFocusWindow, PreselectDirection,
CancelPreselect, PromoteWindow, FocusNamedWorkspace,
MoveContainerToNamedWorkspace, SendContainerToNamedWorkspace,
ToggleWindowContainerBehaviour, ToggleCrossMonitorMoveBehaviour and
ToggleMonocleFocusBehaviour are one call each into komorebi_core::command
(12 arms; the 16 of the earlier batch are already there). The KDE
WindowManager implements WindowCommandHost (thin forwards to its own
direction functions, and Workspace::update) and BehaviourCommandHost (its
three settings). The arm text was identical on all three daemons, so the
same functions are called in the same order. Two small differences: a
missing workspace is reported as "there is no workspace" by the shared
code, and the named lookup is a shared function instead of
WindowManager::monitor_workspace_index_by_name (which stays for its other
callers).
BEHAVIOUR (expected none; marked because arms moved): KDE VM commands and focus/move scenarios.
Verified: cargo clippy -p komorebi-linux --all-targets -D warnings passes; cargo test -p komorebi-linux 670 passed, 0 failed; tools/format-all --check clean.
The KDE copy of push_simple_rule and its test moved to komorebi_config::matching (the
config revision of this stack); the daemon imports it. No behaviour change: the function is
the same text.
Verified: KDE cargo check --all-targets and lib tests (fast-check) PASS; native
cargo test -p komorebi-config has the moved test; tools/format-all --apply --tree kde ran.
Pure formatting by the same nightly rustfmt invocation the nix fmt check uses (tools/format-all, edition 2024, the tree's rustfmt.toml). No code change. Applied last on the candidate because it touches many files other agents were editing. Verified: tools/format-all --check --tree kde passes afterwards; light gates (fast-check) after all three.
Section 22.1 of core-model.md: KDE and macOS refuse every message before
the router's match while the focused window is not managed
(handle_unmanaged_window_behaviour); Windows gates inside 18 functions.
CommandHost gets a defaulted gate_message(&mut self, &SocketMessage)
that lets everything through (the Windows form, its impl is untouched);
the KDE and macOS impls call handle_unmanaged_window_behaviour and their
routers call the hook where they called the method, so behaviour is
identical per daemon. komorebi-core now depends on komorebi-protocol
(for SocketMessage; Cargo.lock gains that one edge).
This is the groundwork only: the router itself is still per daemon,
because a shared router needs WindowManager<P> in core (see the
struct-move analysis in core-model.md). No BEHAVIOUR change.
Verified: KDE cargo test -p komorebi-linux 670 passed, 0 failed; fake-CC
clippy -D warnings for the four macOS packages passes; cargo clippy -p
komorebi-windows -p komorebi-core --all-targets -D warnings passes;
tools/format-all --check clean. Not verified: KDE VM, macOS hand check
(no behaviour change expected).
Candidate 8 (second draft): cbc40c03 (cand7 + pointer-picks-monitor + thin-events note + bar wgpu fallback + macOS deep dedup) plus wip-u-win-deep (PlatformMonitorId alias, promote_focus_container_idx hook, the WindowManager hook list) and wip-u-fmt (tools/format-all, nix fmt over the nightly rustfmt, deny clarify entries for Windows and KDE). Conflicts, if any, are resolved here.
clippy::useless_conversion: the values are already komorebi_backend::MonitorId
since the Backend id-type change, so .into() converts to the same type.
One line is joined where the shorter call now fits, so rustfmt stays happy
for the touched lines. Test code only, no behaviour change.
Verified: native clippy --all-targets -D warnings over komorebi-linux,
komorebic, komorebi-client, komorebi-hotkeys, komorebi-core, the shared
crates the KDE flake sees and version-linux/komorebic-linux passes.
Candidate 8 (draft): wip-cand7 plus wip-u-deep (which contains wip-u-ptr: shared focus_workspace_number(s), KDE and macOS get the pointer-picks-monitor preamble, the const removed, and the thin-events design note), wip-u-bar4 (eframe wgpu fallback for the Windows bar, scenario rules) and wip-u-mac-deep (ContainerExt removed, nine shared window_manager functions identical on KDE and macOS, five macOS router arms as named methods). Conflicts, if any, are resolved here.
clippy::ptr_arg (rustc 1.99 in the nix KDE clippy check) rejects &PathBuf
where &Path will do. Callers passing &PathBuf still compile by deref. No
behaviour change. Verified: native clippy --all-targets -D warnings over
the KDE packages passes (see the next revision for the exact set).
The root and KDE deny.toml only clarified the old crate names, so
cargo deny failed with unlicensed for the crates of the unified workspace.
The root deny.toml gets entries (LicenseRef-Komorebi-2.0, as for the
existing ones) for komorebi-backend, -bar-core, -collections, -config, -core,
-protocol, -settings, -transport, komorebic-core, komorebi-e2e-agent and
komorebi-testwin; the KDE one for the same crates that it sees. The KDE deny
check also excludes komorebi-bar-core, which is not a KDE dependency and
brings the git egui-phosphor source that the KDE policy does not allow.
Verified: cargo deny --offline --workspace with the flake's --exclude lists
and `check --config <deny.toml> bans licenses sources` (nix shell
nixpkgs#cargo-deny): root, KDE and macOS: bans ok, licenses ok, sources ok
(before: licenses FAILED for root and KDE, sources FAILED for KDE); taplo
--check passes on both files. Not built in nix.
Candidate 7: wip-cand6 plus wip-u-rulematch (one window-rule matcher in komorebi-config), wip-u-stall2 (lock-holder guard, should_manage before the lock, reaper unlock, heartbeat), wip-u-bar3 (bar e2e scenario fix, skip when the guest cannot draw, bar config tests) and wip-u-cmd (komorebi_core::command: 16 shared router arms). Conflicts, if any, are resolved here.
All three daemons now let the pointer pick the monitor for every shared
command that has the preamble, so the const has no reason left. The
shared functions always call focus_the_monitor_under_the_pointer; the
three CommandHost impls lose the const (Windows had it true already, so
nothing changes there). The core test of the switch becomes
the_pointer_picks_the_monitor_..._on_all_platforms. known-issues item 1
is marked resolved and core-model.md section 18 text is updated.
No behaviour change in this revision beyond the previous two.
Verified: komorebi-core tests all pass (command tests 18); KDE cargo test
-p komorebi-linux 670 passed, 0 failed; fake-CC clippy for the four macOS
packages passes; cargo clippy -p komorebi-windows --all-targets -D warnings
passes. Not verified: Windows tests or e2e (cannot run on Linux).
cargoLock, cargoToml and the vendor directory of the three flakes were taken
as "${real}/Cargo.lock" and crane.vendorCargoDeps { src = real; }. A string
that names a file inside the filtered source carries the whole source in its
context, so every edit of any file in it (a .rs file, a doc) changed the
dependency derivation (komorebi-workspace-deps, about 1000 crates) and the
dependencies rebuilt on every change: the constant COMMIT_HASH alone did not
help once the stubbed workspace source was introduced.
The lock and the root manifest are now builtins.path copies of those two
files (lockFile, tomlFile) and the vendor directory is made from the lock
(vendorCargoDeps { cargoLock = lockFile; }), so the dependencies depend on
Cargo.lock, Cargo.toml and the manifests the dummy source keeps, as before.
Verified (nix eval of drvPath in a throwaway git copy, three commits:
unchanged tree, an edit of crates/komorebi-config, a docs edit): Windows
deps and kfde deps are identical in all three (before: both changed with any
edit); Windows clippy changes with the source edit and the docs edit (docs are
in the Windows source), kfde clippy and vm stacks change with the
komorebi-config edit only; the kfm deny attribute still evaluates. The kfm
deps and clippy cannot be evaluated on this Linux host (the same change was
made there by analogy). Not built: one cold build, then a second commit must
be a cache hit.
Deep dedup D-coord-13 (2), the KDE side (kfde had not edited it; no other KDE
revision touches these functions). add_window_to_container, cycle_container_window_in_direction,
cycle_container_window_index_in_direction, focus_container_window, stack_all,
monocle_on, monocle_off, cycle_monocle and transfer_window are replaced by the macOS
text: 'let spot = workspace.hide_spot(); container.load_focused_window(spot)?;'
(and hide(None, spot)?, restore()?) where KDE had 'let _ = container.load_focused_window(())'.
The shared form is ?, which is equivalent here: the KDE window operations always answer
Ok, so no ? ever returns; hide_spot() is () on KDE. The functions are now byte-identical
in the two daemons (checked with the function splitter diff: no changed line).
The binding of a () value is allowed for the file with a comment
(clippy::let_unit_value) because the point is the identical text.
BEHAVIOUR: none intended (the ? cannot fail), so the gate is to confirm that.
Gate for the coordinator: KDE fast tier and VM scenarios that stack, unstack,
cycle a stack, monocle on and off and cycle, move a window to another workspace.
Verified: KDE cargo check + lib tests (fast-check) PASS; cargo clippy
-p komorebi-linux --all-targets -D warnings shows only errors that predate this
revision (a ptr_arg in process_command.rs:456 and useless conversions in
kwin/mod.rs), none in these files. Not run: the VM.
BEHAVIOUR (KDE): FocusWorkspaceNumber, FocusWorkspaceNumbers and
FocusLastWorkspace now focus the monitor under the pointer first when
its workspace is empty, then run the workspace command, as on Windows.
This resolves item 1 of docs/dev/known-issues.md. Done by setting
CommandHost::POINTER_PICKS_THE_MONITOR_FOR_ALL to true in the KDE
CommandHost impl; the shared komorebi-core functions do the rest.
New tests/pointer_monitor.rs on FakeBackend: three of four failed
before the flip, all pass after it (the fourth checks that a pointer
on the focused monitor changes nothing).
Verified: cargo test -p komorebi-linux in the lite env, 670 passed,
0 failed. Not verified: KDE VM suites. Gate owed: KDE VM commands and
workspace-switch.
Merge of wip-cand5, wip-u-bugfix, wip-u-wm, wip-u-settings3, wip-u-repotools,
wip-u-nix3 and wip-u-e2e2unit.
Resolutions:
- docs/dev/macos-handcheck.md: every section is kept, in order. The bugfix
agent's section F (bar clicks) and the settings agent's section (also
headed F) both appended after E; the settings one is renamed G, text
unchanged.
- komorebi-for-mac/komorebi/src/animation/mod.rs and static_config.rs: the
formatting-only revision of wip-u-nix3 (76ab52da, import order) conflicts
with the semantic edits of wip-u-settings3 (S4/S5). The files are taken
from wip-u-settings3 as they are; the following style(macos) revision
formats them again with the check's rustfmt invocation.
Verified: see the following revisions and the report.
komorebi_core::command gets focus_workspace_number (show a workspace unless
it is in front) and focus_workspace_numbers (show it on every other monitor,
then on the focused one), both with the pointer preamble when the host's
POINTER_PICKS_THE_MONITOR_FOR_ALL says so, over a new CommandHost method
show_workspace_on (focus the workspace of a monitor and load it, which the
daemons already did inline). The three daemons' arms call them (Windows keeps
its focus_workspace_numbers method as a wrapper) and implement
show_workspace_on. The const is unchanged: true for Windows, false for KDE and
macOS, so nothing changes yet; the next revisions flip it. Tests: the
Windows-switch test becomes a test of all five commands with the switch off and
on, and focus_workspace_number(s) are tested on the stub host (commands.py:
focus-workspace, focus-workspaces).
Verified: cargo test -p komorebi-core --features schemars --test commands: 18
passed; KDE cargo test -p komorebi-linux (lite env): 666 passed, 0 failed; fake-CC cargo
clippy -D warnings on the macOS packages: PASS; Windows cargo clippy -p
komorebi-windows --locked --all-targets -D warnings: PASS. Not run: Windows
tests, VM and Mac.
KDE's should_act and should_act_individual become thin wrappers over
komorebi_config::rules (RuleQuirks::UNIX: a `.exe` in a rule id is
ignored, as before); their signatures and the should_act_window wrappers
are unchanged, so no call site moves. The 12 pure matching tests of
komorebi-for-kde/komorebi/tests/rule_matching.rs move to
crates/komorebi-config/tests/rule_matching.rs with their assertions
untouched (they call same-signature local wrappers over the shared
function); the manage-rule rescue test, which needs the fake backend, stays
in the KDE file.
No behaviour change: the function bodies were identical (docs/dev/
rule-matching.md). Verified: cargo test -p komorebi-config --test
rule_matching (12 passed); KDE cargo test -p komorebi-linux --lib (292
passed) and --test rule_matching (1 passed), command_sweep, rules; cargo
check --all-targets clean. KDE clippy -D warnings fails on 4 pre-existing
lints in process_command.rs and kwin/mod.rs (not touched here). Not run:
VM suites.
LockMonitorWorkspaceContainer and UnlockMonitorWorkspaceContainer call
komorebi_core::set_container_locked, and WindowManager implements
ContainerCommandHost with its own monitors_mut. No behaviour change.
Verified: KDE cargo test -p komorebi-linux (lite env): 678 passed, 0 failed.
Not run: VM suites.
Candidate 5: wip-cand4 plus kfw's review fixes (wip-u-fix5: revert of the subscriber write timeout and the hwnd writer thread, BAR_RUNNING tied to the message, dead-window HIDDEN_HWNDS cleanup, core in default-members), kfm's macOS registry fixes (wip-u-kfm3), kfde's hook rename and per-pass title-bar snapshot (wip-u-core4), the komorebi-core characterization tests (wip-u-coretests) and the docs (wip-u-docs). Conflicts, if any, are resolved here.
Both daemons' window.rs have monitor_id_at_cursor() (KDE: the backend's
pointer position resolved to the monitor under it; macOS: MacosApi's
monitor_from_point of its cursor position), and monitor_idx_from_current_pos
in both window_manager.rs files is now the same text up to its macOS-only
comment block. No behaviour change.
Verified: KDE cargo test -p komorebi-linux (lite env): 664 passed, 0
failed; fake-CC cargo clippy -p komorebi-macos ... --all-targets -D
warnings: PASS; Windows cargo clippy -p komorebi-windows --locked
--all-targets -D warnings: PASS (the whole-workspace Windows clippy fails
in komorebi-bar, E0046 missing release_page_url, which is not in this
change and fails at the base). Not run: the macOS tests (the Mac Mini).
The commands e2e scenario (265 checks, about 7.6 minutes on the Windows gate, a
stall-prone sweep) asserts after each of about 216 komorebic commands that the
daemon is alive, answers state and manages every window. For the commands that
only mutate the model that is not a property of a real OS.
komorebi-for-kde/komorebi/tests/command_sweep.rs sends the SocketMessage of each
model command of the scenario's SWEEP, in its order (focus, move, stack,
resize, promote, flip, layouts, toggles, workspaces, monitors, offsets,
padding, behaviours, rules, scrolling), through WindowManager::process_command
over a FakeBackend with two monitors and three windows, and after each asserts
that every window is still managed (any monitor, workspace, layer), and that the
state query answers JSON. A command may refuse (a direction with no window): only
that refusal is accepted as an error. The sweep runs in 0.2 s.
mirrors: commands / <command> leaves the daemon healthy.
What stays e2e only: komorebic parsing each command and writing that message,
the pointer, files and config reload commands, a command that stalls the
daemon while the socket waits, and everything the real OS does with the windows
(the sweep's healthy check against the OS's windows).
Verified: cargo test -p komorebi-linux --test command_sweep in komorebi-for-kde,
1 passed (native, Linux). KDE daemon only: the Windows and macOS daemons have no
native harness. No source change, no bug found.
The rules, rules_class, rules_exe, manage_rules and title_rule e2e scenarios
need a real window to decide WHICH window a rule catches; that decision is the
pure should_act / should_act_individual of the daemon, which no existing test
exercised strategy by strategy (the KDE tests only add a rule or two).
komorebi-for-kde/komorebi/tests/rule_matching.rs adds 13 tests: Equals,
StartsWith, EndsWith, Contains and the four DoesNot* strategies over title,
class, exe and path; each kind reads only its own part of the window; Regex with
and without a compiled regex and over several classes; the .exe suffix of an id
is ignored; no strategy and Legacy keep the old semantics; simple and composite
rules; the last matching rule wins; no rules match nothing; a rule by title
follows the title asked about; an ignore rule keeps a window out and a manage
rule rescues one (through SocketMessage::IgnoreRule / ManageRule and a
FakeBackend desktop). Each test names the e2e check it mirrors.
What stays e2e only: that the daemon evaluates rules when a window opens and not
when it is renamed, that the window then lands on the right workspace and is put
away or shown, and the title, class and exe the real OS reports. The rule
matching exists once per platform (no shared function in komorebi-config), so
this covers the KDE copy only; the Windows and macOS copies stay unproven natively.
Verified: cargo test -p komorebi-linux --test rule_matching in komorebi-for-kde,
13 passed (native, Linux). No source change, no bug found.
The arms CycleMoveContainerToWorkspace, CycleSendContainerToWorkspace,
CycleFocusMonitor, CycleMoveContainerToMonitor, CycleSendContainerToMonitor,
FocusMonitorWorkspaceNumber, MoveContainerToMonitorWorkspaceNumber and
SendContainerToMonitorWorkspaceNumber are one call each of the functions of
komorebi_core::command (their bodies moved there, unchanged), and
WindowManager implements MonitorCommandHost by forwarding to its own methods.
No behaviour change.
Verified: KDE cargo test -p komorebi-linux (lite env): 678 passed, 0 failed.
Not run: VM suites.
Workspace::remove_floating_window calls the hook before it takes the
window out of the ring (the KDE and macOS originals move the focus to the
previous floating window first, and the focus index moves back by one
whatever the length), but the hook was named after_floating_removed and its
doc said after. Name and doc now say before; the behaviour is the one KDE
and macOS had. KDE's and macOS's implementations are renamed with it (the
only users; Windows keeps the no-op default). A stub test pins the order:
the hook sees both floating windows when one is removed.
Reviewer finding F2 (S/review/core.md). No behaviour change.
Verified: cargo test -p komorebi-core --features schemars (native): 30
passed, 0 failed; KDE cargo test -p komorebi-linux (lite env): 664
passed, 0 failed; Windows clippy --locked --all-targets -D warnings:
PASS; macOS fake-CC check: PASS. Not run: VM suites, Windows e2e.
Both daemons' window_manager.rs read the focused window's id the same
way: `foreground_window_id()` from their own window.rs (KDE's is the
backend query it already had there; macOS gets the one-line wrapper of
MacosApi::foreground_window_id). The inline `backend().foreground_window()
.and_then(WindowId::to_u32)` chains on KDE and the `MacosApi::` calls on
macOS go, which is the first step to the same text in the two files (the
Windows one is not touched). No behaviour change.
Verified: KDE cargo test -p komorebi-linux (lite env): 664 passed, 0
failed; fake-CC cargo clippy -p komorebi-macos -p komorebic-macos -p
komorebi-client-macos -p komorebi-bar-macos --all-targets -D warnings: PASS
(type-check only). Not run: the macOS tests (the Mac Mini), VM suites.
Candidate 4: wip-cand3c (core line with macOS on komorebi-core, HideSpot, settings S1-S3, bar e2e scenario, handover scenario fix), wip-u-core3 (shared Workspace update_shared and the Windows converge of window_manager/process_command), wip-u-stallfix (lock-holder instrumentation, sysinfo scan before the lock, bar restart and hwnd file off the lock, subscriber write timeout) and wip-u-pkg2 (one komorebi package and binary, daemons as libraries). Conflicts, if any, are resolved here.
COMPARE.md is a snapshot of kfw 173aa802 and kfm 125a9a5 (2026-10-27), before
the commands, messages and configuration types moved into crates/. Its
generated tables count duplicated definitions that no longer exist, and the
generator cannot read the new layout: running it against this tree
(`--kfw .. --kfm ../komorebi-for-mac --kfde .`) stops with "cannot find
^enum SubCommand" because the command definitions are in crates/komorebic-core.
Rather than regenerate tables that would be wrong, the document gets a STALE
banner naming the snapshot, the reason and where the current description is
(docs/dev/ARCHITECTURE-UNIFIED.md, core-model.md), and the script docstring
says it must be ported or retired. No tables were rewritten.
Verified: ran the script as above (fails as described); the script still
parses. Not built. Executable mode of the script is unchanged.
Plan step 10, S5 for KDE. The seven ANIMATION_* statics are gone. The
Animation, AnimationDuration, AnimationFps and AnimationStyle commands each
write settings().shared.animation with one update (a global value clears that
setting's per-prefix map, a prefix inserts one entry, as before); the
animation block of a load is one update through SharedDelta::apply (a global
value clears the map, a map replaces it, a block without fps has the default,
no block keeps everything); movement_animation and movement_style read one
snapshot (Animation::motion_for).
The seven commands that rearrange a stack (StackWindow, UnstackWindow,
StackAll, UnstackAll, CycleStack, CycleStackIndex, FocusStackWindow) used
ANIMATION_ENABLED_GLOBAL.swap(false) and store(restore), which overwrote a
reload or command that ran in between, and was skipped by an early return.
They now hold settings::animation_off(): Handle::scoped on the global enabled
flag, which puts the previous value back on drop only if the field still holds
false (a change made meanwhile wins, an early return still restores). Same
scope as before: the global flag only, not the per-animation map.
BEHAVIOUR: (1) one publish per load / command; (2) the restore no longer
clobbers a concurrent change; (3) an error return in a stack command now
restores the flag. Gate: KDE VM suites that stack windows (stacks, animation).
Verified: KDE cargo test --locked -p komorebi-linux --lib --tests (lite
env): 58 binaries, 623 passed, 0 failed; the existing tests animation.rs,
animation_config.rs (reload: global versus per-kind, fps default) and
animation_stack.rs (animation back on after each stack command) read through
settings(). VM suites not run.
The consolidation moved files that the KDE docs and a few comments name,
so about a dozen references were dead or wrong:
- docs/dev/ARCHITECTURE.md: `ring.rs` and `lockable_sequence.rs` are in
crates/komorebi-collections; the daemon `main.rs` is `daemon.rs` of the
komorebi-linux library; the KDE command line is
komorebic/src/linux/mod.rs and hotkeys.rs of the root komorebic package;
the tests that moved are komorebic/tests/linux_{check,cli,hotkeys}.rs,
komorebi-client/tests/linux_subscribe.rs and
komorebi-daemon/tests/linux_{socket,hot_reload}.rs.
- komorebi/src/check.rs (doc comments only), the VM `check` suite and its
library extra, docs/dev/scrolling-next.md: `komorebic/tests/check.rs` and
`cli.rs` are `linux_check.rs` and `linux_cli.rs`.
- CONTRIBUTING.md, Releases: the version is in komorebi/Cargo.toml (the
KDE tree no longer has a workspace manifest).
Text and comments only, no code. The edit of check.rs and of the VM files
changes the KDE derivations (acceptable for docs). Verified: a link checker
over komorebi-for-kde/docs/dev reports no dead relative link; the moved test
files exist and contain the two named test functions. Not built.
Plan step 10, S4. TRANSPARENCY_ENABLED and TRANSPARENCY_ALPHA are no
longer statics: the Transparency and TransparencyAlpha commands and
ToggleTransparency write settings().shared.transparency with one update, the
load applies both keys as one update, the transparency manager reads the flag
and the alpha from one snapshot, and state and the config dump use the
accessors. KDE's load RESETS both keys when absent (false, 200), unlike
Windows which keeps the value; the delta passed to SharedDelta::apply is built
with unwrap_or so that stays exactly as it was. tests/transparency.rs and
transparency_config.rs use settings() (the latter pins the load with and
without the keys).
BEHAVIOUR: (1) ToggleTransparency was a load then a store and is now one
update, so two toggles cannot lose each other; (2) the load publishes both keys
together. Gate: KDE VM suite for transparency/opacity.
Verified: KDE cargo test --locked -p komorebi-linux --lib --tests (lite
env): 58 binaries, 623 passed, 0 failed. VM suites not run.