initial
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/.session
|
||||
26
autoload.lua
Normal file
26
autoload.lua
Normal 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
3
events.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
hl.on("hyprland.start", function()
|
||||
hl.exec_cmd("waybar")
|
||||
end)
|
||||
12
hyprland.lua
Normal file
12
hyprland.lua
Normal 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
1
modules/binds.lua
Normal file
@@ -0,0 +1 @@
|
||||
hl.bind("SUPER + v", hl.dsp.exec_cmd("foot"))
|
||||
Reference in New Issue
Block a user