Files
hyprlua/background.lua
T
Nina Chlóe Kassandra Reiß 26cea1fef3 Replace swaylock with hyprlock
2026-07-26 18:41:08 +02:00

17 lines
377 B
Lua

local function shell_quote(value)
return "'" .. value:gsub("'", "'\\''") .. "'"
end
local function config_dir()
local source = debug.getinfo(1, "S").source:gsub("^@", "")
return source:match("(.*/)")
end
local wallpaper = config_dir() .. "wallpaper/RooftopSunset.jpeg"
return {
start = function()
hl.exec_cmd("swaybg -m stretch -i " .. shell_quote(wallpaper))
end,
}