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:
nico
2026-11-05 17:38:26 +01:00
parent a511d29e1f
commit 6373ed38ec
9 changed files with 238 additions and 10 deletions

View File

@@ -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())