From 7ab5116e5d003316f8d99491dbd4af1c9a0a10f9 Mon Sep 17 00:00:00 2001 From: funman300 Date: Wed, 29 Apr 2026 10:18:55 -0700 Subject: [PATCH] waybar: work around DST bug in built-in clock module waybar 0.15.0's clock module reads PST instead of PDT, showing time an hour behind. Replace with custom/exec calling date directly. Co-Authored-By: Claude Sonnet 4.6 --- waybar/config.jsonc | 10 ++++++---- waybar/style.css | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 85b36bf..00c8b92 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -4,7 +4,7 @@ "height": 32, "modules-left": ["niri/workspaces"], - "modules-center": ["clock"], + "modules-center": ["custom/clock"], "modules-right": ["cpu", "temperature", "custom/power-profile", "custom/fan-profile", "pulseaudio", "network", "battery", "custom/mouse-battery", "tray"], "custom/mouse-battery": { "exec": "~/.config/waybar/mouse-battery.sh", @@ -51,9 +51,11 @@ "on-click": "~/.local/bin/fan-profile --menu" }, - "clock": { - "timezone": "America/Vancouver", - "format": "{:%a %b %d %H:%M}" + "custom/clock": { + "exec": "date '+%a %b %d %H:%M'", + "interval": 30, + "format": "{}", + "tooltip": false }, "battery": { diff --git a/waybar/style.css b/waybar/style.css index cabd83a..17b8d78 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -19,7 +19,7 @@ window#waybar { color: @tn-blue; } -#clock, #battery, #network, #pulseaudio, +#custom-clock, #battery, #network, #pulseaudio, #cpu, #temperature, #custom-power-profile, #custom-fan-profile { padding: 0 12px;