diff options
| author | Craig Jennings <c@cjennings.net> | 2026-02-10 16:37:48 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-02-10 16:37:48 -0600 |
| commit | beddf4eebafe842bcdb45a3e37396f1c2a415cf7 (patch) | |
| tree | 7bff967517afb517b5c59561854f74e491bf41bb /dotfiles/hyprland/.config/waybar | |
| parent | b7d7360c4160a30e1f11cbb0aae2be866f4bb9ac (diff) | |
feat(waybar): split clock into date + world clock modules
Replace single clock module with custom/date (calendar tooltip) and
custom/worldclock (multi-timezone tooltip from worldclock.conf).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'dotfiles/hyprland/.config/waybar')
| -rw-r--r-- | dotfiles/hyprland/.config/waybar/config | 21 | ||||
| -rw-r--r-- | dotfiles/hyprland/.config/waybar/style.css | 15 | ||||
| -rw-r--r-- | dotfiles/hyprland/.config/waybar/worldclock.conf | 18 |
3 files changed, 44 insertions, 10 deletions
diff --git a/dotfiles/hyprland/.config/waybar/config b/dotfiles/hyprland/.config/waybar/config index 5582dc6..c8723d3 100644 --- a/dotfiles/hyprland/.config/waybar/config +++ b/dotfiles/hyprland/.config/waybar/config @@ -19,7 +19,8 @@ "pulseaudio", "idle_inhibitor", "tray", - "clock" + "custom/date", + "custom/worldclock" ], "group/sysmonitor": { @@ -116,14 +117,16 @@ "spacing": 4 }, - "clock": { - "format": "{:%a, %b %d %Y %I:%M %p %Z}", - "tooltip-format": "<small>{calendar}</small>", - "calendar": { - "format": { - "today": "<span color='#daa520'><b><u>{}</u></b></span>" - } - } + "custom/date": { + "exec": "waybar-date", + "return-type": "json", + "interval": 60 + }, + + "custom/worldclock": { + "exec": "waybar-worldclock", + "return-type": "json", + "interval": 30 }, "pulseaudio": { diff --git a/dotfiles/hyprland/.config/waybar/style.css b/dotfiles/hyprland/.config/waybar/style.css index 4551de9..3f7814b 100644 --- a/dotfiles/hyprland/.config/waybar/style.css +++ b/dotfiles/hyprland/.config/waybar/style.css @@ -73,7 +73,8 @@ window#waybar { #pulseaudio, #idle_inhibitor, #tray, -#clock, +#custom-date, +#custom-worldclock, #custom-layout, #window { padding: 0.45rem; @@ -129,6 +130,18 @@ window#waybar { color: #d47c59; } +#custom-date { + margin-left: 0; + padding-left: 0; + margin-right: 0; + padding-right: 0.2rem; +} + +#custom-worldclock { + margin-left: 0; + padding-left: 0.2rem; +} + #tray > .passive { -gtk-icon-effect: dim; } diff --git a/dotfiles/hyprland/.config/waybar/worldclock.conf b/dotfiles/hyprland/.config/waybar/worldclock.conf new file mode 100644 index 0000000..3790cfc --- /dev/null +++ b/dotfiles/hyprland/.config/waybar/worldclock.conf @@ -0,0 +1,18 @@ +# World Clock Timezones — one per line, earliest to latest +# Format: Timezone|Label +# Lines starting with # are ignored +Pacific/Honolulu|Honolulu +America/Anchorage|Anchorage +America/Los_Angeles|Berkeley +America/Chicago|New Orleans +America/New_York|New York +Europe/London|London +Europe/Paris|Paris +Europe/Athens|Athens +Europe/Istanbul|Istanbul +Asia/Yerevan|Yerevan +Asia/Kolkata|Delhi +Asia/Shanghai|Shanghai +Asia/Tokyo|Tokyo +Australia/Sydney|Sydney +Pacific/Auckland|Wellington |
