I have a fairly comprehensive list of window rules that center/resize some specific floating windows. What I’d like to add is a non-specific catch-all for any other windows that don’t stay on the screen very long (like splash screens) or don’t show up very often (like Steam’s update window).
Is this possible? The example rule for Xwayland window seems like it would work, but I’m not sure how to convert it.
OK, I added these catch-all rules, working as intended:
hl.window_rule({
-- Catch-all for centering floating windows
name = "center-floating",
match = {
class = ".*",
title = ".*",
float = true,
},
center = true,
})
hl.window_rule({
-- Catch-all for centering modal windows
name = "center-modal",
match = {
class = ".*",
title = ".*",
modal = true,
},
center = true,
})
These do not override any of my specific rules.
Was just on the hunt for a solution to this. Works perfectly! Thanks!