Wiki new Window Rules

Hyprland version
Hyprland 0.52.0 built from branch main at commit fbb31503f1b69402eeda81ba75a547c862c88bf2 clean (CI/AI translate: fix yet again).
Date: Wed Nov 19 09:13:54 2025
Tag: v0.52.0-67-gfbb31503f, commits: 6626

Libraries:
Hyprgraphics: built against 0.3.0, system has 0.3.0
Hyprutils: built against 0.10.2, system has 0.10.2
Hyprcursor: built against 0.1.13, system has 0.1.13
Hyprlang: built against 0.6.6, system has 0.6.6
Aquamarine: built against 0.9.5, system has 0.9.5

Trying to adapt my conf with new Window Rules, I see in the wiki:

windowrule = no_blur, match:class firefox

but the result is: invalid field no_blur missing a value

Is windowrule = no_blur yes, match:class firefox correct btw?

`windowrule = no_blur on, match:class firefox` looks better.

Don’t know how to obtain a 50% size :sob:

Has someone size 50% 50% working, or whatever numbers ?

e.g. windowrule = size 50% 50%, match:initial_class ^(proton-bridge)$

If you are on a stable release (eg .52), the updated wiki instructions will not apply. Which makes me believe that .53 stable release is imminent.

You can read more from @vaxry on X here

For the mom, apply
windowrulev2 = size 50% 50%, class:^(firefox)$
You will be good to go.

All my hypr* are git versions.

Yesterday all the stack was recompiled. Today, I just updated hyprland-git and size with % is not working.

I use size xxx xxx at the moment. Not tested Uncommon tips & tricks – Hyprland Wiki

The wiki is versioned.

v0.52 users should be following Hyprland Wiki.

Unlikely given the typical release cadence.

1 Like

Yeah, it’s in the wiki. If you’re on git:

windowrule = float on, center on, size (window_w*0.5) (window_h*0.5), match:class org.gnome.Characters

–OR–

windowrule = float on, center on, size (monitor_w/2) (monitor_h/2), match:class org.gnome.Characters

Works for me.

1 Like

You stand 100% correct.
Despite using hyprland for the last 3-4 months, I never noticed it.
Kudos.

float true, center true this works too.

I’m attempting to make some window rules as well and attempting to use this very rule after you guys have updated it.

windowrule = no_blur on, match:class firefox

and i’m getting an error.

Same is true for one i wrote (not from the documentation but referencing it obviously)

windowrule = idle_inibit always,match:title Dolphin

neither of these seem to work, referencing an invalid value both times.

edit: got line wrong in this post, issue is 100% still occurring.

(Error Below)

image

that syntax is git only

OK so, but firstly it doesn’t error in the already defined rules in my config file, i.e

windowrule = supressevent maximize, class:.*

and secondly if i write it out like

windowrule {
 name = firefox-noblur
 match:class = firefox
 no_blur = on
}

I get:

image

Unless I’m missing what you mean by “that syntax” in which case my b, can you please explain?

the entire windowrule syntax you are using is new, and only in git. The wiki is versioned. Please select the version for your hyprland version.

1 Like

Ah sorry, thanks for your help. I didn’t realise that.

I also had a similar n00bish moment with the wiki. Maybe it would be good if the wiki defaulted to the latest stable version rather than the latest git? Just a thought.