reNixos/hand7s/programs/hyprlock.nix
s0me1newithhand7s e4222e5423 hand7s: upstream
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
2026-02-08 22:53:56 +03:00

103 lines
2.4 KiB
Nix

{
config,
pkgs,
lib,
...
}: {
programs = {
hyprlock = {
enable =
lib.mkIf (
config.home.gui.sessionType == "Hyprland"
)
true;
settings = {
general = {
hide_cursor = true;
ignore_empty_input = true;
};
label = [
{
monitor = "";
text = ''
cmd[update:1000] ${lib.getExe' pkgs.uutils-coreutils-noprefix "date"} +"%T"
'';
text_align = "center";
color = config.lib.stylix.colors.base01;
font_size = 48;
font_family = config.stylix.fonts.emoji.name;
rotate = 0;
position = "0, 200";
halign = "center";
valign = "center";
shadow_passes = 1;
shadow_size = 2;
shadow_color = "rgba(38, 3, 4, 1)";
shadow_boost = 2;
}
{
monitor = "";
text = ''
cmd[update:1000] ${lib.getExe' pkgs.uutils-coreutils-noprefix "date"} +"%A, %B"
'';
text_align = "center";
color = config.lib.stylix.colors.base01;
font_size = 24;
font_family = config.stylix.fonts.emoji.name;
rotate = 0;
position = "0, 150";
halign = "center";
valign = "center";
shadow_passes = 1;
shadow_size = 2;
shadow_color = "rgba(38, 3, 4, 1)";
shadow_boost = 2;
}
];
input-field = lib.mkForce [
{
monitor = "";
size = "250, 50";
outline_thickness = 2;
dots_size = 0.35;
dots_spacing = 0.5;
dots_center = true;
dots_rounding = -2;
fade_on_empty = false;
fade_timeout = 0;
placeholder_text = " ";
hide_input = false;
rounding = -0.3;
fail_text = "$FAIL -> $ATTEMPTS";
fail_transition = 1000;
capslock_color = -1;
numlock_color = -1;
bothlock_color = -1;
invert_numlock = false;
swap_font_color = false;
position = "0, -650";
halign = "center";
valign = "center";
shadow_passes = 1;
shadow_size = 5;
shadow_boost = 1;
}
];
};
};
};
}