Compare commits

...
2 Commits
Author SHA1 Message Date
wyj 9238f31283 Misc: fix kitty swallow for steam 2026-09-21 15:50:29 -04:00
wyj 3a1978af0f fix: env should be table 2026-09-02 23:41:05 -04:00
3 changed files with 15 additions and 1 deletions

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ M.confs = {
vrr = 3,
enable_swallow = true,
swallow_regex = "^(kitty|Alacritty)$",
swallow_exception_regex = "^(arch-run steam)$",
background_color = colorscheme.background,
font_family = settings["font_family"],
},
+7
View File
@@ -40,6 +40,13 @@ function M.list_extend(dst, src)
return dst
end
function M.tbl_extend(dst, src)
for key, value in pairs(src) do
dst[key] = value
end
return dst
end
local function deepcopy(value, seen)
if type(value) ~= "table" then
return value
+7 -1
View File
@@ -41,7 +41,13 @@ M.envs = {}
M.windowrules = {}
local function collect_modules_prop(module, prop)
if module[prop] then
if not module[prop] then
return
end
if prop == "envs" then
M[prop] = utils.tbl_extend(M[prop], module[prop])
else
M[prop] = utils.list_extend(M[prop], module[prop])
end
end