nixos-configs/modules/hyprland/hyprlock.nix
matt1432 45119487c3
All checks were successful
Discord / discord commits (push) Has been skipped
feat(hyprlock): use $PROMPT for placeholder_text
2024-04-15 11:43:58 -04:00

64 lines
1.4 KiB
Nix

{
config,
hyprlock,
lib,
...
}: let
inherit (lib) optionalString;
inherit (config.vars) mainMonitor;
monitor = optionalString (mainMonitor != null) mainMonitor;
in {
imports = [hyprlock.homeManagerModules.default];
programs.hyprlock = {
enable = true;
general = {
hide_cursor = false;
};
backgrounds = [
{
path = "screenshot";
blur_size = 5;
blur_passes = 2;
vibrancy_darkness = 0.0;
brightness = 1.0;
}
];
input-fields = [
{
inherit monitor;
size.height = 70;
fade_on_empty = false;
outer_color = "rgba(10, 10, 10, 1.0)";
inner_color = "rgb(151515)";
font_color = "rgba(240, 240, 240, 1.0)"; # This is the dot color
capslock_color = "rgba(171, 12, 8, 1.0)";
placeholder_text = let
span = "<span foreground='##cccccc' style='italic' size='15pt' allow_breaks='true'>";
mkSpan = s: "${span}${s}</span>";
in
mkSpan "\r$PROMPT";
}
];
labels = [
{
inherit monitor;
text = "$TIME";
font_size = 80;
font_family = "Ubuntu Mono";
position.y = 240;
shadow_passes = 3;
}
{
inherit monitor;
text = "<i> Groovy </i>";
font_family = "Ubuntu Mono";
shadow_passes = 3;
}
];
};
}