mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-15 05:12:28 +01:00
feat(nix): rules, a window the cleared rules matched stays put
After clear-all-workspace-rules a window that the old rules matched opens on the workspace in view and stays there. The first window of that title is closed before the next opens, because the title is how a window is named on both ports.
This commit is contained in:
1 parent
6dbc4d8f63
commit
54d866f83a
1 file changed
+11
-1
@@ -72,5 +72,15 @@ def run(platform: Platform, checks: Checks) -> None:
|
||||
)
|
||||
|
||||
platform.komorebic("clear-all-workspace-rules")
|
||||
for client in (once, always, ignored):
|
||||
platform.komorebic("focus-workspace", "0")
|
||||
# the title is the window's name here, so the first window of it goes before the next opens
|
||||
platform.close(once)
|
||||
platform.wait_for(lambda: platform.os_window(once) is None, timeout=20)
|
||||
later = platform.spawn("sent-once")
|
||||
checks.check(
|
||||
"once the rules are cleared, a window they matched stays on the workspace in view",
|
||||
platform.wait_for(lambda: _on(platform, "sent-once") == 0, timeout=20)
|
||||
and not platform.wait_for(lambda: _on(platform, "sent-once") != 0, timeout=3),
|
||||
)
|
||||
for client in (always, ignored, later):
|
||||
platform.close(client)
|
||||
Reference in new issue
Block a user