From f361071a1bc4c411ff6131537f73b3009883cd64 Mon Sep 17 00:00:00 2001 From: Oscar Schwarz <121044740+oscar-schwarz@users.noreply.github.com> Date: Thu, 14 Nov 2024 08:53:56 +0100 Subject: [PATCH] hyprlock: init (#619) Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> --- modules/hyprlock/hm.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/hyprlock/hm.nix diff --git a/modules/hyprlock/hm.nix b/modules/hyprlock/hm.nix new file mode 100644 index 00000000..bab67fe7 --- /dev/null +++ b/modules/hyprlock/hm.nix @@ -0,0 +1,19 @@ +{ config, lib, ... }: + +with config.lib.stylix; +{ + options.stylix.targets.hyprlock.enable = mkEnableTarget "Hyprlock" true; + + config = lib.mkIf (config.stylix.enable && config.stylix.targets.hyprlock.enable) { + programs.hyprlock.settings = { + background.path = config.stylix.image; + input-field = with colors; { + outer_color = "rgb(${base03})"; + inner_color = "rgb(${base00})"; + font_color = "rgb(${base05})"; + fail_color = "rgb(${base08})"; + check_color = "rgb(${base0A})"; + }; + }; + }; +}