From 0de067092c9dd19c3352554e39de73e172f29b42 Mon Sep 17 00:00:00 2001 From: beeb5k Date: Fri, 6 Mar 2026 21:37:34 +0530 Subject: Add modules --- .../modules/matugen/templates/matugen-swaylock.nix | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 common/modules/matugen/templates/matugen-swaylock.nix (limited to 'common/modules/matugen/templates/matugen-swaylock.nix') diff --git a/common/modules/matugen/templates/matugen-swaylock.nix b/common/modules/matugen/templates/matugen-swaylock.nix new file mode 100644 index 0000000..19514cf --- /dev/null +++ b/common/modules/matugen/templates/matugen-swaylock.nix @@ -0,0 +1,54 @@ +{ + config, + lib, + pkgs, + ... +}: +{ + config = lib.mkIf config.programs.swaylock.enable { + xdg.configFile."matugen/templates/swaylock-colors" = { + text = '' + # --- Swaylock Config (Moved from Nix settings) --- + show-failed-attempts + indicator-radius=100 + indicator-thickness=7 + line-uses-inside + + # --- Base Colors --- + color={{colors.background.default.hex}} + layout-text-color={{colors.on_surface.default.hex}} + + # --- State: Idle (Gray-like ring for visibility) --- + # Using surface_variant for a distinct but neutral gray ring + ring-color={{colors.surface_variant.default.hex}} + inside-color={{colors.surface.default.hex}} + text-color={{colors.on_surface.default.hex}} + + # Key Highlight (When typing) + key-hl-color={{colors.primary.default.hex}} + separator-color={{colors.outline.default.hex}} + + # --- State: Verifying (Pressing Enter) --- + # Switched to Primary to make the "Enter" state pop + ring-ver-color={{colors.primary.default.hex}} + inside-ver-color={{colors.primary_container.default.hex}} + text-ver-color={{colors.on_primary_container.default.hex}} + + # --- State: Wrong Password --- + ring-wrong-color={{colors.error.default.hex}} + inside-wrong-color={{colors.error_container.default.hex}} + text-wrong-color={{colors.on_error_container.default.hex}} + + # --- State: Backspace / Clear --- + ring-clear-color={{colors.secondary.default.hex}} + inside-clear-color={{colors.surface_variant.default.hex}} + text-clear-color={{colors.on_surface_variant.default.hex}} + + # --- Misc --- + bs-hl-color={{colors.error.default.hex}} + caps-lock-key-hl-color={{colors.tertiary.default.hex}} + caps-lock-bs-hl-color={{colors.error.default.hex}} + ''; + }; + }; +} -- cgit v1.3.1