-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add interactive calendar tooltip to Waybar clock #3021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Already have that in my custom |
|
Indeed, it may require setting and generating the locales on your computer: |
mghextreme
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so good! Changed locally, but would be awesome to have it by default...
Also, is there a way to have it open on click instead of hover?
The problem is that all buttons are used:
|
|
Any ideas on how to make this work with themes? Either existing colors from them or provide new variables for themes to hook into. |
The problem is that css values need to be harcoded into config/waybar/config.jsonc |
By default, yes. But personally I changed my clock to show both Date and Time (because I don't see a reason to show only one of them), and then removed the |
Switch between month/year: https://github.com/robertobarreda/omarchy/blob/95f352ece182a6892729313861b30aac16107ca0/config/waybar/config.jsonc#L80 --> change to |
Michallote
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current colour scheme has poor readability on light colored themes.
config/waybar/config.jsonc
Outdated
| "format": "{:L%A %H:%M}", | ||
| "format-alt": "{:L%d %B W%V %Y}", | ||
| "tooltip": false, | ||
| "locale": "en_GB.UTF-8", // week start on Monday |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line will make the clock disappear if your locale is different, could be left but commented out to suggest users on how to make the calendar start on monday.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Updated.
Would you mind recommending a set of colors you feel comfortable on light colored themes? |
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
d9df0bb to
1f7a48a
Compare
|
awesome, this is really nice. I did this and it worked but I wonder if there's a better way of change the font size? "tooltip-format": "<tt><big><big>{calendar}</big></big></tt>", |

Summary
Details
The clock module now has an interactive calendar tooltip with:
Configuration implemented using Waybar Clock module documentation:
https://github.com/Alexays/Waybar/wiki/Module:-Clock#style
More info about setting locale vars:
Alexays/Waybar#3072 (reply in thread)
Month view:

Year view:
