From af9c0483fb2b82ff935dbadf5a0abf8af1fdc0ab Mon Sep 17 00:00:00 2001 From: Peritia Date: Mon, 2 Mar 2026 16:44:59 +0100 Subject: [PATCH] Chore: alejandra --- nixosVista/homeManager/hyprlock/main.nix | 166 +++++++++++------------ 1 file changed, 80 insertions(+), 86 deletions(-) diff --git a/nixosVista/homeManager/hyprlock/main.nix b/nixosVista/homeManager/hyprlock/main.nix index 232f182..0047cc0 100644 --- a/nixosVista/homeManager/hyprlock/main.nix +++ b/nixosVista/homeManager/hyprlock/main.nix @@ -6,101 +6,95 @@ }: let root = nixosVista; cfg = root.hyprlock; - - in { config = lib.mkIf cfg.enable { + # warnings = [">>> HYPRLOCK ACTIVE <<<"]; + programs.hyprlock = { + enable = true; + settings = { + general = { + # does not exsist: + # disable_loading_bar = true; + # grace = 0; + hide_cursor = true; + }; - # warnings = [">>> HYPRLOCK ACTIVE <<<"]; + # ===== Background (Glass Blur Style) ===== + background = [ + { + path = "screenshot"; + blur_passes = 7; + blur_size = 18; -programs.hyprlock = { - enable = true; + noise = 0.03; + contrast = 1.4; + brightness = 0.65; - settings = { + vibrancy = 0.35; + vibrancy_darkness = 0.3; + } + ]; - general = { - # does not exsist: - # disable_loading_bar = true; - # grace = 0; - hide_cursor = true; + # ===== Clock ===== + label = [ + { + text = "$TIME"; + color = "rgba(255,255,255,0.85)"; + font_size = 90; + font_family = "Noto Sans"; + position = "0, 180"; + halign = "center"; + valign = "center"; + } + + { + text = "$DATE"; + color = "rgba(255,255,255,0.55)"; + font_size = 22; + font_family = "Noto Sans"; + position = "0, 120"; + halign = "center"; + valign = "center"; + } + + { + text = "cmd[echo $USER]"; + color = "rgba(255,255,255,0.45)"; + font_size = 20; + font_family = "Noto Sans"; + position = "0, 90"; + halign = "center"; + valign = "center"; + } + ]; + + # ===== Password Field (Matches Window Style) ===== + input-field = [ + { + size = "340, 55"; + + outline_thickness = 2; + + outer_color = "rgba(255,255,255,0.25)"; + inner_color = "rgba(0,0,0,0.35)"; + font_color = "rgba(255,255,255,1.0)"; + + dots_size = 0.3; + dots_spacing = 0.25; + dots_center = true; + + fade_on_empty = false; + placeholder_text = "Enter Password..."; + + position = "0, 30"; + halign = "center"; + valign = "center"; + } + ]; + }; }; - - # ===== Background (Glass Blur Style) ===== - background = [ - { - path = "screenshot"; # Uses current blurred screen - blur_passes = 3; - blur_size = 6; - noise = 0.01; - contrast = 1.2; - brightness = 0.85; - vibrancy = 0.15; - } - ]; - - # ===== Clock ===== - label = [ - { - text = "$TIME"; - color = "rgba(255,255,255,0.85)"; - font_size = 90; - font_family = "Noto Sans"; - position = "0, 180"; - halign = "center"; - valign = "center"; - } - - { - text = "$DATE"; - color = "rgba(255,255,255,0.55)"; - font_size = 22; - font_family = "Noto Sans"; - position = "0, 120"; - halign = "center"; - valign = "center"; - } - - { - text = "cmd[echo $USER]"; - color = "rgba(255,255,255,0.45)"; - font_size = 20; - font_family = "Noto Sans"; - position = "0, 90"; - halign = "center"; - valign = "center"; - } - ]; - - # ===== Password Field (Matches Window Style) ===== - input-field = [ - { - size = "340, 55"; - - outline_thickness = 2; - - outer_color = "rgba(255,255,255,0.25)"; - inner_color = "rgba(0,0,0,0.35)"; - font_color = "rgba(255,255,255,1.0)"; - - dots_size = 0.3; - dots_spacing = 0.25; - dots_center = true; - - fade_on_empty = false; - placeholder_text = "Enter Password..."; - - position = "0, 30"; - halign = "center"; - valign = "center"; - } - ]; - }; -}; - - - }; }