Replace swaylock with hyprlock

This commit is contained in:
Nina Chlóe Kassandra Reiß
2026-07-26 18:41:08 +02:00
parent e6fb7cc81c
commit 26cea1fef3
3 changed files with 113 additions and 2 deletions
+12 -1
View File
@@ -1,5 +1,16 @@
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 ./wallpaper/RooftopSunset.jpeg")
hl.exec_cmd("swaybg -m stretch -i " .. shell_quote(wallpaper))
end,
}