hl.window_rule¶
- hl.window_rule(spec)¶
Register a window rule.
Signature¶
hl.window_rule(spec: HL.WindowRuleSpec): HL.WindowRule
Parameters¶
- spec
HL.WindowRuleSpec Rule table.
Returns¶
- rule
HL.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.WindowRuleSpecInput table accepted by this function.