Change hyprlock date to use ISO 8601 format

This commit is contained in:
Evie Litherland-Smith 2025-01-01 07:20:49 +00:00
parent 90e9ae3e38
commit 5aa7640337

View file

@ -59,7 +59,6 @@
waybar.systemd.target = "hyprland-session.target"; waybar.systemd.target = "hyprland-session.target";
hyprlock = hyprlock =
let let
font = config.stylix.fonts.sansSerif.name;
scheme = config.lib.stylix.scheme; scheme = config.lib.stylix.scheme;
accent = scheme.base0E; accent = scheme.base0E;
in in
@ -83,7 +82,7 @@
shape = [ shape = [
{ {
monitor = ""; monitor = "";
size = "550, 185"; size = "395, 185";
color = "0xff${scheme.base00}"; color = "0xff${scheme.base00}";
rounding = 10; rounding = 10;
border_size = 2; border_size = 2;
@ -93,28 +92,32 @@
valign = "top"; valign = "top";
} }
]; ];
label = [ label =
{ let
monitor = ""; font = config.stylix.fonts.monospace.name;
text = "cmd[update:30000] echo \"$(date +\"%R\")\""; in
color = "0xff${scheme.base05}"; [
font_size = 90; {
font_family = font; monitor = "";
position = "-30, 0"; text = "cmd[update:30000] echo \"$(date +\"%R\")\"";
halign = "right"; color = "0xff${scheme.base05}";
valign = "top"; font_size = 90;
} font_family = font;
{ position = "-30, 0";
monitor = ""; halign = "right";
text = "cmd[update:43200000] echo \"$(date +\"%A,%e %B %Y\")\""; valign = "top";
color = "0xff${scheme.base05}"; }
font_size = 25; {
font_family = font; monitor = "";
position = "-30, -150"; text = "cmd[update:43200000] echo \"$(date +\"%F\")\"";
halign = "right"; color = "0xff${scheme.base05}";
valign = "top"; font_size = 25;
} font_family = font;
]; position = "-40, -150";
halign = "right";
valign = "top";
}
];
image = [ image = [
{ {
monitor = ""; monitor = "";