summaryrefslogtreecommitdiff
path: root/dots/aerospace
diff options
context:
space:
mode:
Diffstat (limited to 'dots/aerospace')
-rw-r--r--dots/aerospace/.aerospace.toml.j28
1 files changed, 6 insertions, 2 deletions
diff --git a/dots/aerospace/.aerospace.toml.j2 b/dots/aerospace/.aerospace.toml.j2
index 86c3043..c8f57cc 100644
--- a/dots/aerospace/.aerospace.toml.j2
+++ b/dots/aerospace/.aerospace.toml.j2
@@ -122,9 +122,13 @@ automatically-unhide-macos-hidden-apps = true
shift-down = ['volume set 0', 'mode main']
{% for name, ws in window_manager.workspaces.items() %}
-{% for app_id in ws.apps %}
+{% for app in ws.apps %}
+
[[on-window-detected]]
- if.app-id = '{{ app_id }}'
run = ['move-node-to-workspace {{ name }}']
+{% for matcher, value in app.items() %}
+ if.{{ matcher }} = '{{ value }}'
+{% endfor %}
+
{% endfor %}
{% endfor %}