aboutsummaryrefslogtreecommitdiffstats
path: root/home/hyprlock
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2024-05-23 13:56:00 +0300
committerPetri Hienonen <petri.hienonen@gmail.com>2025-11-30 12:29:57 +0200
commit08297376a85a1719518507e54fca9de954d2376a (patch)
tree3b9c58304b40248533bbb2bb5b7bad2da9da1ff0 /home/hyprlock
parent75c2af4aedd2ac5c2cfc74b346625fa4b265541d (diff)
downloadnixos-08297376a85a1719518507e54fca9de954d2376a.tar.zst
Agenix configuration
Diffstat (limited to 'home/hyprlock')
-rw-r--r--home/hyprlock/default.nix72
1 files changed, 72 insertions, 0 deletions
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;
+ }
+ ];
+ };
+ };
+}