Files
hypr/autoload.lua

22 lines
427 B
Lua

-- ~/.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()