From b851f7309054cd290cdcb3455e544f01b017cc6e Mon Sep 17 00:00:00 2001 From: rope Date: Sun, 23 Aug 2026 09:56:38 +0100 Subject: [PATCH] quickshell: second-precision clock so bar isn't stale after resume --- settings/quickshell.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/settings/quickshell.nix b/settings/quickshell.nix index 2ac63bd..944bc6a 100644 --- a/settings/quickshell.nix +++ b/settings/quickshell.nix @@ -727,7 +727,7 @@ in SystemClock { id: lockClock - precision: SystemClock.Minutes + precision: SystemClock.Seconds } // Lower-left, not centred: clock/date/password stack left @@ -4007,11 +4007,15 @@ in } } - // SystemClock ticks on the minute boundary instead of a 1 Hz - // Timer; the calendar reads clockText.now too. + // Seconds, not Minutes: Qt timers run on CLOCK_MONOTONIC, + // which stops during suspend, so a minute-aligned tick leaves + // the bar showing the time the lid closed for up to a minute + // after resume. Only HH/mm are rendered, so the extra ticks + // produce identical text and cost no repaint. The calendar + // reads clockText.now too. SystemClock { id: sysClock - precision: SystemClock.Minutes + precision: SystemClock.Seconds } // ── Top cluster: logo, workspaces — split by a hairline.