diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2025-12-04 18:05:00 +0200 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2025-12-04 20:39:41 +0200 |
| commit | 4d7fbc33a139d6484ae86c45b570b2c99fc737ef (patch) | |
| tree | 46c5788b8ed0eaf6f6581b3b7a87d633d842a8dd /home/hyprlock.nix | |
| parent | 7ab57a27c9648b3a8e12f755e03fc84eb50291b4 (diff) | |
| download | nixos-4d7fbc33a139d6484ae86c45b570b2c99fc737ef.tar.zst | |
Test
Diffstat (limited to 'home/hyprlock.nix')
| -rw-r--r-- | home/hyprlock.nix | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/home/hyprlock.nix b/home/hyprlock.nix new file mode 100644 index 0000000..4627556 --- /dev/null +++ b/home/hyprlock.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; + } + ]; + }; + }; +} |
