nix-config/home/features/desktop/hyprland/hyprlock.nix

36 lines
843 B
Nix

{ config, ... }:
let
textColor = config.lib.stylix.colors.base05;
in
{
programs.hyprlock = {
enable = true;
settings = {
# background = {
# blur_passes = 1;
# };
label = [
# Date
{
text = ''cmd[update:3600000] echo -e "<b> "$(date +'%A, %-d. %B %Y')" </b>"'';
font_size = 35;
color = "rgb(${textColor})";
position = "0, -150";
halign = "center";
valign = "top";
shadow_passes = 3;
}
# Time
{
text = ''cmd[update:3600000] echo -e "<b><big> $(date +"%H:%M") </big></b>"'';
font_size = 94;
color = "rgb(${textColor})";
position = "0, -210";
halign = "center";
valign = "top";
shadow_passes = 3;
}
];
};
};
}