From 01ee847490ac7c80a52e5bd15d5e130087b4f98e Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Sun, 5 Jul 2026 21:56:44 +0100 Subject: [PATCH] feat(bar): timezone line in the clock tooltip (LATER item) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hovering the clock now leads with the zone — "{:%Z (UTC%z)}" above the calendar — on the generated bar and both summer whole-swaps (parity). Under auto-timezone the existing tz-watch SIGUSR2 reload keeps it showing the currently detected zone. %Z is the abbreviation (BST), not the IANA name — strftime has no code for that, and it satisfies the "(optional)" nicety. Verified: V0; V1 — the rendered generated config carries the new tooltip-format and both summer jsonc parse with it. Hover render queued for hardware. Co-Authored-By: Claude Fable 5 --- agent/BACKLOG.md | 1 - agent/HARDWARE-QUEUE.md | 4 ++++ agent/JOURNAL.md | 17 +++++++++++++++++ modules/home/waybar.nix | 4 +++- themes/summer-day/waybar.jsonc | 2 +- themes/summer-night/waybar.jsonc | 2 +- 6 files changed, 26 insertions(+), 4 deletions(-) diff --git a/agent/BACKLOG.md b/agent/BACKLOG.md index b512ead..af7a49e 100644 --- a/agent/BACKLOG.md +++ b/agent/BACKLOG.md @@ -234,7 +234,6 @@ them as composable commands, not dead ends. - **Night-light geo mode**: lat/long auto sunset/sunrise (means wlsunset). - **Per-theme icon overrides** / more icon packs (ROADMAP § Icon themes). - **MIPI/IPU software-ISP camera** support (no-UVC machines). -- **Auto-timezone Waybar tooltip** showing the detected zone (optional). - **VPN exit-node richer display** (country/city) (optional). - **NixOS release bump → v2** `[human]`: deliberate, hand-edited, never automated; the previous attempt was discarded (2026-06-22) over a diff --git a/agent/HARDWARE-QUEUE.md b/agent/HARDWARE-QUEUE.md index 0d240d4..bfd8a4f 100644 --- a/agent/HARDWARE-QUEUE.md +++ b/agent/HARDWARE-QUEUE.md @@ -167,6 +167,10 @@ QA machine), the **T14s** (webcam case). (tooltips, fastfetch labels) is visible on summer-day + flexoki-light, kanagawa floats are lighter than the bg (upstream sumiInk4). Anything that reads worse than before → reopen 28b. +- [ ] **Clock zone tooltip (LATER item)** — hover the bar clock: the + tooltip's first line shows the zone ("BST (UTC+0100)") above the + calendar, on the generated AND summer bars; with auto-timezone + on, a zone change updates it (the SIGUSR2 reload). - [ ] **Doctor bar tripwire (LATER item)** — with everything healthy the bar shows nothing; `systemctl --user start doomed`-style induced failure → within ~5 min a red appears (tooltip lists diff --git a/agent/JOURNAL.md b/agent/JOURNAL.md index 7a91c4e..f10b6cd 100644 --- a/agent/JOURNAL.md +++ b/agent/JOURNAL.md @@ -17,6 +17,23 @@ Template: --- +## 2026-07-05 — clock zone tooltip (iteration #43, LATER item) +- **Task:** LATER › auto-timezone Waybar tooltip. Bullet deleted. +- **Did:** the clock tooltip's first line is now the zone — + `{:%Z (UTC%z)}` above the calendar — in the generated bar AND both + summer whole-swaps (parity). Under auto-timezone the existing + tz-watch SIGUSR2 reload keeps it current, so it shows the detected + zone live. (%Z abbreviation, not the IANA name — strftime has no + code for that; good enough for an "(optional)" nicety.) +- **Verified:** V0; V1 — rendered generated config carries the new + tooltip-format; both summer jsonc parse (jq) with %Z present. + Hover render → V3 queued. +- **Pending:** V3. LATER now holds only deferred/big/hw/human items. +- **Next suggestion:** a QA sweep, or stop-and-wait — the queue is + effectively drained for unattended work; meaty LATER items + (wallpapers split is *deferred by decision*, installer round 2 + [big]) deserve Bernardo's go-ahead or a fresh session. + ## 2026-07-05 — doctor bar tripwire (iteration #42, LATER item) - **Task:** LATER › doctor Waybar warning. Bullet deleted. - **Did:** nomarchy-doctor-status (named bin, PATH): silent exit 0 diff --git a/modules/home/waybar.nix b/modules/home/waybar.nix index aa5c130..39ae12d 100644 --- a/modules/home/waybar.nix +++ b/modules/home/waybar.nix @@ -150,7 +150,9 @@ let clock = { format = "{:%H:%M}"; format-alt = "{:%A %d %B %Y}"; - tooltip-format = "{calendar}"; + # Zone line first (LATER nicety): under auto-timezone the tz-watch + # SIGUSR2 reload keeps it showing the currently *detected* zone. + tooltip-format = "{:%Z (UTC%z)}\n{calendar}"; }; # Active keyboard layout (per focused device) — only placed in diff --git a/themes/summer-day/waybar.jsonc b/themes/summer-day/waybar.jsonc index 490dc61..8e8188a 100644 --- a/themes/summer-day/waybar.jsonc +++ b/themes/summer-day/waybar.jsonc @@ -70,7 +70,7 @@ "clock": { "format": " {:%H:%M}", "tooltip": true, - "tooltip-format": "{calendar}" + "tooltip-format": "{:%Z (UTC%z)}\n{calendar}" }, "clock#date": { diff --git a/themes/summer-night/waybar.jsonc b/themes/summer-night/waybar.jsonc index 272a34c..76796dc 100644 --- a/themes/summer-night/waybar.jsonc +++ b/themes/summer-night/waybar.jsonc @@ -69,7 +69,7 @@ "clock": { "format": " {:%H:%M}", "tooltip": true, - "tooltip-format": "{calendar}" + "tooltip-format": "{:%Z (UTC%z)}\n{calendar}" }, "clock#date": {