Hi,
I saw the latest commits with float/ignored split and it's fantastic news.
However, is there a way to set a floating rule for a process that will also match the title?
For example, in GlazeWM 2 I used something like:
- command: "set floating"
match_process_name: "/maya/"
match_title: "/^((?!Autodesk MAYA|Autodesk Maya|Maya).)*$/"
So basically every window that doesn't have those strings in the title will automatically be set to floating
In GlazeWM 3 I had to split it into two rules, because Rust Regex does not support negative lookahead.
- commands: [ 'set-floating' ]
match:
- window_process: { regex: 'maya' }
- commands: [ 'set-tiling' ]
match:
- window_process: { regex: 'maya' }
window_title: { regex: ".*(?:Autodesk MAYA|Autodesk Maya|Maya).*" }
The idea being the same, that the title match defines the floating behavior.
The main reason is that certain software uses a lot of floating windows internally (like Autodesk Maya in this example) and tiling them is not practical. However, the main window should be tiled.
Thanks!