Commit Graph
115 Commits
Author SHA1 Message Date
LGUG2Z 6190a4ad84 fix(nix): monitors reads the workspace counts when it needs them 2026-10-30 14:44:33 -07:00
LGUG2Z 225bf22a07 fix(nix): KWin is asked for the outputs once a second, and longer timeouts 2026-10-30 14:07:21 -07:00
LGUG2Z 86cf814f92 feat(nix): a crashed daemon leaves nothing hidden, as a shared scenario
Platform.crash kills the daemon abruptly. lifecycle_hidden.crash turns a
monocle on, crashes, starts the daemon again, and checks that it manages
every window, that none is left out of sight, and that a monocle works
again. The KDE extra parking keeps the stale parking desktop checks.
2026-10-30 12:53:28 -07:00
LGUG2Z cb134e7908 feat(nix): fullscreen and the user's maximize are shared scenarios
Platform.fullscreen and Platform.user_maximize take a window fullscreen or
maximize it as the user would, without asking the daemon. The scenarios
maximizing.user and fullscreen check that the daemon takes the window out
of the layout, leaves it alone, and puts it back. The KDE extras keep the
on-top screenshot, the daemon's log and the setup.
2026-10-30 12:53:27 -07:00
LGUG2Z 595706d66f feat(nix): the drag-resize edge cases are a shared scenario
resize.edge_cases makes its drags from the daemon's layout and reads the
frames from the operating system: both sides of a shared edge, a horizontal
edge, a corner and an edge of the screen, with a neighbour or without. The
KDE extra keeps pointer_is_exact.
2026-10-30 12:53:13 -07:00
LGUG2Z 4db3f97e2e feat(nix): the display_change scenario, and resizable_display
A display whose mode changes: the daemon's monitor follows, the windows
stay on a display and apart, and changed back they are where they were.
Platform.resizable_display says which display can change its mode, or None
and the scenario is skipped; KDE says None, as the virtual outputs of the
headless KWin have one mode. Platform.resize_display changes the mode.
2026-10-30 12:53:13 -07:00
LGUG2Z 3beb1b82d9 feat(nix): a window the user moves to another display is a shared scenario
hotplug.user_move moves a window with Platform.move_window to the second
display and checks that the daemon has it on that monitor and every window
is tiled on its display. The KDE suite runs it before the unplug and after
the replug, and the extra sent_by_the_user is gone.
2026-10-30 12:52:51 -07:00
LGUG2Z d14ce4d2e7 feat(nix): monocle focus behaviour is a shared scenario
monocle.focus_behaviour checks that with no-op the window keeps the work
area when the focus is moved in a direction, and with cycle another window
gets it. The KDE extra monocle_focus_behaviour is gone.
2026-10-30 12:52:22 -07:00
LGUG2Z 19c71eef9e feat(nix): named workspace rules and cleared rules are in the shared scenario
The shared rules scenario sends a window by the name of a workspace, checks
that a rule that is not initial is applied again when a window opens, and
that the daemon's global state has no rule after clear-all-workspace-rules.
The KDE extras keep the desktop numbers.
2026-10-30 12:52:21 -07:00
LGUG2Z f2a5c234e1 feat(nix): placement by the class of a window is a shared case
The shared placement scenario opens a window with a class and a rule that
puts the windows of that class first. The KDE extra by_app_id is gone;
by_program (foot.exe) stays.
2026-10-30 12:52:21 -07:00
LGUG2Z fec9b1e3da feat(nix): the query scenario is shared and asserts values
Each komorebic query is compared with the daemon's state, before and after
a change of focus and layout, and a resize that was saved is undone by
loading it, with quick-save-resize and with save-resize. Platform gets
temp_path for the file of save-resize.
2026-10-30 12:52:20 -07:00
LGUG2Z 7d32b02ec8 feat(nix): the handover scenario is shared
minimize, unmanage and manage on the focused window now run through the
neutral platform. The check that the unmanaged window is centered is
neutral: inside the work area and not on a tile of the layout.
2026-10-30 12:52:20 -07:00
LGUG2Z 8b64b3373a feat(nix): the title rule scenario is shared, and a window can rename itself
Platform.spawn takes rename_to and after: the window gives itself another
title after some seconds (a terminal escape on KDE). The scenario ignores a
title, and checks that the window is left alone while it has it, and tiled
once it has another.
2026-10-30 12:51:41 -07:00
LGUG2Z b8be236f98 feat(nix): the layout_flip scenario, shared by both ports
Starts the daemon with the layout_flip option of a workspace set to each value
it takes, over columns, rows and BSP with two and three windows. Checks the
mirror from the OS, that flip-layout turns the option off and on, that a command
adds the other axis, and that the option is the named workspace's own.

