Pro Tip: Create A Floating Workspace On Hyprland

Posted on Oct 24, 2025

If you’re interested in having one (or more) workspace(s) on Hyprland that is floating only for any window that is spawned there, simply put this into your hyprland.conf:

windowrule = float, workspace:5
windowrule = size 800 600, workspace:5
windowrule = center, workspace:5

Note that this works for Hyprland v 0.50 and above, before that the option would be windowrulev2

I have this set up for my workspace number 5, as you see above. I like it because it allows me to have one workspace that is a bit different than all the others. It’s great for screenshots or for little terminals. The middle rule ensures that all windows that spawn on workspace 5 are 800x600 and the third centers them all. This way of doing a window rule can be done with any Hyprland option like no borders, non-rounded windows, etc. That means you can have one workspace styled completely differently than the rest. Or have every workspace styled in its own way. Whatever floats your boat.