Files
omarchy-nix/modules/home-manager/hyprlock.nix
T
2025-07-08 21:02:00 -05:00

72 lines
1.7 KiB
Nix
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
inputs: {
config,
pkgs,
lib,
...
}: let
palette = config.colorScheme.palette;
convert = inputs.nix-colors.lib.conversions.hexToRGBString;
backgroundRgb = "rgba(${convert ", " palette.base00}, 0.8)";
surfaceRgb = "rgb(${convert ", " palette.base02})";
foregroundRgb = "rgb(${convert ", " palette.base05})";
foregroundMutedRgb = "rgb(${convert ", " palette.base04})";
in {
programs.hyprlock = {
enable = true;
settings = {
general = {
disable_loading_bar = true;
no_fade_in = false;
};
auth = {
fingerprint.enabled = true;
};
background = {
monitor = "";
path = "screenshot";
blur_passes = 3;
brightness = 0.5;
};
input-field = {
monitor = "";
size = "600, 100";
position = "0, 0";
halign = "center";
valign = "center";
inner_color = surfaceRgb;
outer_color = foregroundRgb; # #d3c6aa
outline_thickness = 4;
font_family = "CaskaydiaMono Nerd Font";
font_size = 32;
font_color = foregroundRgb;
placeholder_color = foregroundMutedRgb;
# placeholder_text = "Enter Password";
placeholder_text = "Enter Password 󰈷";
check_color = "rgba(131, 192, 146, 1.0)";
fail_text = "Wrong";
rounding = 0;
shadow_passes = 0;
fade_on_empty = false;
};
label = {
monitor = "";
text = "\$FPRINTPROMPT";
text_align = "center";
color = "rgb(211, 198, 170)";
font_size = 24;
font_family = "CaskaydiaMono Nerd Font";
position = "0, -100";
halign = "center";
valign = "center";
};
};
};
}