Skip to content

Commit 95f352e

Browse files
Add interactive calendar tooltip to Waybar clock
Configure Waybar clock module with an interactive calendar tooltip that: - Displays current month view with color-coded elements - Switches between month/year view on middle click - Scrolls through months/years with mouse wheel - Shows week numbers on the right - Highlights today's date Calendar styling features: - Months: beige/cream colored headers - Days: light pink text - Week numbers: cyan with bold formatting - Weekdays: yellow/gold headers - Today: pink with underline and bold Configuration based on Waybar Clock module documentation: https://github.com/Alexays/Waybar/wiki/Module:-Clock#style
1 parent e58569b commit 95f352e

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

config/waybar/config.jsonc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,26 @@
6161
"clock": {
6262
"format": "{:L%A %H:%M}",
6363
"format-alt": "{:L%d %B W%V %Y}",
64-
"tooltip": false,
64+
"locale": "en_GB.UTF-8", // week start on Monday
65+
"tooltip-format": "<tt><small>{calendar}</small></tt>",
66+
"calendar": {
67+
"mode": "month",
68+
"mode-mon-col": 3,
69+
"weeks-pos": "right",
70+
"on-scroll": 1,
71+
"format": {
72+
"months": "<span color='#ffead3'><b>{}</b></span>",
73+
"days": "<span color='#ecc6d9'>{}</span>",
74+
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
75+
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
76+
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
77+
}
78+
},
79+
"actions": {
80+
"on-click-middle": "mode",
81+
"on-scroll-up": "shift_up",
82+
"on-scroll-down": "shift_down"
83+
},
6584
"on-click-right": "omarchy-launch-floating-terminal-with-presentation omarchy-tz-select"
6685
},
6786
"network": {

0 commit comments

Comments
 (0)