Tray Agenda
Calendar agenda widget in the Windows 11 tray (Google Calendar accounts and ICS feeds) with native reminder notifications.
Author: Rubens Nascimento


A compact agenda widget for the Windows 11 system tray, with a Notion-Calendar-style
popup and native Windows reminders. It reads Google Calendar (up to 4 accounts) and
ICS feeds directly. There is no helper program: the mod signs in with your own Google
OAuth client and keeps only read-only refresh tokens, encrypted with Windows DPAPI in
Windhawk's mod storage.
Features
- Tray widget showing the current or next meeting. An event starting within the
reminder lead time takes over from the one in progress. Out-of-office events never
win over an overlapping regular event.
- Popup agenda grouped by day, with a dotted bar for events you have not answered or
accepted tentatively.
- Join buttons for Google Meet, Zoom and Microsoft Teams links.
- Native Windows toast reminders for accepted events, once before the start
(10 minutes by default) and again at the start time. Out-of-office events are never
announced. The toast has a Join button when the event has a meeting link.
- Several sources at once: up to 4 Google accounts plus ICS feed URLs (Google secret
address, Outlook/Microsoft 365 published calendar, Apple, Nextcloud, ...). The same
meeting appearing in two sources is shown once.
Setup
You need a Google Cloud OAuth client of type Desktop app. It is free and takes a few
minutes. Every user creates their own, so nothing is shared with anyone else.
- Open https://console.cloud.google.com/ and create a project (or pick one).
- Go to APIs & Services > Library, search for Google Calendar API and click
Enable.
- Go to APIs & Services > OAuth consent screen (called Google Auth Platform in
newer consoles). Choose External, fill in an app name and your email, and save.
- Under Audience (or Test users), add your own Google account as a test user.
To avoid Google expiring the sign-in every 7 days, set the publishing status to
In production. For personal use Google shows an "unverified app" warning that
you can accept.
- Go to Credentials > Create credentials > OAuth client ID, choose Desktop app
and create it. Copy the Client ID and Client secret.
- In this mod's settings paste the client ID and secret.
- Click the widget in the tray and choose Sign in with Google. Approve the
read-only calendar access in your browser.
By default the mod reads the calendars ticked in Google Calendar. To pick specific
calendars, add their IDs (shown in each calendar's settings) to Calendar IDs.
To connect another Google account (for example a work account), open the popup and choose
Add Google account; sign in with the other account in the browser. The same OAuth client
works for every account. If your organisation restricts third-party apps, a Workspace admin
may need to allow the client. Sign out ... entries remove one account at a time.
ICS feeds
Add secret calendar URLs under ICS feed URLs, one per item, as https://... or
Label|https://... (webcal:// also works). ICS carries no accept/decline status, so by
default every timed feed event gets reminders; turn that off with Remind for ICS feed
events. Recurring events, exceptions, RECURRENCE-ID overrides and IANA or Windows time
zones are supported. Feed URLs are stored as plain text in Windhawk's settings, like any
other setting, so treat them as secrets.
Privacy and security
- The mod requests only
calendar.events.readonly and calendar.calendarlist.readonly.
- Sign-in uses the system browser, a loopback redirect on
127.0.0.1 and PKCE. The
refresh token is encrypted with DPAPI for your Windows account.
- The client secret you paste is stored in Windhawk's settings, like any other mod
setting. For a Desktop-app client it is not a confidential secret.
- Network traffic goes to Google over HTTPS and to the ICS feed URLs you configure (HTTPS
only, no credentials in the URL; up to 4 redirects are followed, which may lead to other
HTTPS hosts). Nothing is sent until you configure an OAuth client and sign in, or add an
ICS URL. Meeting links are shown only if they match a strict allowlist: Google Meet,
zoom.us and Microsoft Teams join URLs.
- Reminders use their own notification identity, so they appear as "Tray Agenda". The first time a
reminder is about to be shown, the mod writes
HKCU\Software\Classes\AppUserModelId\TrayAgenda
(display name only), and Windows adds
HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\TrayAgenda. Nothing is
written if no reminder is ever shown (for example with Reminder notifications off). Both keys are
deleted when the mod is disabled or unloaded. Explorer exiting (sign-out, shutdown, restart, crash)
does not run that path, so after a session with a reminder the keys stay until the mod next loads
into Explorer (and for good if the mod or Windhawk is removed while the mod is not loaded). For the
same reason, per-app notification choices made in Windows Settings are reset at every sign-in or
Explorer restart; use the mod's own Reminder notifications setting instead.
- Sign out ... in the popup removes that account's stored token and revokes it at Google.
Notes
- Windows 11 only. Reminders follow your Windows notification and Focus settings. The widget
is shown on the primary taskbar only.
- Taskbar XAML-root and tray insertion strategy is adapted from Salyts' MIT-licensed
Taskbar Fluent Media Player Windhawk mod.
Contributing and issues
Found a bug, have an idea, or want to contribute? Open an issue or a pull request on
GitHub. When reporting a problem, please include your
Windows build, the Windhawk version and the mod log output (with any account details removed).
You can also find me at github.com/chambber.