aboutsummaryrefslogtreecommitdiffstats
path: root/home/hyprlock.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/hyprlock.nix')
-rw-r--r--home/hyprlock.nix72
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;
+ }
+ ];
+ };
+ };
+}