File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -477,7 +477,7 @@ Here is a showcase example that uses all the possible configurations:
477477[source,toml]
478478----
479479[[on-window-detected]]
480- if.app-id = 'com.apple.systempreferences'
480+ if.app-id = 'com.apple.systempreferences' # Can also be an array: ['app1.id', 'app2.id']
481481 if.app-name-regex-substring = 'settings'
482482 if.window-title-regex-substring = 'substring'
483483 if.workspace = 'workspace-name'
@@ -554,6 +554,11 @@ Examples of automations:
554554[[on-window-detected]]
555555 if.app-id = 'com.jetbrains.intellij'
556556 run = 'move-node-to-workspace I' # mnemonics I - IDE
557+
558+ # You can also use an array to match multiple app IDs with a single rule
559+ [[on-window-detected]]
560+ if.app-id = ['org.mozilla.firefox', 'com.google.Chrome', 'com.brave.Browser']
561+ run = 'move-node-to-workspace W' # All web browsers to workspace W
557562----
558563* Make all windows float by default
559564+
You can’t perform that action at this time.
0 commit comments