From 5aa76403372ef0d2f25b9ad1787c4344c8b927df Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 1 Jan 2025 07:20:49 +0000 Subject: [PATCH] Change hyprlock date to use ISO 8601 format --- system/home/hyprland.nix | 51 +++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/system/home/hyprland.nix b/system/home/hyprland.nix index 5a20b565..dd2bf9c6 100644 --- a/system/home/hyprland.nix +++ b/system/home/hyprland.nix @@ -59,7 +59,6 @@ waybar.systemd.target = "hyprland-session.target"; hyprlock = let - font = config.stylix.fonts.sansSerif.name; scheme = config.lib.stylix.scheme; accent = scheme.base0E; in @@ -83,7 +82,7 @@ shape = [ { monitor = ""; - size = "550, 185"; + size = "395, 185"; color = "0xff${scheme.base00}"; rounding = 10; border_size = 2; @@ -93,28 +92,32 @@ valign = "top"; } ]; - label = [ - { - monitor = ""; - text = "cmd[update:30000] echo \"$(date +\"%R\")\""; - color = "0xff${scheme.base05}"; - font_size = 90; - font_family = font; - position = "-30, 0"; - halign = "right"; - valign = "top"; - } - { - monitor = ""; - text = "cmd[update:43200000] echo \"$(date +\"%A,%e %B %Y\")\""; - color = "0xff${scheme.base05}"; - font_size = 25; - font_family = font; - position = "-30, -150"; - halign = "right"; - valign = "top"; - } - ]; + label = + let + font = config.stylix.fonts.monospace.name; + in + [ + { + monitor = ""; + text = "cmd[update:30000] echo \"$(date +\"%R\")\""; + color = "0xff${scheme.base05}"; + font_size = 90; + font_family = font; + position = "-30, 0"; + halign = "right"; + valign = "top"; + } + { + monitor = ""; + text = "cmd[update:43200000] echo \"$(date +\"%F\")\""; + color = "0xff${scheme.base05}"; + font_size = 25; + font_family = font; + position = "-40, -150"; + halign = "right"; + valign = "top"; + } + ]; image = [ { monitor = "";