fix(waybar): clock tooltip uses single chrono format block
All checks were successful
Check / eval (push) Successful in 2m57s
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:
@@ -209,9 +209,11 @@ let
|
|||||||
# one click away.
|
# one click away.
|
||||||
on-click = "nomarchy-calendar";
|
on-click = "nomarchy-calendar";
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
# The zone line stays live under auto-timezone (the tz-watch SIGUSR2
|
# One chrono block only: waybar/fmt empties the tooltip when two
|
||||||
# reload keeps it showing the currently *detected* zone).
|
# bare `{:%…}` specs are concatenated (bar format works because it
|
||||||
tooltip-format = "{:%A, %d %B %Y}\n{:%Z (UTC%z)}";
|
# 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
|
# Active keyboard layout (per focused device) — only placed in
|
||||||
@@ -473,6 +475,15 @@ let
|
|||||||
#battery.warning { color: @warn; }
|
#battery.warning { color: @warn; }
|
||||||
#battery.critical { color: @bad; }
|
#battery.critical { color: @bad; }
|
||||||
#battery.charging { color: @good; }
|
#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
|
in
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
"format": "{:%H:%M · %a %d %b}",
|
"format": "{:%H:%M · %a %d %b}",
|
||||||
"on-click": "nomarchy-calendar",
|
"on-click": "nomarchy-calendar",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "{:%A, %d %B %Y}\n{:%Z (UTC%z)}"
|
"tooltip-format": "{:%A, %d %B %Y\n%Z (UTC%z)}"
|
||||||
},
|
},
|
||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
"format": "{:%H:%M · %a %d %b}",
|
"format": "{:%H:%M · %a %d %b}",
|
||||||
"on-click": "nomarchy-calendar",
|
"on-click": "nomarchy-calendar",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "{:%A, %d %B %Y}\n{:%Z (UTC%z)}"
|
"tooltip-format": "{:%A, %d %B %Y\n%Z (UTC%z)}"
|
||||||
},
|
},
|
||||||
"custom/recording": {
|
"custom/recording": {
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
|
|||||||
@@ -152,3 +152,10 @@ window#waybar {
|
|||||||
#custom-nightlight,
|
#custom-nightlight,
|
||||||
#custom-vpn,
|
#custom-vpn,
|
||||||
#custom-notification { font-size: 17px; }
|
#custom-notification { font-size: 17px; }
|
||||||
|
|
||||||
|
tooltip {
|
||||||
|
background: @bg0;
|
||||||
|
border: 1px solid @grey1;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
tooltip label { color: @fg; }
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
"format": " {:%H:%M · %a %d %b}",
|
"format": " {:%H:%M · %a %d %b}",
|
||||||
"on-click": "nomarchy-calendar",
|
"on-click": "nomarchy-calendar",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "{:%A, %d %B %Y}\n{:%Z (UTC%z)}"
|
"tooltip-format": "{:%A, %d %B %Y\n%Z (UTC%z)}"
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
"spacing": 8
|
"spacing": 8
|
||||||
|
|||||||
@@ -160,3 +160,10 @@ window#waybar {
|
|||||||
#custom-nightlight,
|
#custom-nightlight,
|
||||||
#custom-vpn,
|
#custom-vpn,
|
||||||
#custom-notification { font-size: 17px; }
|
#custom-notification { font-size: 17px; }
|
||||||
|
|
||||||
|
tooltip {
|
||||||
|
background: @bg0;
|
||||||
|
border: 1px solid @grey1;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
tooltip label { color: @fg; }
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
"format": " {:%H:%M · %a %d %b}",
|
"format": " {:%H:%M · %a %d %b}",
|
||||||
"on-click": "nomarchy-calendar",
|
"on-click": "nomarchy-calendar",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "{:%A, %d %B %Y}\n{:%Z (UTC%z)}"
|
"tooltip-format": "{:%A, %d %B %Y\n%Z (UTC%z)}"
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
"spacing": 8
|
"spacing": 8
|
||||||
|
|||||||
Reference in New Issue
Block a user