hl.window_rule

hl.window_rule(spec)

Register a window rule.

Signature

hl.window_rule(spec: HL.WindowRuleSpec): HL.WindowRule

Parameters

specHL.WindowRuleSpec

Rule table.

Returns

ruleHL.WindowRule

Runtime rule object.

Examples

hl.window_rule({
    name = "float-dialogs",
    match = { class = "pavucontrol" },
    float = true,
    center = true,
})

Notes

Match values may be strings, booleans, or numbers. Named rules are reused on later calls.

See also

HL.WindowRuleSpec

Input table accepted by this function.