Replace swaylock with hyprlock
This commit is contained in:
+12
-1
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user