From 36e847d35a6375258f8360ec6462f33fad71771e Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Thu, 24 Apr 2025 22:59:14 -0700 Subject: [PATCH] [hyprlock] Adds hyprlock config --- home-manager/features/hyprland.nix | 51 +++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/home-manager/features/hyprland.nix b/home-manager/features/hyprland.nix index 6b7da77..ce3d2f0 100644 --- a/home-manager/features/hyprland.nix +++ b/home-manager/features/hyprland.nix @@ -1,7 +1,6 @@ { pkgs, ... }: { home.packages = with pkgs; [ - hyprlock # lock screen swayidle # lock on idle swayosd # volume pop-up swaynotificationcenter # notifications @@ -442,4 +441,54 @@ ]; }; }; + + programs.hyprlock = { + enable = true; + settings = { + general = { + disable_loading_bar = true; + hide_cursor = true; + }; + + background = { + monitor = ""; + color = "rgb(000000)"; + }; + + # Time + label = { + monitor = ""; + text = '' + cmd[update:1000] echo "$(date '+%F %T')" + ''; + font_size = 96; + font_family = "NotoSans Nerd Font"; + color = "rgb(990000)"; + position = "0, 0"; + halign = "center"; + valign = "center"; + }; + + input-field = { + monitor = ""; + size = "300, 40"; + fade_on_empty = true; + outline_thickness = 2; + outer_color = "rgb(cc2222) rgb(661111)"; + inner_color = "rgb(221111)"; + + font_color = "rgb(cc2222)"; + dots_size = 0.2; + dots_spacing = 0.1; + placeholder_text = ""; + + fail_color = "rgb(cc3333)"; + capslock_color = "rgb(cccc33)"; + + halign = "center"; + valign = "center"; + position = "0, -300px"; + }; + }; + }; }