Make window matchers accept regex pattern
offlinehacker opened this issue · comments
Issue
Currently window matchers only accept exact match. So that means if window class is chromium-browser
, match_wm_class_contains = chromium
would only match chromium
window class and not chromium-browser
class. I assume it's the same for other matchers.
Solution
Implement additional matchers (or change existing ones to match by regex). Example:
[Chromium]
suspend_delay = 10
match_wm_class_contains_pattern = (chormium|chromium-browser)
suspend_subtree_pattern = chromium
Hmm interesting, i dunno why chromium
does not work for me, only after i changed to chromium-browser
it started to work, will investigate.