loads of stuff but still not done yet

This commit is contained in:
2026-05-12 20:06:37 +01:00
parent c93ddf3818
commit b45ba4f751
11 changed files with 576 additions and 34 deletions

21
autoload.lua Normal file
View File

@@ -0,0 +1,21 @@
-- ~/.config/hypr/autoload.lua
local modules = os.getenv("HOME") .. "/.config/hypr/modules"
local p = io.popen('find -L "' .. modules .. '" -name "*.lua" -type f | sort')
if not p then
return
end
for path in p:lines() do
local ok, err = pcall(dofile, path)
if not ok then
hl.notification.create({
text = "autoload: " .. path .. "\n" .. tostring(err),
timeout = 8000,
icon = "warning",
})
end
end
p:close()