my-nixos-config/home-manager/modules/hypr/hyprlock.nix
2025-11-11 16:09:55 +01:00

82 lines
1.8 KiB
Nix

{
programs.hyprlock.enable = true;
programs.hyprlock.settings = {
"$font" = "JetBrainsMono NF";
general = {
hide_cursor = true;
};
auth = {
fingerprint = {
enabled = true;
ready_message = "Scan fingerprint to unlock";
present_message = "Scanning...";
retry_delay = 250;
};
};
animations = {
enabled = true;
bezier = [ "linear,1,1,0,0" ];
animation = [
"fadeIn, 1, 5, linear"
"fadeOut, 1, 5, linear"
"inputFieldDots, 1, 2, linear"
];
};
background = {
path = "/home/zeph/nix/home-manager/modules/hypr/hyprpaper/wallpaper.png";
blur_passes = 3;
};
input-field = {
size = "20%, 5%";
outline_thickness = 3;
inner_color = "rgba(0, 0, 0, 0.0)";
outer_color = "rgba(d65d0eff) rgba(d6740eff) 45deg";
check_color = "rgba(00ff99ee) rgba(ff6633ee) 45deg";
fail_color = "rgba(ff6633ee) rgba(ff0066ee) 40deg";
font_color = "rgb(143, 143, 143)";
fade_on_empty = false;
rounding = 0;
font_family = "$font";
placeholder_text = "Input password...";
fail_text = "$PAMFAIL";
position = "0, -20";
halign = "center";
valign = "center";
};
label = [
{
text = "$TIME";
font_size = 90;
font_family = "$font";
position = "-30, 0";
halign = "right";
valign = "top";
}
{
text = "cmd[update:60000] date +\"%A, %d %B %Y\"";
font_size = 25;
font_family = "$font";
position = "-30, -150";
halign = "right";
valign = "top";
}
{
text = "<i>Hello, Zeph.</i>";
font_size = 50;
font_family = "$font";
halign = "center";
valign = "center";
position = "0, 5%";
}
];
};
}