Skip to content

Choose which calendars a calendar widget shows in Customize #116

Closed

Description

@alexandrebucci

Problem

A calendar widget reads every calendar. Limiting it to some of them means editing config.json by hand: define a provider named calendar under providers and list the calendars in calendars, typed exactly as Calendar shows them. Customize has no control for it:

  • Customize → Widgets: a widget's Content section offers the clock format, text, Workspaces' Show each window and App menus' Expand on hover, but nothing for calendar widgets.
  • Customize → Packages: the published calendar-agenda 1.0.0 declares no settings, so there is nothing to show there either.

Calendar names are easy to get wrong (a Google calendar is often named after the account's email address), and a name that matches nothing filters out every event without any error: the widget just shows No meetings.

Proposal

  • In Customize → Widgets, a calendar widget ("type": "calendar", or a provider widget whose provider has "type": "calendar") gets a Calendars control in Content: the calendars EventKit returns, grouped by account, each with a checkbox, and All calendars selected by default.
  • Choosing calendars writes the provider's calendars through the usual configuration edits, with Undo. A widget that names the type edits providers.calendar, which every widget naming the type shares, so the control says it applies to all of them. A provider widget edits its own provider. Selecting All calendars removes calendars.
  • Without Calendars access, the control shows the access state and links to System Settings → Privacy & Security → Calendars instead of the list.
  • Names in calendars that match no calendar stay listed as missing, so they can be removed.
  • Matching stays by title, as today. Calendars with the same title in different accounts still match together; storing EventKit identifiers would separate them but makes configurations less portable between Macs.

The same section could later hold lookahead, soon and now, and #64's today-only option. DataSourceRegistry.calendar already lists them as the source's optionalSettings (Sources/StableBar/DataSourceRegistry.swift), so the editor could build provider settings from the registry instead of special-casing calendars.

Possible today

Partly, by editing the configuration file (README, "Providers": "Define a provider with the same name to change its interval or other settings", and "Calendar"):

"providers": {
  "calendar": { "type": "calendar", "calendars": ["Work", "Personal"] }
}

StableBar --validate accepts it, but cannot check the names: the provider compares them with EKCalendar.title at runtime (Sources/StableBar/NativeMetrics.swift, provider.calendars.contains($0.calendar.title)). Checked on main b57aacb.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    P3
    on Nov 8, 2026
  2. self-assigned this
    on Nov 16, 2026
  3. stablebar-releases commented on Nov 20, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.18.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3released

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions