Is it possible to have a dynamic 'fullscreen' based on the title?

I just had a nice idea: I noticed that I always fullscreen a browser window whenever I switch to some Figma tab in it, and often unfullscreen when I don’t. So I thought: wow, I can make a rule for that!

windowrulev2 = fullscreen, class:firefox, title:.*Figma.*

This gave no error, but this doesn’t work.

After reading the docs, I guess this is because a fullscreen rule is not a Dynamic rule and is evaluated only once.

Do I miss some other feature which would allow me to achieve this behavior?

I guess I could also write a small program which would listen on a socket for title changes and then do some hypr dispatch, but looks a bit more complex than a config one liner.

Yes and no - not with rules, but you can make a script listening to socket2. See IPC – Hyprland Wiki

1 Like