2025-11-27 15:23:59 -05:00
|
|
|
{
|
|
|
|
|
config,
|
2025-12-15 23:44:33 -05:00
|
|
|
wallpaper,
|
2025-11-27 15:23:59 -05:00
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
{
|
|
|
|
|
programs.hyprlock = {
|
|
|
|
|
enable = true;
|
2025-12-21 14:45:06 -05:00
|
|
|
settings = with config.lib.stylix.colors; {
|
2025-11-27 15:23:59 -05:00
|
|
|
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;
|
2025-11-27 15:23:59 -05:00
|
|
|
blur_passes = 3;
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
input-field = [
|
2025-12-21 14:45:06 -05:00
|
|
|
rec {
|
2025-11-27 15:23:59 -05:00
|
|
|
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)";
|
2025-11-27 15:23:59 -05:00
|
|
|
fade_on_empty = true;
|
2025-12-21 14:45:06 -05:00
|
|
|
placeholder_text = "<i>Password...</i>";
|
|
|
|
|
position = "0, -60";
|
2025-11-27 15:23:59 -05:00
|
|
|
halign = "center";
|
|
|
|
|
valign = "center";
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
label = [
|
2025-12-21 14:45:06 -05:00
|
|
|
# Hours
|
2025-11-27 15:23:59 -05:00
|
|
|
{
|
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";
|
2025-11-27 15:23:59 -05:00
|
|
|
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";
|
2025-11-27 15:23:59 -05:00
|
|
|
halign = "center";
|
|
|
|
|
valign = "center";
|
|
|
|
|
}
|
2025-12-21 14:45:06 -05:00
|
|
|
|
|
|
|
|
# Day of the Week
|
2025-11-27 15:23:59 -05:00
|
|
|
{
|
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-11-27 15:23:59 -05:00
|
|
|
|
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";
|
2025-11-27 15:23:59 -05:00
|
|
|
halign = "center";
|
|
|
|
|
valign = "center";
|
|
|
|
|
}
|
2025-12-21 14:45:06 -05:00
|
|
|
|
|
|
|
|
# Temperature
|
2025-11-27 15:23:59 -05:00
|
|
|
{
|
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";
|
2025-11-27 15:23:59 -05:00
|
|
|
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";
|
2025-11-27 15:23:59 -05:00
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|