This commit is contained in:
2026-11-08 13:52:40 +00:00
commit 6ef80df50d
5 changed files with 43 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/.session

26
autoload.lua Normal file
View File

@@ -0,0 +1,26 @@
local hyprRoot
local modules
if os.getenv("HYPRLAND_ROOT") then
hyprRoot = os.getenv("HYPRLAND_ROOT")
else
hyprRoot = os.getenv("Home") .. "/.config/hypr"
end
modules = hyprRoot .. "/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, error = pcall(dofile, path)
if not ok then
hl.notification.create({
text = "autoload: " .. path .. "\n" .. tostring(error),
timeout = 8000,
icon = "warning",
})
end
end

3
events.lua Normal file
View File

@@ -0,0 +1,3 @@
hl.on("hyprland.start", function()
hl.exec_cmd("waybar")
end)

12
hyprland.lua Normal file
View File

@@ -0,0 +1,12 @@
local handle = io.popen("hostname")
Hostname = "default"
if handle then
local result = handle:read("*l")
handle:close()
if result then
Hostname = result:gsub("%s+", "") -- "HACKSTATION"
end
end
pcall(dofile, os.getenv("HYPRLAND_ROOT") .. "/autoload.lua")

1
modules/binds.lua Normal file
View File

@@ -0,0 +1 @@
hl.bind("SUPER + v", hl.dsp.exec_cmd("foot"))