feat: add module windowrule support

This commit is contained in:
2026-06-14 04:28:35 -04:00
parent e298b55cb7
commit f00c8affc4
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -38,6 +38,7 @@ M.autostart = {}
M.autostop = {}
M.binds = {}
M.envs = {}
M.windowrules = {}
local function collect_modules_prop(module, prop)
if module[prop] then
@@ -51,6 +52,7 @@ for _, item in ipairs(modules) do
collect_modules_prop(module, "autostop")
collect_modules_prop(module, "binds")
collect_modules_prop(module, "envs")
collect_modules_prop(module, "windowrules")
end
function M.load()
@@ -61,6 +63,10 @@ function M.load()
for name, value in pairs(M.envs) do
hl.env(name, value)
end
for _, rule in ipairs(M.windowrules) do
hl.window_rule(rule)
end
end
return M