mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 05:41:16 +01:00
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.
34 lines
1.4 KiB
Python
34 lines
1.4 KiB
Python
# The scrolling layout in a real KWin, with the shared scenario `scrolling.columns`
|
|
# (`komorebi_vm.core.scenarios.scrolling`), which runs on Windows too: the strip runs past the edge
|
|
# of the work area, a window that is out of view rests at the edge it left by with a few pixels of
|
|
# it on the screen, a strip with a monitor next to it leaks no window onto it (`two_monitors`), the strip scrolls with the focus and with `pan`, and the commands of the columns
|
|
# (`consume`, `expel`, `toggle-column-stack`, `scrolling-layout-full-width`) work. `core-e2e` runs it
|
|
# too, among the scenarios that start from a workspace with no window.
|
|
# `komorebi/tests/layout_options.rs` checks where komorebi puts the columns against the fake.
|
|
from komorebi_vm import Checks, Kde
|
|
from komorebi_vm.core.scenarios import scrolling
|
|
from komorebi_vm.core.suite import run_suite, shared
|
|
from komorebi_vm.kde_platform import KdePlatform
|
|
|
|
W, H = 1920, 1080
|
|
|
|
start_all()
|
|
machine.wait_for_unit("multi-user.target")
|
|
machine.wait_for_unit("user@1000.service")
|
|
|
|
checks = Checks()
|
|
# two outputs, of which the second is unplugged before the daemon starts: `two_monitors` plugs it in
|
|
kde = Kde.headless(machine, "main", size=(W, H), outputs=2, scale=SCALE)
|
|
platform = KdePlatform(kde, (W, H))
|
|
platform.remove_display()
|
|
platform.start_komorebi()
|
|
|
|
run_suite(
|
|
checks,
|
|
shared(scrolling.columns, platform, checks, []),
|
|
shared(scrolling.two_monitors, platform, checks, []),
|
|
)
|
|
|
|
kde.stop()
|
|
checks.finish()
|