fix(waybar): clock tooltip uses single chrono format block
All checks were successful
Check / eval (push) Successful in 2m57s

Two bare `{:%…}` specs emptied the hover tooltip (box with no text).
One strftime block with an embedded newline shows date + zone; ensure
tooltip label colors on generated + summer bars.
This commit is contained in:
2026-07-10 13:50:15 +01:00
parent 869ca6b16c
commit 0834038072
7 changed files with 32 additions and 7 deletions

View File

@@ -209,9 +209,11 @@ let
# one click away.
on-click = "nomarchy-calendar";
tooltip = true;
# The zone line stays live under auto-timezone (the tz-watch SIGUSR2
# reload keeps it showing the currently *detected* zone).
tooltip-format = "{:%A, %d %B %Y}\n{:%Z (UTC%z)}";
# One chrono block only: waybar/fmt empties the tooltip when two
# bare `{:%…}` specs are concatenated (bar format works because it
# is a single block). Newline + zone live under auto-timezone
# (tz-watch SIGUSR2 reload).
tooltip-format = "{:%A, %d %B %Y\n%Z (UTC%z)}";
};
# Active keyboard layout (per focused device) — only placed in
@@ -473,6 +475,15 @@ let
#battery.warning { color: @warn; }
#battery.critical { color: @bad; }
#battery.charging { color: @good; }
/* Clock (and other) hover tooltips explicit colors so an empty
looking box is never just text same as background. */
tooltip {
background: @surface;
border: ${toString t.ui.borderSize}px solid alpha(@accent, 0.4);
border-radius: ${toString t.ui.rounding}px;
}
tooltip label { color: @text; }
'';
in
{

View File

@@ -40,7 +40,7 @@
"format": "{:%H:%M · %a %d %b}",
"on-click": "nomarchy-calendar",
"tooltip": true,
"tooltip-format": "{:%A, %d %B %Y}\n{:%Z (UTC%z)}"
"tooltip-format": "{:%A, %d %B %Y\n%Z (UTC%z)}"
},
"hyprland/workspaces": {
"disable-scroll": true,

View File

@@ -47,7 +47,7 @@
"format": "{:%H:%M · %a %d %b}",
"on-click": "nomarchy-calendar",
"tooltip": true,
"tooltip-format": "{:%A, %d %B %Y}\n{:%Z (UTC%z)}"
"tooltip-format": "{:%A, %d %B %Y\n%Z (UTC%z)}"
},
"custom/recording": {
"return-type": "json",

View File

@@ -152,3 +152,10 @@ window#waybar {
#custom-nightlight,
#custom-vpn,
#custom-notification { font-size: 17px; }
tooltip {
background: @bg0;
border: 1px solid @grey1;
border-radius: 8px;
}
tooltip label { color: @fg; }

View File

@@ -97,7 +97,7 @@
"format": " {:%H:%M · %a %d %b}",
"on-click": "nomarchy-calendar",
"tooltip": true,
"tooltip-format": "{:%A, %d %B %Y}\n{:%Z (UTC%z)}"
"tooltip-format": "{:%A, %d %B %Y\n%Z (UTC%z)}"
},
"tray": {
"spacing": 8

View File

@@ -160,3 +160,10 @@ window#waybar {
#custom-nightlight,
#custom-vpn,
#custom-notification { font-size: 17px; }
tooltip {
background: @bg0;
border: 1px solid @grey1;
border-radius: 8px;
}
tooltip label { color: @fg; }

View File

@@ -96,7 +96,7 @@
"format": " {:%H:%M · %a %d %b}",
"on-click": "nomarchy-calendar",
"tooltip": true,
"tooltip-format": "{:%A, %d %B %Y}\n{:%Z (UTC%z)}"
"tooltip-format": "{:%A, %d %B %Y\n%Z (UTC%z)}"
},
"tray": {
"spacing": 8