Skip to content

Commit 7137c8a

Browse files
axman6khaneliman
authored andcommitted
tests/aerospace: include on-window-detected
1 parent 95861b5 commit 7137c8a

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

tests/modules/programs/aerospace/aerospace.nix

+14
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@
1414
alt-k = "focus up";
1515
alt-l = "focus right";
1616
};
17+
on-window-detected = [
18+
{
19+
"if" = { app-id = "com.apple.MobileSMS"; };
20+
run = [ "move-node-to-workspace 10" ];
21+
}
22+
{
23+
"if" = { app-id = "ru.keepcoder.Telegram"; };
24+
run = [ "move-node-to-workspace 10" ];
25+
}
26+
{
27+
"if" = { app-id = "org.whispersystems.signal-desktop"; };
28+
run = [ "move-node-to-workspace 10" ];
29+
}
30+
];
1731
};
1832
};
1933

tests/modules/programs/aerospace/settings-expected.toml

+12-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ enable-normalization-opposite-orientation-for-nested-containers = true
88
exec-on-workspace-change = []
99
on-focus-changed = []
1010
on-focused-monitor-changed = ["move-mouse monitor-lazy-center"]
11-
on-window-detected = []
1211
start-at-login = false
1312

1413
[gaps.outer]
@@ -25,3 +24,15 @@ alt-h = "focus left"
2524
alt-j = "focus down"
2625
alt-k = "focus up"
2726
alt-l = "focus right"
27+
28+
[[on-window-detected]]
29+
"if.app-id" = "com.apple.MobileSMS"
30+
run = ["move-node-to-workspace 10"]
31+
32+
[[on-window-detected]]
33+
"if.app-id" = "ru.keepcoder.Telegram"
34+
run = ["move-node-to-workspace 10"]
35+
36+
[[on-window-detected]]
37+
"if.app-id" = "org.whispersystems.signal-desktop"
38+
run = ["move-node-to-workspace 10"]

0 commit comments

Comments
 (0)