Replies: 2 comments 4 replies
-
|
It doesn't matter which match criteria is used to target a window. They're only run when a window is initially managed, so performance isn't really a problem. Some windows might have the same class name or process name though, so it can be useful in those cases to use multiple criteria to target a window more specifically. window_rules:
# eg. only target Notepad windows that have the title "Untitled - Notepad"
- command: "move to workspace 5"
match_process_name: "notepad"
match_title: "Untitled - Notepad"I think the config syntax might be confusing to some. This match criteria stuff is probably the #1 thing I've been asked questions about. Maybe a syntax like this would be better? - command: "move to workspace 5"
match_by:
- process_name: "notepad"
- title: "Untitled - Notepad"Or another way could be to have a property called Even though it'd be more powerful, maybe it'd just be even more confusing. eg: # Target notepad windows like in the above example
- command: "move to workspace 5"
match_all:
- process_name: "notepad"
- title: "Untitled - Notepad"
# Target windows with either title "Untitled - Notepad" or "Untitled2 - Notepad"
- command: "move to workspace 5"
match_any:
- title: "Untitled - Notepad"
- title: "Untitled2 - Notepad"Edit: by the way, I didn't even know it was valid yaml to repeat a property multiple times. Haven't tried it out before and not sure what would happen. |
Beta Was this translation helpful? Give feedback.
-
|
Anyone able to target Windows 10 System Settings? I'm so far unable, so I resorted to just matching the "Settings" title. Feels iffy but works for now. I tried several variations of Side note: awesome program. Is there a way to support the project? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There are 3 window_rules methods to identify windows to manage:
match_title
match_class_name
match_process_name
Does it matter which method is used? e.g. Process is faster/cleaner/more accurate than Class, and both are better than Title.? Or is it just use whatever?
And what about exact match vs using regular expression? And multipe entries vs combining them?
match_process_name: "Taskmgr"
match_process_name: "PROCEXP64"
or:
match_process_name: "/Taskmgr|PROCEXP64/"
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions