Files
nixos-config/modules/home/hypr/hyprlock.nix

109 lines
2.9 KiB
Nix
Raw Normal View History

{
config,
2025-12-15 23:44:33 -05:00
wallpaper,
...
}:
{
programs.hyprlock = {
enable = true;
2025-12-21 14:45:06 -05:00
settings = with config.lib.stylix.colors; {
general = {
hide_cursor = true;
};
background = [
{
2025-12-15 23:44:33 -05:00
path = "${config.xdg.userDirs.extraConfig.XDG_WALLPAPERS_DIR}/${wallpaper}";
2025-12-21 14:45:06 -05:00
blur_size = 4;
blur_passes = 3;
}
];
input-field = [
2025-12-21 14:45:06 -05:00
rec {
size = "250, 50";
2025-12-21 14:45:06 -05:00
outline_thickness = 3;
dots_size = 0.25;
dots_spacing = 0.4;
outer_color = "rgba(${base0F}55)";
capslock_color = outer_color;
numlock_color = outer_color;
bothlock_color = outer_color;
inner_color = "rgba(${base0F}11)";
font_color = "rgba(${base0F}ff)";
fade_on_empty = true;
2025-12-21 14:45:06 -05:00
placeholder_text = "<i>Password...</i>";
position = "0, -60";
halign = "center";
valign = "center";
}
];
label = [
2025-12-21 14:45:06 -05:00
# Hours
{
2025-12-21 14:45:06 -05:00
text = "cmd[update:1000] echo \"<b><big> $(date +\"%H\") </big></b>\"";
color = "rgb(${base0F})";
font_size = 112;
font_family = "GeistMono Nerd Font";
position = "0, 350";
halign = "center";
valign = "center";
}
2025-12-21 14:45:06 -05:00
# Minutes
{
text = "cmd[update:1000] echo \"<b><big> $(date +\"%M\") </big></b>\"";
color = "rgb(${base0F})";
font_size = 112;
font_family = "GeistMono Nerd Font";
position = "0, 220";
halign = "center";
valign = "center";
}
2025-12-21 14:45:06 -05:00
# Day of the Week
{
2025-12-21 14:45:06 -05:00
text = "cmd[update:18000000] echo \"<b><big> \"$(date +'%A')\" </big></b>\"";
color = "rgb(${base0F})";
font_size = 22;
font_family = "JetBrainsMono Nerd Font";
position = "0, 115";
halign = "center";
valign = "center";
}
2025-12-21 14:45:06 -05:00
# Date
{
text = "cmd[update:18000000] echo \"<b> \"$(date +'%d %b')\" </b>\"";
color = "rgb(${base0F})";
font_size = 18;
font_family = "JetBrainsMono Nerd Font";
position = "0, 85";
halign = "center";
valign = "center";
}
2025-12-21 14:45:06 -05:00
# Temperature
{
2025-12-21 14:45:06 -05:00
text = "cmd[update:18000000] echo \"<b>Feels like<big> $(curl -s 'wttr.in?format=%t' | tr -d '+') </big></b>\"";
color = "rgb(${base0F})";
font_size = 18;
font_family = "GeistMono Nerd Font";
position = "0, 40";
halign = "center";
valign = "bottom";
}
2025-12-21 14:45:06 -05:00
# Caps Lock Warning
{
text = "cmd[update:250] check-capslock";
color = "rgb(${base0F})";
font_size = 13;
font_family = "JetBrainsMono Nerd Font";
position = "0, -120";
halign = "center";
valign = "center";
}
];
};
};
}