From 08297376a85a1719518507e54fca9de954d2376a Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Thu, 23 May 2024 13:56:00 +0300 Subject: Agenix configuration --- home/hyprlock/default.nix | 72 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 home/hyprlock/default.nix (limited to 'home/hyprlock') diff --git a/home/hyprlock/default.nix b/home/hyprlock/default.nix new file mode 100644 index 0000000..4627556 --- /dev/null +++ b/home/hyprlock/default.nix @@ -0,0 +1,72 @@ +{ vars, pkgs, ... }: + +{ + programs.hyprlock = { + enable = true; + settings = { + general = { + grace = 300; + hide_cursor = true; + ignore_empty_input = true; + }; + + animations = { + enabled = true; + bezier = "linear, 1, 1, 0, 0"; + animation = [ + "fadeIn, 1, 5, linear" + "fadeOut, 1, 5, linear" + "inputFieldDots, 1, 2, linear" + ]; + }; + + background = [ + { + path = "screenshot"; + blur_passes = 3; + blur_size = 8; + } + ]; + + input-field = [ + { + size = "200, 50"; + position = "0, -80"; + monitor = ""; + dots_center = true; + fade_on_empty = false; + font_color = "rgb(202, 211, 245)"; + inner_color = "rgb(91, 96, 120)"; + outer_color = "rgb(24, 25, 38)"; + outline_thickness = 5; + shadow_passes = 2; + } + ]; + + label = [ + # Clock with seconds + { + monitor = ""; + text = "cmd[update:1000] echo \"$(date +'%H:%M:%S')\""; + color = "rgb(202, 211, 245)"; + font_size = 90; + position = "0, 150"; + halign = "center"; + valign = "center"; + shadow_passes = 2; + } + # Date in ISO format + { + monitor = ""; + text = "cmd[update:1000] echo \"$(date +'%Y-%m-%d')\""; + color = "rgb(202, 211, 245)"; + font_size = 25; + position = "0, 50"; + halign = "center"; + valign = "center"; + shadow_passes = 2; + } + ]; + }; + }; +} -- cgit v1.3-1-g0d28