Commit Graph
140 Commits
Author SHA1 Message Date
LGUG2Z dc710ce419 feat(nix): every layout is tried with three, two and one windows
commands.layouts and layouts.run close windows from the end and open them
again with their own titles. The KDE extra layouts_by_count keeps only what
reads the daemon's log: KWin has each window where the daemon last asked.
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 40eba4aade fix(nix): KdePlatform meets the contract Windows already does
spawn raised nowhere on KDE when the window never came, so a check
that a window stays unmanaged passed for a window that was not there.
It does raise now, as do close, minimize, activate and move_window for
a window that does not exist, and a program name Windows rejects. A
title is looked for as it is and not as a pattern. displays() is what
KWin says of each output and not the size the session was given
(Kde.screens, the same script that gives the work area).

The docstrings of Platform say what each member promises and what a
scenario may not lean on.
2026-10-30 12:51:01 -07:00
LGUG2Z 5c4621ae44 fix(nix): shared scenarios take their pixels and waits from the platform
The quiet period of three seconds was written in nine places, each
a number. It is support.QUIET. The window the lock scenario moves is
a third into the work area, not at 400,300, and the scenario now
checks that it moved, or the check that it is back in its tile after
the unlock proves nothing. The room the padding must change by, the
pointer drag and the tile hotplug checks after an unplug come from
the work area.
2026-10-30 12:51:01 -07:00
LGUG2Z 1c701333ad fix(nix): focus_follows_mouse names no implementation and no compositor
The scenario toggled with --implementation windows on both ports, and
its settle time said it was KWin's 200 ms. The default of the command
is each port's own implementation, so the flag goes, and the settle is
a named wait that is longer than what either port needs.
2026-10-30 12:51:01 -07:00
LGUG2Z f012abf6ba fix(nix): a window that is gone is not in view, and what hidden means
Platform.hidden is false for a window the system does not have, so the
workspace scenarios that counted the windows that are not hidden took
a window that was lost for one that was shown. They count the windows
the system has (support.in_view). The docstring says what each port
answers true for beyond a window the daemon put away, and that a
scenario that asks for one to be put away asks the daemon too.
2026-10-30 12:51:01 -07:00
LGUG2Z 5f33e11fa5 fix(nix): resize_commands asks the layout for the change, not a frame
The decrease was checked against the frame within Platform.tolerance,
which is 24 px for a terminal: a daemon that gave back less than the
increase passed. The daemon's layout, which no client rounds, now has
to show the width asked for, and the frame has to follow within the
tolerance. Platform.tolerance says what it is and is not a bound on.
2026-10-30 12:51:01 -07:00
LGUG2Z 9c9639949c fix(nix): KdePlatform.work_area asks KWin for the area less the panels
The headless suites have no panel, so the whole output was right there,
but a session with one got a work area that scenarios could not hold a
window to. KWin's placement area of the first output is asked through a
script, with the whole output as the answer where KWin does not say.

The contract of Platform.work_area is spelled out: the display less what
the system keeps for itself, as the system says. Monocle and maximize
check that the window stays inside it. The fake platform takes a panel,
and a daemon that tiles under it.
2026-10-30 12:51:01 -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 6748528b90 feat(nix): the manage_rules and state_fidelity scenarios 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 3af590c300 feat(repo): scenario-status counts a scenario from its newest log 2026-10-30 12:06:25 -07:00
LGUG2Z 37bb9e3fe4 feat(repo): scenario-status makes the table from the runs 2026-10-30 12:03:01 -07:00
LGUG2Z 781b082778 feat(nix): a test that no extra repeats a shared check 2026-10-30 12:03:01 -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 d5eff2c445 feat(nix): the KWin helpers several KDE extras use 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 2c58920db0 feat(nix): a suite names its steps and returns what they returned 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 b09011dce7 fix(nix): a suite step may call something that returns a value 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 47123ad748 feat(nix): scoped checks and a suite helper in the core 2026-10-30 12:03:01 -07:00
LGUG2Z 15d6a5aef3 feat(nix): exe_id spells the id of a rule for a program 2026-10-30 12:03:00 -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