From bc7de34c43c212fc0de093557eb3a7e615282385 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 19 Dec 2024 15:49:54 +0100 Subject: [PATCH] nixosModules/style: update hyprlock colors --- .../nixosModules/style/modules/hyprlock.nix | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/shared/nixosModules/style/modules/hyprlock.nix b/shared/nixosModules/style/modules/hyprlock.nix index 8564424..6e7282f 100644 --- a/shared/nixosModules/style/modules/hyprlock.nix +++ b/shared/nixosModules/style/modules/hyprlock.nix @@ -1,10 +1,12 @@ { lib, + lib', config, ... }: let cfg = config.local.style; inherit (cfg) scheme; + rgbaPalette = builtins.mapAttrs (_: c: (lib'.rgba c 1)) scheme.palette; in { config.home-manager.sharedModules = lib.mkIf cfg.enable [ { @@ -28,7 +30,7 @@ in { monitor = ""; text = "Layout: $LAYOUT"; font_size = 25; - color = scheme.palette.base05; + color = rgbaPalette.base05; position = "30, -30"; halign = "left"; @@ -38,7 +40,7 @@ in { monitor = ""; text = "$TIME"; font_size = 90; - color = scheme.palette.base05; + color = rgbaPalette.base05; position = "-30, 0"; halign = "right"; @@ -48,7 +50,7 @@ in { monitor = ""; text = "cmd[update:43200000] date +\"%A, %d %B %Y\""; font_size = 25; - color = scheme.palette.base05; + color = rgbaPalette.base05; position = "-30, -150"; halign = "right"; @@ -60,7 +62,7 @@ in { monitor = ""; path = "${cfg.avatar}"; # Replace with your avatar path size = 100; - border_color = scheme.palette.base0D; + border_color = rgbaPalette.base0D; position = "0, 75"; halign = "center"; @@ -77,19 +79,19 @@ in { dots_spacing = 0.2; dots_center = true; - outer_color = scheme.palette.base0D; - inner_color = scheme.palette.base02; - font_color = scheme.palette.base05; + outer_color = rgbaPalette.base0D; + inner_color = rgbaPalette.base02; + font_color = rgbaPalette.base05; fade_on_empty = false; placeholder_text = "󰌾 Logged in as $USER"; hide_input = false; - check_color = scheme.palette.base0D; - fail_color = scheme.palette.base08; + check_color = rgbaPalette.base0D; + fail_color = rgbaPalette.base08; fail_text = "$FAIL ($ATTEMPTS)"; - capslock_color = scheme.palette.base0E; + capslock_color = rgbaPalette.base0E; position = "0, -47"; halign = "center";