A simple window rule does not apply

Hyprland version

Hyprland 0.56.0 built from branch main at commit e43eaaac6b9ff7987609244f920d978e2b6598c3 clean (config/lua: fix misspelling of `damping` as `dampening` for spring animations ( 15993)).
Date: Sat Aug 29 21:00:47 2026
Tag: v0.56.0-150-ge43eaaac6, commits: 7775

Libraries:
Hyprgraphics: built against 0.5.1, system has 0.5.1
Hyprutils: built against 0.14.1, system has 0.14.1
Hyprcursor: built against 0.1.13, system has 0.1.13
Hyprlang: built against 0.6.8, system has 0.6.8
Aquamarine: built against 0.15.0, system has 0.15.0

Version ABI string: e43eaaac6b9ff7987609244f920d978e2b6598c3_aq_0.15_hu_0.14_hg_0.5_hc_0.1_hlg_0.6
no flags were set

The rule:

hl.window_rule({
name = "firefox",
match = { initial_class = "firefox" },
workspace = 2,
})

No way to move firefox to workspace 2.

btw I can move windows between workspaces with keybinds.

Where should I start looking?

My bad.

Forgotten to declare the file required!

Sorry :roll_eyes: