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 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-04-29 10:18:55 -07:00
parent a210977a0e
commit 7ab5116e5d
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -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": {
+1 -1
View File
@@ -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;