Add a palette-themed hyprlock lock screen
Themed through the same template pipeline as everything else: clock, date, username and password-field colors come from theme/colors.toml, background is a re-encoded, size-capped copy of the active wallpaper (handles both an oversized original and a GIF saved under the .png- named active wallpaper file). Bound to Mod+L, guarded against double- invocation. Animations are disabled - this GPU/driver combo crashes hyprlock's fade-in otherwise, regardless of what background is set. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -341,6 +341,10 @@ hl.bind(mainMod .. " + " .. "Q", hl.dsp.window.close())
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "E", hl.dsp.exit())
|
||||
|
||||
-- pgrep guard: pressing the bind again (or anything re-triggering it) while hyprlock is
|
||||
-- already running must not spawn a second instance on top of the first.
|
||||
hl.bind(mainMod .. " + " .. "L", hl.dsp.exec_cmd("pgrep -x hyprlock || hyprlock"))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "F", hl.dsp.window.fullscreen())
|
||||
|
||||
hl.bind(mainMod .. " + " .. "V", hl.dsp.window.float())
|
||||
|
||||
Reference in New Issue
Block a user