core-e2e runs it after startup_rules.
2026-10-30 12:51:06 -07:00
LGUG2Z 3711f235d7 feat(nix): the monitors scenario, shared by both ports
Checks from the OS and the daemon's state what send-to-monitor, move-to-monitor,
their cycle, workspace and named forms, focus-monitor, cycle-monitor,
focus-monitor-workspace and cycle-move-workspace-to-monitor do: the window on
the monitor and workspace asked for, tiled in that display, the others where
they were, and the focus where each command leaves it. focus-monitor-at-cursor
is its own function, for a platform with a pointer.

core-e2e starts KWin with two outputs and unplugs the second before the daemon,
so the other scenarios still see one display. The fake desk (two displays of
different sizes) and its tests are new files.
2026-10-30 12:51:06 -07:00
LGUG2Z 50160477e6 feat(nix): core-e2e runs the new scenarios, and unknown_monitor without a marker 2026-10-30 12:29:02 -07:00
LGUG2Z 774e93fff3 feat(nix): core-lock runs the locking scenario as a suite step 2026-10-30 12:06:25 -07:00
LGUG2Z 70d8041a62 feat(nix): run_suite times each step and can run only some 2026-10-30 12:03:01 -07:00
LGUG2Z a33504f377 feat(nix): the KDE-only suites as extras and run_suite steps 2026-10-30 12:03:01 -07:00
LGUG2Z 3fba34cbec feat(nix): core-e2e leaves KWin restarts to the kwin-restart suite 2026-10-30 12:03:01 -07:00
LGUG2Z cc32260230 feat(nix): kwin-restart as a KDE extra 2026-10-30 12:03:01 -07:00
LGUG2Z 00adb90244 feat(nix): stacks as a KDE extra 2026-10-30 12:03:01 -07:00
LGUG2Z 52d44c2829 feat(nix): scrolling as a KDE extra 2026-10-30 12:03:01 -07:00
LGUG2Z b72edf4bcf feat(nix): workspace-switch as a KDE extra 2026-10-30 12:03:01 -07:00
LGUG2Z 92aaaeb65f feat(nix): placement as shared steps and KDE extras 2026-10-30 12:03:01 -07:00
LGUG2Z caa5b011a8 feat(nix): workspace-rules as KDE extras and shared steps 2026-10-30 12:03:01 -07:00
LGUG2Z 5e0721bec4 feat(nix): core-e2e as shared steps and KDE extras 2026-10-30 12:03:01 -07:00
LGUG2Z 3b40bedac3 feat(nix): drag-resize as KDE extras and shared steps 2026-10-30 12:03:01 -07:00
LGUG2Z bc5f4babc4 feat(nix): commands as shared steps and KDE extras 2026-10-30 12:03:01 -07:00
LGUG2Z f5db6975b4 feat(nix): hotplug as shared steps and KDE extras 2026-10-30 12:03:01 -07:00
LGUG2Z dbe84192d4 feat(nix): an optional komorebi-recorder in the core suites 2026-10-30 12:03:00 -07:00
LGUG2Z 2e078f9ef6 feat(nix): config reload, exe rules and lock scenarios in the core 2026-10-30 12:03:00 -07:00
LGUG2Z 733a5a4934 feat(nix): the rules_class scenario, and an app id for Platform.spawn
A workspace rule by class sends a window to its workspace, an ignore
rule by class leaves one alone, and a window of another class stays
where it opened. Platform.spawn takes an app_id, which is foot's -a on
KDE and the window class on Windows. core-e2e passes 271 checks on KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z e375d0a151 feat(nix): the scrolling scenario
In the scrolling layout each window in turn, given the focus, has it
and is inside the work area; changed back to bsp, every window is where
the layout says. core-e2e passes 265 checks on KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z 672a6951bd feat(nix): the lifecycle_hidden scenario
A window put away on another workspace is managed again after the
daemon stops and starts, and the ones in view are inside the work area
and clear of each other. KdePlatform.start_komorebi waits for the unit
to be gone first: systemctl start does nothing for a unit that is still
stopping, and a daemon with a window put away took longer to exit.
core-e2e passes 261 checks on KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z 74ddcce4d9 feat(nix): the tiling_off scenario
toggle-tiling leaves the windows where they are, a layout change moves
none of them, and toggled again every window is tiled where the layout
says. core-e2e passes 254 checks on KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z 6e111411e7 feat(nix): the pausing scenario
A window that opens while the daemon is paused is not managed; after
toggle-pause again the next one is, and every window is where the
layout says. core-e2e passes 248 checks on KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z d58353d22e feat(nix): the flipping scenario
flip-layout horizontal puts every window where the mirror of its place
is, with every window where the layout says, and flipping again gives
the places back. core-e2e passes 244 checks on KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z 63d5833a84 feat(nix): the promoting scenario
promote puts the focused window on the first tile and keeps its focus,
with every window where the layout says. core-e2e passes 241 checks on
KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z 9b1162dcbe feat(nix): the resize_commands scenario
resize-axis horizontal increase widens the focused window and decrease
gives the width back, with every window inside the work area and none
over another, and no pointer. core-e2e passes 237 checks on KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z a8b30e1c1b feat(nix): the workspace_moves scenario
move-to-workspace takes a window to another workspace and the focus
with it, focus-last-workspace goes back and forth, and moving the window
home tiles everything again. core-e2e passes 233 checks on KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z f1ea111fd0 feat(nix): the maximizing scenario
toggle-maximize gives a window the work area, with the others where they
were and the daemon naming it as the maximized window; toggled again,
every window is tiled where the layout says. core-e2e passes 225 checks
on KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z d4d356c70e feat(nix): the padding scenario, and padding in Snapshot
Raising the workspace padding moves the windows in from the edge by as
much, and raising the container padding leaves them less room; putting
the padding back gives back the windows' frames. The measure is of the
padding the scenario sets itself: on KDE the state says 0 and 0 while
the windows sit 10 px in, and the first run's padding is not what the
state says. Workspace has workspace_padding and container_padding now.
core-e2e passes 220 checks on KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z 4471cc01a8 feat(nix): the minimizing scenario, and Platform.minimize
A minimized window leaves its room to the others, and a restored one
takes it back. Platform.minimize is new: the title bar button on KDE;
activate restores. core-e2e passes 213 checks on KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z 4835907b2e feat(nix): the layouts and floating scenarios
layouts changes the layout of the first workspace to each of eight, with
three windows and with five, and checks every window is where the
daemon's layout says, inside the work area and clear of the others.
floating floats a window, checks the others take its room, and that
floating it again tiles it back. Both run in core-e2e: 209 checks pass
on KDE.
2026-10-30 12:03:00 -07:00
LGUG2Z ddab35b5b9 feat(nix): the focus_follows_mouse scenario, with a pointer
With focus follows mouse on, the pointer over a window gives it the
focus, and the daemon follows; turned off, it moves nothing; turned on
again, it follows again. The scenario needs a pointer and is skipped
without one. The toggle passes --implementation windows, which kfw's
subcommand requires. drag-resize runs it after resize.
2026-10-30 12:03:00 -07:00
LGUG2Z efeaafad28 feat(nix): the startup_rules scenario, workspace rules of a file
A window that was open before the daemon, and one that opens after, go
to the workspace a rule in the config names, by the start of their
title; a window no rule names stays on the first. The rule is in the
file, so what is checked is how the file is read at start. core-e2e
runs it as section 12a2.
2026-10-30 12:03:00 -07:00
LGUG2Z b5e9cf5301 feat(nix): the placement scenario, and Platform.restart_with
Where a window that opens goes, from the placement rules of the
config: none, Primary, a number as a number and as text, and rules by
title for the first and the last place. restart_with starts the daemon
afresh with a komorebi.json the scenario gives. KdePlatform.spawn
quotes the title, which a title with spaces needs. core-e2e runs it as
section 12a.
2026-10-30 12:03:00 -07:00
LGUG2Z 8fc7c961d0 feat(nix): known failures, with unknown_monitor the first
Checks.known_failure records a check that fails for a reason that is
to be followed up on: the suite does not fail, the totals say how many
known failures there are, and one that holds fails the suite so the
marker goes. unknown_monitor takes the reason, and core-e2e runs it
last, because the window it loses stays lost. BEHAVIOUR.md says so.
2026-10-30 12:03:00 -07:00
LGUG2Z 6dbc4d8f63 feat(nix): the lifecycle scenario, a daemon that starts again
The daemon stops, every window stays, and a daemon that starts again
manages the windows that were in view, tiled inside the work area and
clear of each other, and also a window opened afterwards. The fake
platform learns to stop and to start with no memory of workspaces.
core-e2e runs it before its final stop.
2026-10-30 12:03:00 -07:00