Skip to content

Commit 2cba4fd

Browse files
committed
update - readme
1 parent 3f2ab8c commit 2cba4fd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/guide.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
+

0 commit comments

Comments
 (0)