Add reminder indicator to waybar#5794
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a Waybar custom module to indicate when omarchy-reminder timers are active (bell icon + count), including tooltip details, click actions, and signal-based refresh so the indicator updates immediately when reminders are set/fired/cleared.
Changes:
- Add a new Waybar indicator script that enumerates
omarchy-reminder-*.timerunits and renders an icon/count + tooltip. - Update
omarchy-reminderto signal Waybar (RTMIN+11) on reminder set/fire/clear. - Register the new module in Waybar config and include it in existing indicator CSS rules.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
default/waybar/indicators/reminders.sh |
New indicator script that queries reminder timers and outputs Waybar JSON (text + tooltip). |
bin/omarchy-reminder |
Emits RTMIN+11 Waybar signals when reminders are set, fired, or cleared. |
config/waybar/config.jsonc |
Adds custom/reminder-indicator module (signal + interval + click actions) and places it in modules-center. |
config/waybar/style.css |
Includes the new module ID in existing indicator styling blocks. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e5eac92 to
37c6eba
Compare
37c6eba to
357d3b9
Compare
Show a bell icon in the waybar when reminders are active, with a count for multiple reminders and a tooltip listing each one with time remaining. Hidden when no reminders are set. Click shows reminders, right-click clears all. The indicator refreshes instantly via signal when reminders are set, fire, or cleared, with a 30s interval to keep the countdown tooltip current.
357d3b9 to
e4c8398
Compare
|
I believe the bell icon is already used (with a line over) on Waybar to indicate that the user has set notifications to silenced. |
Summary
Adds a waybar indicator that shows active reminders at a glance -- a bell icon appears when reminders are set, hidden when there aren't any.
default/waybar/indicators/reminders.sh) follows the existing indicator pattern, reuses the samesystemctl --output=json | jqapproach asomarchy-reminderHow it looks
When reminders are active:
(single) or 3(multiple). Hidden when empty. Hover shows e.g. "Check the oven in 12m".Changes
default/waybar/indicators/reminders.sh-- new indicator scriptbin/omarchy-reminder-- sendspkill -RTMIN+11 waybaron set, fire, and clearconfig/waybar/config.jsonc-- addscustom/reminder-indicatormoduleconfig/waybar/style.css-- adds indicator to existing indicator style rules (horizontal + vertical bar)