flakes/modules/user/hyprlock.nix

99 lines
2.4 KiB
Nix
Raw Normal View History

2025-03-17 15:16:11 +11:00
{ ... }: {
programs.hyprlock = {
enable = true;
2025-03-17 16:20:47 +11:00
settings = {
2025-03-17 16:35:21 +11:00
general = {
disable_loading_bar = true;
hide_cursor = true;
};
2025-03-17 16:20:47 +11:00
auth = {
fingerprint = {
enabled = true;
ready_message = "Scan fingerprint to unlock";
2025-03-17 16:20:47 +11:00
};
};
2025-03-17 16:35:21 +11:00
background = {
monitor = "";
color = "$base";
};
label = [
2025-03-17 17:44:32 +11:00
# Fingerprint icon
{
monitor = "";
color = "$text";
font_family = "Material Symbols Outlined";
font_size = 64;
halign = "center";
valign = "top";
position = "0, -100";
text = "";
}
# Fingerprint text
{
monitor = "";
color = "$text";
text = "$FPRINTPROMPT";
font_size = 25;
font_family = "Open Sans";
position = "0, -235";
halign = "center";
valign = "top";
}
# Fail text under input
{
monitor = "";
color = "$red";
font_family = "Open Sans";
font_size = 25;
text = "$FAIL $ATTEMPTS[]";
position = "0, -200";
halign = "center";
valign = "center";
}
# Time
2025-03-17 16:35:21 +11:00
{
monitor = "";
text = "$TIME";
color = "$text";
font_size = 90;
font_family = "Open Sans";
2025-03-17 17:44:32 +11:00
position = "-50, 0";
2025-03-17 16:35:21 +11:00
halign = "right";
valign = "top";
}
2025-03-17 17:44:32 +11:00
# Date
2025-03-17 16:35:21 +11:00
{
monitor = "";
text = "cmd[update:43200000] date +'%A, %d %B %Y'";
color = "$text";
font_size = 25;
font_family = "Open Sans";
position = "-50, -150";
2025-03-17 16:35:21 +11:00
halign = "right";
valign = "top";
}
];
input-field = {
monitor = "";
2025-03-17 17:44:32 +11:00
size = "600, 120";
2025-03-17 16:35:21 +11:00
outline_thickness = 4;
2025-03-17 17:44:32 +11:00
check_color = "$peach";
2025-03-17 16:35:21 +11:00
dots_size = 0.2;
dots_spacing = 0.2;
dots_center = true;
2025-03-17 17:44:32 +11:00
fail_text = "";
2025-03-17 16:35:21 +11:00
font_color = "$text";
2025-03-17 17:44:32 +11:00
inner_color = "$crust";
outer_color = "$base";
placeholder_text = "Password";
2025-03-17 16:35:21 +11:00
fade_on_empty = false;
hide_input = false;
capslock_color = "$yellow";
position = "0, -47";
halign = "center";
valign = "center";
};
2025-03-17 16:20:47 +11:00
};
2025-03-17 15:16:11 +11:00
};
}