Window rule title argument is not regex

Hyprland version
0.55

Hi all! : )

This does not activate the inhibitor:

hl.window_rule({ name = “idle_inhibitor_lichess”, match = { title = “lichess.org” }, idle_inhibit = “focus” })


This does:

hl.window_rule({ name = “idle_inhibitor_lichess”, match = { title = “Analysis board • lichess.org - Brave” }, idle_inhibit = “focus” })


The docs say that title is a regex field, so it should work in both cases. Of course the first one is broader and it is what I need.

I could not find any other topic with this matter, which makes me think there is something in the configs I am missing to enable regex even though I read it inside out. : (

Yes.

hl.window_rule({ name = “idle_inhibitor_lichess”, match = { title = “.*lichess.org.*” }, idle_inhibit = “focus” })

Yes, hyprland uses re2 as the regex engine. With fullmatch. So can’t match things in the middle without specifying a wildcard of some sort. Usually just .* for greedy matching.