chroncal

module
v0.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: MIT

README

chroncal icon

chroncal

CI Release Go Reference

Terminal Trove Tool of the Week

chroncal is a terminal calendar. SQLite stores the data. The program supports full iCal import and export, and CalDAV sync. Launch the TUI for an interactive calendar. Use the CLI to script access to events, todos, journals, alarms, free/busy queries, and calendars.

chroncal keeps your calendar data local and portable. The data follows the calendar standards.

chroncal TUI demo

Features

  • Interactive TUI with month, week, day, and agenda views. Launch it on a given event with chroncal --event.
  • Omarchy menu bar through Chroncal Bar
  • Full CLI for scripts and automation
  • iCal import/export with broad RFC 5545 coverage (VEVENT, VTODO, VJOURNAL, VALARM, VTIMEZONE)
  • CalDAV sync with collection discovery, selective imports, access metadata, conflict resolution, sync health, and Google re-auth
  • Free/busy queries from local data or remote CalDAV VFREEBUSY reports
  • Recurring events and todos via RRULE, RDATE, and EXDATE
  • Recurring journals via RRULE, RDATE, and EXDATE
  • Alarm notifications with desktop alerts, sound, and email
  • Multiple calendars with color codes
  • Full-text search across events, todos, and journals
  • Attendees, attachments, comments, contacts, resources, and relations
  • SQLite storage with automatic migrations
  • Cross-platform (Linux, macOS, Windows)
  • Two output formats: text for humans, JSON for scripts and LLMs

Installation

Method Platforms Best for
Install script Linux, macOS, FreeBSD, OpenBSD Prebuilt binary users who want one command
Homebrew macOS, Linux Managed installs and upgrades
Go install Any platform with Go 1.25+ Go users and contributors
mise macOS, Linux Users who already manage tools with mise
Nix Linux, macOS nix run and profile installs
Scoop Windows Managed Windows installs
AUR Arch Linux yay/paru users (binary or source package)
Build from source Any platform with Go 1.25+ Contributors and packagers
Install script (Linux / macOS / BSD)

You do not need a Go toolchain. The installer detects your OS and architecture. It downloads the latest release archive. It verifies the archive against checksums.txt. It installs chroncal to /usr/local/bin when possible. If sudo is not available, it uses ~/.local/bin.

curl -fsSL https://raw.githubusercontent.com/DouglasdeMoura/chroncal/master/scripts/install.sh | sh

Pin an exact version:

curl -fsSL https://raw.githubusercontent.com/DouglasdeMoura/chroncal/master/scripts/install.sh | env VERSION=v0.2.3 sh

Install somewhere else:

curl -fsSL https://raw.githubusercontent.com/DouglasdeMoura/chroncal/master/scripts/install.sh | env INSTALL_DIR="$HOME/.local/bin" sh

Do not set VERIFY_CHECKSUM=0 unless your environment cannot run checksum tools. Checksum verification is the recommended path.

Homebrew (macOS / Linux)
brew tap douglasdemoura/tap && brew install chroncal

Upgrade:

brew update && brew upgrade chroncal

Uninstall:

brew uninstall chroncal

chroncal ships as a Homebrew cask (prebuilt binary). On Linux this needs Homebrew 4.5+ (April 2025). That version added cask support. GoReleaser pushes the cask to DouglasdeMoura/homebrew-tap on each release when the HOMEBREW_TAP_TOKEN repository secret is set. Installs from the old formula move to the cask on brew upgrade.

If Homebrew is not available for a new release, use the install script, mise, Nix, or go install.

Go install

You need Go 1.25+.

go install github.com/douglasdemoura/chroncal/cmd/chroncal@latest

Pin an exact release:

go install github.com/douglasdemoura/chroncal/cmd/chroncal@v0.2.3

go install puts the binary in $(go env GOPATH)/bin/chroncal. Put that directory on your PATH.

mise

Install the latest GitHub release globally:

mise use -g github:DouglasdeMoura/chroncal

Pin an exact release globally:

mise use -g github:DouglasdeMoura/chroncal@0.2.3

If a new release does not appear yet, clear the mise GitHub release cache first:

mise cache clear
mise ls-remote github:DouglasdeMoura/chroncal
Nix

Run without an install:

nix run github:DouglasdeMoura/chroncal

Install to your profile:

nix profile install github:DouglasdeMoura/chroncal

Build the package from a clone:

nix build .#chroncal

The flake exposes packages.default, packages.chroncal, apps.default, homeModules.chroncal, homeModules.default, and a developer shell with Go, GoReleaser, golangci-lint, govulncheck, and sqlc.

home-manager

The flake also exposes a home-manager module. The module installs the program and writes $XDG_CONFIG_HOME/chroncal/config.toml.

Add the input to your flake.nix:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    home-manager.url = "github:nix-community/home-manager";
    chroncal.url = "github:DouglasdeMoura/chroncal";
  };
}

Then import the module in your home-manager configuration:

{ inputs, ... }:
{
  imports = [ inputs.chroncal.homeModules.default ];

  programs.chroncal = {
    enable = true;
    settings = {
      product_id = "-//example//chroncal//EN";
      ui = {
        theme = "default";
        week_start = "monday";
      };
      soft_delete.purge_days = 30;
      sync.conflict_strategy = "prompt";
      calendars = [
        { name = "Fastmail"; path = "~/calendars/fastmail"; }
        { name = "Work"; color = "#0F766E"; }
      ];
    };
  };
}

The calendars list declares the local calendars. See Declared calendars.

The module has three options:

Option Type Description
programs.chroncal.enable boolean Installs the package and writes the config file.
programs.chroncal.package package or null The package to install. The default is the package of this flake for the system of the host. Set it to null to install the program with another method.
programs.chroncal.settings attribute set The content of config.toml. See Config keys for each key.

Do not put a secret in settings. The Nix store is readable for every user of the machine. Pass a secret through an environment variable, for example CHRONCAL_SMTP_PASSWORD.

On macOS the module writes the file to ~/Library/Application Support/chroncal/config.toml, because the program reads that directory. With xdg.enable = true the module writes the file to xdg.configHome instead.

Scoop (Windows)

Windows users can install with:

scoop bucket add chroncal https://github.com/DouglasdeMoura/scoop-bucket
scoop install chroncal

Upgrade:

scoop update chroncal

GoReleaser generates the manifest. It pushes the manifest to DouglasdeMoura/scoop-bucket on each release.

Arch Linux AUR

The project publishes two AUR packages:

yay -S chroncal-bin  # prebuilt Linux binary from GitHub Releases
yay -S chroncal      # builds from source with your local Go toolchain

chroncal-bin is fastest for x86_64 and aarch64 users. Use chroncal when you want to build locally or use another Arch-supported CPU target. GoReleaser generates both packages (aurs and aur_sources in .goreleaser.yml). It pushes them to the AUR on each release.

Build from source
git clone https://github.com/DouglasdeMoura/chroncal.git
cd chroncal
make build
./chroncal version

Run the test suite before you send changes:

go test ./...
Maintainer checklist

Before you create a release:

  1. Make sure CI passes on master.
  2. Bump the VERSION file to the new version (no v prefix). The release workflow does not run if the file does not match the tag.
  3. Run goreleaser check locally if GoReleaser is installed.
  4. Create a v* tag. Push the tag.
  5. Confirm the GitHub Release includes archives, checksums.txt, and install snippets.
  6. Confirm the install script works for the new tag.
  7. Confirm brew tap douglasdemoura/tap && brew install chroncal works after the Homebrew tap update.
  8. Confirm scoop update chroncal sees the new Scoop manifest.
  9. Confirm the AUR packages exist at https://aur.archlinux.org/packages/chroncal and https://aur.archlinux.org/packages/chroncal-bin.
  10. Confirm go install github.com/douglasdemoura/chroncal/cmd/chroncal@<tag> works.
  11. Confirm mise use -g github:DouglasdeMoura/chroncal@<version> resolves the release.

Do not rerun a failed release job while old assets still exist. GoReleaser does not overwrite release assets that already exist. The rerun fails with already_exists before it reaches the package publishers.

Delete the assets first. Then rerun the failed job. The release object and its notes stay. All channels then get hashes that match the new assets:

for a in $(gh release view vX.Y.Z --json assets --jq '.assets[].name'); do
  gh release delete-asset vX.Y.Z "$a" -y
done
gh run rerun <run-id> --failed

Required repository secrets:

Secret Purpose Required
GITHUB_TOKEN GitHub Actions token. Publishes release assets. Yes
HOMEBREW_TAP_TOKEN Personal access token with write access to DouglasdeMoura/homebrew-tap No. Homebrew updates need this token.
SCOOP_BUCKET_TOKEN Personal access token with write access to DouglasdeMoura/scoop-bucket No. If it is absent, Scoop updates use HOMEBREW_TAP_TOKEN when that token has access.
AUR_KEY Unencrypted SSH private key for the AUR maintainer account No. Without it, the workflow skips AUR publish.

The flake reads its version from the VERSION file. Nix needs no per-release edits. When go.mod or go.sum changes, the flake vendorHash must change with it. The Nix CI workflow builds the flake on any PR that changes those files. The build fails on a mismatch.

To fix a mismatch, run nix build .#chroncal. Copy the got: hash into flake.nix. Then run the build again. The update-flake-lock workflow opens a PR that refreshes the flake inputs each month, on demand, and after a successful release workflow.

GoReleaser publishes all of these in one run: release assets, the Homebrew cask, the Scoop manifest, and both AUR packages. There are no manual package steps.

A later release can add .deb and .rpm assets with GoReleaser nFPM. Do this after the primary package manager channels are stable.

Quick start

# Launch the interactive TUI
chroncal

# Open the TUI on a specific event (optional occurrence time)
chroncal --event 42
chroncal --event 42 --at 2026-04-17T14:00:00Z

# Create a calendar
chroncal calendar create "Work" --color "#3B82F6"

# Add an event
chroncal event add "Team standup" --date 2026-04-01 --time 09:00 --duration 30m --calendar Work

# Add an event with a relative date (today, tomorrow, a weekday, or +7d)
chroncal event add "Birthday party" --date tomorrow --time 17:00 --calendar "Personal"

# Add a recurring event
chroncal event add "Weekly review" --date 2026-04-04 --time 14:00 --duration 1h --rrule "FREQ=WEEKLY;BYDAY=FR"

# Add a todo
chroncal todo add "Write quarterly report" --due 2026-04-15 --priority 1

# Add a journal entry
chroncal journal add "Weekly notes" --date 2026-04-04 --calendar Work

# List upcoming events
chroncal event list --from 2026-04-01 --to 2026-04-30

# List this week with relative dates
chroncal event list --from today --to +7d

# Search
chroncal event search "standup"

# Import from iCal (one file, or a directory of .ics files)
chroncal ical import calendar.ics --calendar Work
chroncal ical import ~/.calendars/work --calendar Work

# Export to iCal
chroncal ical export --calendar Work -f work.ics

# Add one CalDAV account; every usable calendar is discovered, imported, and synced
CHRONCAL_PASSWORD="…" chroncal account add "Work server" \
    --server https://cal.example.com/dav/ --username alice --auth basic
chroncal account calendars list "Work server"

# Run sync and inspect status
chroncal sync run --calendar Work
chroncal sync status

# Compute local free/busy for a range
chroncal freebusy --calendar Work --from 2026-04-01 --to 2026-04-30

CLI reference

Events
chroncal event list           [--from DATE] [--to DATE] [--calendar NAME] [--status STATUS] [--include-deleted] [--compact | --detail | --verbose]
chroncal event get            <id|uid> [--recurrence-id ID]
chroncal event search         <query> [--calendar NAME] [--from DATE] [--to DATE] [--status STATUS]
chroncal event add            "<title>" [flags]
chroncal event update         <id|uid> [flags] [--recurrence-id ID]
chroncal event rsvp           <id|uid> --status ACCEPTED|DECLINED|TENTATIVE
chroncal event delete         <id|uid> [--recurrence-id RFC3339] [--following RFC3339] [--calendar NAME] [--series] [--yes]
chroncal event restore        <id|uid>
chroncal event purge          <id> [--yes]
chroncal event purge-deleted  [--older-than DURATION] [--yes]

Event flags: --date, --time, --end-time, --duration, --timezone, --location, --description, --calendar, --status, --class, --transparency, --priority, --url, --categories, --geo, --rrule, --exdate, --rdate, --attach, --alarm, --attendee, --organizer, --contact, --resource, --comment, --related-to

event list --verbose shows each event on a time rail, with its time, title, location, and description. A | starts each line of the description. The colors match the --compact table. Chroncal shows colors only on a terminal. Set NO_COLOR to turn them off.

event update --calendar NAME moves an event to another calendar. A series moves as one unit: the master and all its overrides go together. Chroncal refuses --calendar together with --recurrence-id, because one occurrence cannot leave its series. The error names the ID of the series to move instead. One exception: with a UID reference, --calendar NAME names the calendar of the series when that calendar holds the series. Use it when two calendars hold the UID. Chroncal also refuses a move when the target calendar holds a copy of the same UID, live or in the trash. On a remote calendar, sync creates the object in the target calendar first. Then it deletes the object in the source calendar. todo update and journal update use the same rules.

event delete supports three scopes for a recurring series. Pass the series by ID or UID:

  • --recurrence-id <RFC3339> deletes one occurrence. chroncal writes an EXDATE on the master and deletes any override at that time.
  • --following <RFC3339> deletes that occurrence and every following one. chroncal truncates the series at that date.
  • --series deletes the master and all overrides.

The three flags are mutually exclusive.

Two calendars can hold a series with the same UID, for example after a sync of two collections. A bare UID then names no single series. Pass the numeric ID of the master, or pass --calendar NAME to name the calendar of the event. The flag works with every scope, with --series, and with a plain delete. Chroncal refuses a numeric ID together with a --calendar that does not hold that row.

event restore <id> with the ID of a master reverses the series delete. The master and the overrides that the series delete hid come back. An occurrence that you deleted on its own before stays deleted. event restore <uid> reverses a series delete of the UID. An occurrence that you deleted on its own does not count, and neither does a series with only truncated rows. Restore such a row by its ID. When two calendars hold a series delete of the UID, restore the series by the ID of its master.

event rsvp sets your RSVP status on an event:

chroncal event rsvp 42 --status ACCEPTED   # aliases: yes/y, no/n, maybe/m

The calendar needs an owner email (calendar update --email). You must be an invited attendee, not the organizer. The command writes the local attendee row. It does not send an iTIP reply.

Todos
chroncal todo list           [--calendar NAME] [--status STATUS] [--all] [--from DATE] [--to DATE] [--include-deleted]
chroncal todo get            <id|uid> [--recurrence-id ID]
chroncal todo search         <query> [--calendar NAME] [--status STATUS] [--completed] [--incomplete]
chroncal todo add            "<summary>" [flags]
chroncal todo update         <id|uid> [flags] [--recurrence-id ID]
chroncal todo complete       <id|uid> [--recurrence-id ID]
chroncal todo delete         <id|uid> [--recurrence-id ID] [--series] [--yes]
chroncal todo restore        <id|uid>
chroncal todo purge          <id> [--yes]
chroncal todo purge-deleted  [--older-than DURATION] [--yes]

Todo flags: --due, --start, --duration, --location, --description, --calendar, --status, --progress, --class, --priority, --url, --categories, --geo, --rrule, --exdate, --rdate, --attach, --alarm, --attendee, --organizer, --contact, --resource, --comment, --related-to

--recurrence-id <RFC3339 or YYYY-MM-DD> with the UID of a recurring todo names one occurrence:

  • todo update edits that occurrence. todo complete completes it. When the occurrence has no override yet, chroncal creates one from the occurrence. The series and the other occurrences do not change.
  • todo delete deletes that occurrence. chroncal writes an EXDATE on the master and puts the override in the trash. todo restore <id> brings the occurrence back.
  • An occurrence stays in the calendar of its series. --recurrence-rule, --exception-date-times, and --recurrence-date-times apply to the series, so todo update refuses them on a new override.
  • A new override takes the alarms, the attendees, and the other child rows of the series. A flag such as --alarm then replaces them on the override only.
  • A time that is not an occurrence of the series gives an error that says so. A todo that does not recur gives an error too.
Journals
chroncal journal list           [--from DATE] [--to DATE] [--calendar NAME] [--status STATUS] [--all] [--include-deleted]
chroncal journal get            <id|uid> [--recurrence-id ID]
chroncal journal search         <query> [--calendar NAME] [--from DATE] [--to DATE] [--status STATUS]
chroncal journal add            "<summary>" [flags]
chroncal journal update         <id|uid> [flags] [--recurrence-id ID]
chroncal journal delete         <id|uid> [--recurrence-id ID] [--series] [--yes]
chroncal journal restore        <id|uid>
chroncal journal purge          <id> [--yes]
chroncal journal purge-deleted  [--older-than DURATION] [--yes]

Journal flags: --date, --description, --calendar, --status, --class, --url, --categories, --rrule, --exdate, --rdate, --attach, --attendee, --organizer, --contact, --comment, --related-to

CalDAV accounts
chroncal account add              "<name>" --server URL --username USER [--auth {basic,bearer,oauth2}] [--password-cmd CMD] [--oauth-client-id ID] [--allow-insecure]
chroncal account get              <name|id>
chroncal account list
chroncal account update           <name|id> --name NAME
chroncal account credentials      <name|id> [--password-cmd CMD]
chroncal account reauth           <name|id> [--oauth-client-id ID]
chroncal account calendars list   <name|id>
chroncal account calendars add    <name|id> (--calendar NAME_OR_URL ... | --all)
chroncal account calendars set    <name|id> (--calendar NAME_OR_URL ... | --all | --none) [--default ID_OR_NAME_OR_URL] [--yes]
chroncal account remove           <name|id> [--yes]

An account stores one credential. It discovers every CalDAV calendar collection that the credential can reach. account add imports every collection that supports VEVENT, VTODO, or VJOURNAL. It completes an initial sync before it returns.

account calendars list refreshes the complete inventory. The list includes selected, read-only, unsupported, and no-longer-available collections. account calendars add is additive and idempotent for collections that appear later. Use --calendar more than once to add chosen collections. Use --all to add every usable collection. The command syncs new collections before it returns.

account calendars set replaces the exact local selection. After confirmation, Chroncal deletes deselected calendars and their downloaded data. It never deletes the remote collections. If you deselect the current default calendar, pass --default with a retained local calendar or a new remote collection. The command syncs new collections before it returns.

One remote collection links to one local calendar only. account calendars list shows a collection that another local calendar links as linked by <calendar>. account add and --all skip such a collection. When other calendars link each usable collection, account add stops with an error and removes the new account. --calendar refuses such a collection with an error. Remove the other link first, for example with calendar update <calendar> --disconnect-remote. The check compares the collection URL and the user name of the account. It ignores the case of the user name.

If you select none, the command also removes the empty account and credential. account remove deletes the credential and remote links. It keeps downloaded calendars as local copies. A later account add of the same server links these calendars again. An edit, a delete, or a restore of a synced item in that time goes to the server on the first sync after the link. Until these changes are on the server, sync uses the prompt strategy for the calendar, also when it is otherwise server-wins. When the server changed the item too, the sync records an open conflict and keeps your edit. Resolve it with chroncal sync resolve. A read-only collection cannot take the edit, so the server version replaces it.

account credentials rotates the stored secret of a basic or bearer account. It reads the new value from CHRONCAL_PASSWORD (basic) or CHRONCAL_BEARER_TOKEN (bearer). For a basic account, --password-cmd stores a command instead of a password. See Command-retrieved passwords. account reauth repeats the Google OAuth consent flow for an oauth2 account; the client secret comes from GOOGLE_CLIENT_SECRET or the stored value, and --oauth-client-id replaces the stored client ID. Neither command accepts a secret as a CLI flag.

You can open read-only collections locally and sync them pull-only. Chroncal does not send metadata changes, resources, or tombstones to them.

Credential storage

Chroncal keeps an account credential in the OS keyring: GNOME Keyring or KWallet on Linux, the Keychain on macOS, the Credential Manager on Windows. This needs no setup on a full desktop.

Many terminal setups run no keyring. A tiling window manager such as sway is a common example. You have three options on such a host.

Option 1 — Use a password command (no opt-in). The credential holds the command, never the password. The command must get the password from your password manager. Chroncal runs the command at each sync and reads the password from your password manager. This needs no keyring and no flag:

chroncal account add "Nextcloud" \
    --server https://cloud.example.com/remote.php/dav/ --username scott --auth basic \
    --password-cmd "pass show caldav/nextcloud"

The TUI offers the same field. Open Calendars, then + Add, then Add Account…, and fill Password cmd instead of Password. See Command-retrieved passwords.

Option 2 — Install a keyring provider. On Linux, install libsecret and gnome-keyring (or KWallet). Start the daemon with your session. Chroncal then finds the keyring with no configuration.

Option 3 — Opt in to plaintext storage. Chroncal writes the credential to a 0600-mode file under ~/.config/chroncal/credentials/. Set the key once, so the TUI and every command agree:

[security]
allow_plaintext = true

--allow-plaintext and CHRONCAL_SECURITY_ALLOW_PLAINTEXT=true do the same for one run. Both apply to the TUI: start it with chroncal --allow-plaintext. Prefer the config key. It holds for every run, and a TUI session that already runs cannot take a flag.

The TUI can also set the key for you. When Add Account… or Update Credentials refuses a password or a token, the TUI shows a prompt with the trade-off below. Cancel has the focus, so a quick Enter writes nothing. Select Store in Plaintext to agree. The TUI then writes allow_plaintext = true to the [security] table of the config file, and it keeps the other lines of the file. It saves the secret that you typed, with no restart. If the TUI cannot edit the file safely, it changes nothing and shows the error. Then set the key by hand.

Read the trade-off first. The 0600 mode blocks a casual cat. It does not block backups, filesystem snapshots, or sync tools (Dropbox, iCloud, rsync) that ignore Unix permissions. A password command keeps the secret out of the file, so prefer option 1 when your password manager supports it.

CHRONCAL_SECURITY_DISABLE_KEYRING=1 turns the OS keyring off for the process that has it in its environment. Chroncal then behaves as if no keyring exists: it falls back to the file store under the same allow_plaintext rule. Set it on a host where the keyring is locked or absent but the session still runs, for example over SSH. The test suite sets it too, so tests never read or write the real keyring. It is an environment variable only. No config key has the same function.

Use the switch for all runs or for no runs. With the switch, chroncal does not read the credentials that the keyring holds. An account with a keyring credential then fails to sync. A new or refreshed credential goes to the file store, and a run without the switch does not read it. account remove with the switch leaves the keyring entry in place.

What needs the opt-in, and what does not:

Credential Keyring absent, no opt-in
Basic auth with --password-cmd Works. The file holds the command, not the password.
Basic auth with a password Refused for a new account.
Bearer token Refused for a new account.
OAuth 2.0 (Google) Refused for a new account. Chroncal does not open the browser.
A credential an earlier run wrote Read and rewritten in place. Sync, discovery, and free/busy keep working.

The last row wins over the three above it. An account whose file already holds a secret keeps that permission: you can rotate its password, reconnect it, and refresh its OAuth token with no keyring and no opt-in. Chroncal refuses a secret only where it would put a new one on the disk.

Each refusal names the three remedies above. Chroncal refuses before it does the work, but the two front ends ask you for the secret at different times:

  • The CLI stops before the prompt.
  • The TUI takes the dialog first. It stops when you submit the dialog. It does not contact the server and it does not add the account. For a password or a token, it then offers the plaintext opt-in that option 3 describes.

A read is always permitted, so an account you added once with --allow-plaintext keeps syncing on a later run without the flag. Chroncal also permits a rewrite of that same file. An OAuth access token expires after about an hour. Chroncal then writes the new token to the file it already wrote, and the account keeps working. The same applies to a credential that an older version of chroncal wrote: chroncal moves it to the current location and keeps it usable.

Calendars
chroncal calendar list
chroncal calendar get     <id>
chroncal calendar create  "<name>" [--color HEX] [--description TEXT] [--email ADDR] [--path DIR] [--default-alarm SPEC]... [remote flags]
chroncal calendar update  <id|name> [--name NAME] [--color HEX] [--description TEXT] [--email ADDR] [--path DIR] [--default-alarm SPEC]... [--clear-default-alarms] [remote flags] [--disconnect-remote]
chroncal calendar delete  <id>
chroncal calendar set-default <id|name>
chroncal calendar hide     <id|name>
chroncal calendar show     <id|name>

set-default makes a calendar the default. New events, todos, and journals without an explicit --calendar go there. Exactly one calendar is the default at any time.

calendar hide opts a calendar out of the TUI sidebar without deleting it: events stay in the database and still sync. calendar show reverses it. Calendar JSON (--output json) carries the link and sync state per calendar: account_id, account_name, remote_url, remote_access, last_sync_at, last_sync_error, last_sync_ok, and hidden.

You can still use remote flags with create or update to attach one local calendar to a known CalDAV collection. Prefer chroncal account when one credential exposes multiple collections:

--remote-url <href>
--username <user>
--auth {basic,bearer,oauth2}
--oauth-client-id <id>
--allow-insecure

For script setup, the commands read credentials from environment variables, not from prompts: CHRONCAL_PASSWORD (basic), CHRONCAL_BEARER_TOKEN (bearer), and GOOGLE_CLIENT_SECRET (oauth2). The commands do not accept these values as CLI flags.

A basic account also accepts --password-cmd or CHRONCAL_PASSWORD_CMD. The value is a command, not a secret, so a flag is safe. See Command-retrieved passwords.

Pass --disconnect-remote on update to remove the remote link of a calendar.

--remote-url refuses a collection that another local calendar links with the same user. Two links of one collection show each item twice. The link makes a new account for the calendar. It does not reuse the account of the other calendar.

calendar create --default-alarm and calendar update --default-alarm set the per-calendar default alarms. See Default alarms.

--path names a directory of .ics files that feeds the calendar. A sync tool such as vdirsyncer or pimsync writes one .ics file for each event there. calendar get shows the directory on the path row, and the TUI shows it on the Location row of the calendar detail. chroncal ical import without a path then imports the calendar from that directory. Pass --path "" on update to remove the directory. The [[calendars]] table in config.toml sets the same field declaratively. See Declared calendars.

iCal import/export
chroncal ical import  [file.ics|directory] [--calendar NAME]
chroncal ical export  [--calendar NAME] [--from DATE] [--to DATE] [--category TEXT] [--status TEXT] [-f FILE] [--events] [--todos] [--journals] [--skip-unreadable]

The import path is one .ics file or one directory. For a directory, chroncal reads every .ics file in that directory and in its subdirectories, and imports them into one calendar. A tool such as vdirsyncer writes one .ics file for each event, so point the import at the collection directory:

# One collection
chroncal ical import ~/.calendars/work --calendar Work

# Every collection below one parent directory, merged into one calendar
chroncal ical import ~/.calendars --calendar Personal

Directory rules:

  • chroncal skips every file and directory whose name starts with a dot. A version-control directory and a partial file from a sync tool stay out of the import.
  • chroncal skips every file without an .ics extension, for example the displayname and color files that vdirsyncer writes.
  • A file that fails to parse becomes a warning. The rest of the directory still lands.
  • chroncal reads at most 10000 .ics files in one run.
  • The import does not follow a symbolic link that the path names. It also skips a symbolic link inside the directory. A stored directory is an exception. See the batch rules below.

Entries are matched by UID, so a second import of the same path updates the existing items. An item that did not change keeps its row as it is. Its SEQUENCE stays, and the summary counts it as unchanged, not as updated. The comparison ignores DTSTAMP, CREATED, LAST-MODIFIED, and the order of the alarms. It also ignores the UID of an alarm in two cases:

  • The file gives the alarm no UID, so the store gives one.
  • Another alarm already holds the UID of the file. Alarm UIDs are unique, so the store keeps a different UID for the alarm.

A change of any other alarm UID counts as a change of the item.

Without a path, the command imports every calendar that has a directory. Set the directory with calendar create --path, calendar update --path, or a [[calendars]] entry in config.toml. With --calendar, the command imports only that calendar from its directory. Run the command after each pass of the sync tool, for example from a timer.

The JSON output is one object when the command names a path or a calendar. It is an array in the batch mode without both. The batch text output names each calendar.

The command follows a symbolic link at the root of a stored directory. A vdirsyncer layout often links the collection directory to a mounted drive. A stored directory that holds no .ics file imports nothing and succeeds without a warning.

In the batch mode, a stored directory that does not exist yet imports nothing and gives a warning. A timer job then does not fail before the first sync. With --calendar, a missing directory is an error. Another failure in one calendar becomes an error on stderr, and the other calendars still land.

Examples:

# Every calendar with a directory
chroncal ical import

# One calendar from its directory
chroncal ical import --calendar Fastmail

An event UID that another calendar holds gets its own copy in the import calendar. A todo or a journal cannot have a copy, because its UID is unique across all calendars. The import never moves such an item and never writes it into another calendar:

  • When the UID lives in another local calendar, the import skips the item. A warning names both calendars, and the summary prints Skipped N item(s) that live in another calendar. The JSON output has skipped_todos and skipped_journals. A skipped item is not a failure, so a directory import from a timer does not fail. After todo update --calendar, the old directory still holds the file, and each run skips it.
  • When the UID lives in another synced calendar, live or in the trash, the import refuses the item, and the item counts as failed. The warning names the calendar. The other items of the file still land.
  • The rules take any row of the UID: an override of a series, or a master with overrides, follows the calendar of the other rows. The import then never splits a series.

Imports have size limits to reduce resource exhaustion from untrusted calendar data. chroncal ical import rejects .ics payloads larger than 8 MiB. It also rejects inline base64 attachments larger than 1 MiB decoded. The limit applies to each file, not to a whole directory.

The export aborts when one relation read fails. It writes no file, so no incomplete backup exists. Pass --skip-unreadable to continue past records with unreadable relations. The file then carries a comment header that names each incomplete record. The command also lists those records on stderr.

Sync
chroncal sync run       [--calendar NAME] [--account NAME] [--conflict MODE]
chroncal sync status
chroncal sync conflicts [--resolved]
chroncal sync resolve   <id> --pick {local,server}
chroncal sync reset     [--calendar NAME]

Sync runs on each connected calendar on its own. Calendars that share an account reuse its credential and sync one after another. Distinct accounts can sync at the same time. Use chroncal account calendars list and chroncal account calendars add to inspect and import remote collections. Use the calendar remote flags above when you attach one known URL.

When you attach a local calendar, the next sync uploads its items. Some items stay local:

  • A read-only collection gets no item.
  • A collection that does not support a component (for example VTODO) gets no item of that component.
  • An override without its series stays local.

sync status shows one line for each connected calendar. last_sync is the time of the last clean sync. last_attempt is the time of the last sync, clean or not. last_error is the error of the last sync, or - when it was clean. A failed sync keeps last_sync, so you can see when the last clean sync was. The TUI calendar detail shows that time below the error. In JSON, a value in last_sync_at does not mean that the last sync was clean. Read last_sync_ok for that: it is true only when a clean sync happened and no error followed it. A local calendar has no last_sync_ok. A link to another account, collection, server, user, or authentication type clears last_sync_at, last_attempt, and last_error.

Narrow a run with --calendar NAME (one local calendar) or --account NAME (every calendar linked to one CalDAV account). The two flags are mutually exclusive. An account with no linked calendars is a clean no-op.

Conflict handling:

  • Every write fires an opportunistic push. A delete and a restore are writes too. When the server answers 412, chroncal records a conflict and keeps the local edit. The edit stays dirty. The command prints a note on stderr. The note tells you to run chroncal sync conflicts.
  • The conflict strategy (server-wins or prompt) governs full sync passes only. The default is prompt; set server-wins in config.toml under [sync] to adopt the server body automatically. A full pass is sync run, the background service, or a TUI sync. A server-wins pass adopts the server body, clears the dirty flag, and marks the conflict resolved as server-auto. A prompt pass records the conflict and skips that row until you resolve it.
  • A resolved conflict keeps its row. Run chroncal sync conflicts --resolved to list resolved conflicts. Run chroncal sync resolve <id> --pick local on a resolved conflict to restore the recorded local version.
  • One exception applies to a move conflict. A new move of the item drops the resolved move conflicts of the earlier move in the same account. Their recorded versions describe a move that no longer exists.
  • Some servers keep a UID unique in the whole account (for example, iCloud). Such a server refuses the create of a moved copy while the source object exists. Sync then deletes the source object and sends the create again. When the server still refuses the create, sync waits a short time and sends it again, at most two more times. After that, the next sync tries again.
  • A create never overwrites an object on the server. When the collection holds an object at the same href, sync records a conflict and keeps both versions. This can occur on the first sync after you attach a local calendar.
  • A remote delete can meet a local edit that sync did not send yet: an edit, a restore from the trash, or a move back into the calendar. The local edit wins. Sync creates the item again on the server and prints a note. A server-wins pass keeps the remote delete, and the item goes to the trash. A read-only calendar and an item with an open conflict also keep the remote delete.
  • A move between two calendars of one account can meet a remote edit. The item changed on the server in the source calendar before sync deleted it there. Sync then records a move conflict on the target calendar, and the source object stays on the server. When the server refuses the create of the copy, the moved copy stays unsent. When the create already landed, the copy is on the server in the target calendar. A cancel then deletes that copy on the next sync. A server-wins pass does not pick a side for you. Sync closes a move conflict by itself in three cases only, and an unlink of the source calendar ends it as detached. The conflict becomes abandoned when the moved copy is gone. A failed cancel becomes cancelled when a pull of the source brings the server version. The move becomes finished when the source object is gone from the server. The sync conflicts line shows moved-from-calendar=<id> and move=<state>. The JSON output has move_source_calendar_id and move_state. The state decides what each pick does:
    • open: no pick ran yet. --pick local completes the move: the next sync deletes the source object and creates the target object. --pick server cancels the move. The pick reads the current source object from the server. The item then goes back to the source calendar with that version. When the move already created a copy in the target calendar, the next sync deletes that copy.
    • local-picked: --pick local ran. The picks work as for open, so a second --pick server still cancels the move until the source object is gone.
    • finished: the source object is gone from the server, so the next sync creates the moved copy. Both picks refuse. Move the item again instead.
    • When the source object is gone and the move is still open, the move cannot be cancelled. No server version exists to bring back. Both picks follow one rule:
      • The target calendar can carry the copy. This is true in three cases. The copy landed on the server already, and it has no unsent edit in a read-only calendar. The target is a local calendar. The target is linked and writable, and the organizer gate does not hold the copy back.
      • Then both picks finish the move and exit with status 0. sync resolve prints the source is gone, so the move finished, with what remains. For example, the next sync creates the moved copy.
      • The -o json output of a finished move has "outcome": "finished", "picked": "none", and a note. No side ran, so picked is none. resolved stays true, because the conflict is closed. A normal pick has "outcome": "resolved" and the side that ran in picked.
      • A cancel-failed move has its rows back in the source calendar already, and they can hold a part of the failed import. When its source object is gone, --pick server refuses and changes nothing. The conflict stays cancel-failed.
      • Then use --pick local. It imports your recorded version over those rows and closes the conflict as cancelled. The source calendar gets no server object, so the next sync creates the item there. A read-only source calendar refuses this pick.
      • This pick asks the server first whether the source object is gone. When the server cannot be reached, the pick refuses and changes nothing. Try again when the server answers.
      • A move can also lose its source half in the database. Then nothing remains to wait for, so both picks finish the move, whatever the target is. When the target calendar cannot create the copy, the item stays only in that calendar locally until the calendar is writable.
      • The target calendar cannot carry the copy. Both picks refuse, and the conflict stays open. Make the target writable, or move the item to another calendar.
    • abandoned: the moved copy is gone (deleted before a pick). Both picks refuse. Restore the copy from the trash and move it again.
    • detached: an unlink of the source calendar ended the move. The source has no pending delete any more, so the move cannot finish. Both picks refuse. Move the item again. A cancel-failed move also becomes detached, because its replay cannot reach a server after the unlink. A sync reset of the source does not end a move. It keeps the pending delete of each move whose copy is live. A sync reset refuses a calendar with an open move conflict, as the target or as the source, and a failed cancel counts. Resolve those conflicts first (chroncal sync conflicts).
    • cancelled: --pick server ran. --pick local restores your recorded version in the source calendar. The cancel records the version of the moved copy first, so the restore keeps your last edit. It does not move the item again. A second --pick server refuses.
    • cancel-failed: the cancel moved the item back, and the import of the server version failed. --pick server runs the import again. --pick local restores your recorded version.
    • --pick local needs the current ETag of the source object. A server that gives no ETag refuses the pick, because the source delete must stay conditional. Pick server, or delete the copy on the server by hand.
    • A move into a local calendar follows the same rules. The conflict then lives on the local calendar.

Stuck resources:

  • Sometimes the server keeps a body that chroncal cannot import for a resource that chroncal already synced. The multiget returns 404, or the body does not parse. Sync then keeps the local copy and tries again on the next run. The full snapshot of a server without sync-collection follows the same rule: one bad body does not stop the import of the other resources.
  • Sync stops the retries after three failed runs, when at least one hour has gone by since the first failure. A frequent background sync then cannot use up the retries on a short server problem. The calendar is then no longer marked as failing. The local copy stays, and the server changes to that resource are not imported.
  • After the stop, a new version of the resource on the server (a new ETag) gets one more attempt. When that attempt fails, the retries stay stopped, and sync does not warn again.
  • chroncal sync status lists each such resource on a stuck href=... line below its calendar. The -o json output lists it under stuck_hrefs. Correct the resource on the server. The next good fetch removes the entry.

Failed pushes:

  • chroncal sync status lists each resource whose last push failed on a push failed uid=... line below its calendar. The line gives the count of failed attempts and the last error. The -o json output lists it under push_failures.

  • An edit of an occurrence that no series owns stays local. This occurs when two calendars hold a live master of its UID. chroncal sync status lists each such UID on an edit not pushed uid=... line, and the -o json output lists it under unowned_edits. The reason is "the item belongs to no series because two calendars hold its master; use the row ID of one series". Delete or move one of the two masters. The next edit of the occurrence then goes to the other series.

  • chroncal sync doctor lists the same two kinds of resources. A failed push shows on a failed push attempt(s); last error: ... line, and an unowned edit shows on a the edit stays local: ... line. It also lists each legacy override: an override in a calendar with no master of its UID, which an older version made on a calendar change. The doctor shows one line for each UID. The line gives the count of rows, with the rows in the trash. It also gives the calendar of the series that owns them, and the reason that the rows stay. When a move can pass, the line gives the chroncal event update <id> --calendar <name> command that moves all the rows there. When a move refuses, the line names the rule that refuses it. Examples are a row of the owner calendar at the same occurrence, a read-only calendar, and an open conflict of the UID. Its -o json items have "state": "push_failure" (with push_fail_count), "state": "unowned", or "state": "legacy_override", and a reason. A legacy_override item also has id, rows, owner_calendar_name, and movable. A movable item has kept_reason and move_command. Another item has move_refusal. A wedged resource shows only as wedged. When the doctor lists no wedged resource, the last line starts with No wedged resources. When it lists other items, that line also says that --push does not apply to them. When it lists wedged resources and other items, the hint says that --push applies to the wedged resources only.

  • On each start, chroncal can move the legacy overrides of a calendar with no account link into the calendar of their series. The move occurs only when all of these conditions are true:

    • Neither calendar has an account link or read-only access.
    • Neither calendar has sync state of the UID: a sync row, a tombstone, an open conflict, or an open move conflict.
    • One live master owns the rows.
    • The calendar of the series holds no row at the same occurrence.

    This move makes no server write. The other legacy overrides stay. chroncal sync doctor lists each UID with at least one live legacy override and a live owner master. It does not list a UID whose master is in the trash, because no series can take its rows then. Restore the series first. Resources that wait:

  • A push can wait for another step. For example, an open move conflict on a third calendar names the source of a move. Sync then keeps the source delete until you resolve that conflict.

  • chroncal sync status lists each such resource on a waiting uid=... on <reason> line below its calendar. The -o json output lists it under waiting.

  • chroncal sync doctor lists it on a waiting on <reason> line. Its -o json items have "state": "waiting" and a reason. A wedged item has "state": "wedged".

  • The reason names the step. Sync lists an entry only while its cause holds. When you resolve the conflict, or the source delete goes out, the entry goes.

  • A wait is no push failure. It does not count as a failed push attempt.

Google Calendar via CalDAV

Google Calendar requires OAuth 2.0. It only exposes VEVENT over CalDAV.

The OS keyring stores credentials by default. chroncal uses OAuth PKCE for installed-app flows. The Google token endpoint also requires the Desktop client client_secret even with PKCE. You need both the client ID and the client secret at setup time. After the first authorization, the keyring stores refresh tokens and the client secret. Later syncs then run with no prompt.

Plaintext fallback warning. Install a keyring provider (for example libsecret + gnome-keyring on Linux) before you use OAuth on a shared host or a host with backups. OAuth keeps a refresh token and the client_secret, so it always needs a store. A password command cannot replace it. On a system with no OS keyring, security.allow_plaintext (or --allow-plaintext) writes credentials to a 0600-mode file under ~/.config/chroncal/. See Credential storage. The mode blocks a casual cat. It does not block backups, filesystem snapshots, or sync tools (Dropbox, iCloud, rsync) that ignore Unix permissions.

  1. Create a Desktop app OAuth client in the Google Cloud Console. Record the client ID and the client secret.

  2. Add https://www.googleapis.com/auth/calendar to the OAuth consent screen. Add yourself as a Test user while the app is in Testing mode.

  3. Enable both APIs on the project. They are separate services:

    gcloud services enable calendar-json.googleapis.com --project=YOUR_PROJECT
    gcloud services enable caldav.googleapis.com         --project=YOUR_PROJECT
    

    The Calendar JSON API alone is not enough. The CalDAV endpoint returns 403 accessNotConfigured until you enable caldav.googleapis.com.

  4. Add the Google account. Provide the client secret with the GOOGLE_CLIENT_SECRET environment variable, or let chroncal prompt for it (echo disabled). The command does not accept the secret as a CLI flag. Flags leak through process listings and shell history.

    GOOGLE_CLIENT_SECRET="GOCSPX-…" chroncal account add "Google" \
      --server "https://apidata.googleusercontent.com/caldav" \
      --username "you@example.com" \
      --auth oauth2 \
      --oauth-client-id "YOUR_CLIENT_ID.apps.googleusercontent.com"
    
  5. The add command imports every usable calendar in the Google CalendarList. It then runs the first sync. This includes delegated, family, holiday, and subscription calendars. Inspect the inventory:

    chroncal account calendars list "Google"
    
  6. Run sync and inspect the status:

    chroncal sync run
    chroncal sync status
    

To connect from the TUI, press C (Shift+C) or choose Calendars in the command palette (/ or Ctrl+K). Activate the bottom + Add action. Then choose Add Account…. Chroncal discovers, imports, and syncs every usable collection for that sign-in. There is no second selection step. Chroncal ignores unsupported collections.

If discovery finds no usable calendars, Chroncal removes the new account. Browser authorization runs inside the app. The same + Add menu creates local calendars and imports iCal files. Remote calendars belong to an account. They do not carry separate credentials.

Account maintenance has one entry point. In Calendars, select a remote account heading and press Enter. Select an account heading in the sidebar to open the same inspector. The inspector shows the provider, server URL, login identity, calendar count, and sync warnings. Actions let you sync now, add or remove calendars, rename the account, sign in again for OAuth accounts, or remove the account.

Manage Calendars… replaces the inspector with the discovered collection list. The calendar hierarchy stays mounted. Calendars already in Chroncal start checked. If you uncheck one, Chroncal removes the local copy after destructive confirmation. If you remove every collection, Chroncal also removes the empty account and its stored credential.

Remove Account… removes the remote links and stored sign-in. It keeps downloaded calendars as local calendars. Calendar metadata edits are inline: name, color, description, owner email, default status, and quiet account/sync context.

Google limitations:

  • Google CalDAV only supports VEVENT. Use Nextcloud, Radicale, or Fastmail for VTODO and VJOURNAL.
  • Google paginates large sync-collection REPORT responses (RFC 6578 §3.6). It returns a 507 marker plus a continuation token. chroncal follows the pages and applies the union. The first sync of a large calendar then pulls every event.
  • If account add lists calendars but the first sync returns HTTP 403, enable caldav.googleapis.com on the Google Cloud project. The Calendar JSON API is not enough.
  • A failed calendar-color PROPFIND does not block event sync. Google colors come from CalendarList. Local Google color edits are written back through CalendarList, not Apple calendar-color.
Free/busy
chroncal freebusy --calendar NAME --from DATE --to DATE [--remote] [--format {text,ical}]

Each bound accepts YYYY-MM-DD, an RFC 3339 timestamp, or a relative date word. Without --remote, freebusy computes busy time from local recurring data. With --remote, it sends a CalDAV free-busy report to the linked remote calendar.

Alarms
chroncal alarm check                          # Fire due alarms (one-shot)
chroncal alarm list                           # List unacknowledged alarms
chroncal alarm dismiss  <state-id>            # Dismiss a fired alarm
chroncal alarm snooze   <state-id> [--for DURATION] [--until-start]
chroncal alarm daemon   [--interval DURATION] # Run alarm checks in a loop (default: 30s)
chroncal alarm missed   [--days N]            # Show missed alarms (default lookback: 7 days)

alarm list and alarm missed cover default alarms as well. See Default alarms.

Attach alarms with --alarm when you create or update events and todos (repeatable). The format is [ACTION:]TRIGGER[:DESC:REPEAT:DURATION:RELATED:ATTENDEES]. ACTION is DISPLAY (default), EMAIL, or AUDIO. TRIGGER is an RFC 5545 duration relative to the start (-PT15M = 15 minutes before) or an RFC 3339 absolute time. Only the trigger is required:

chroncal event add "Standup" --date 2026-06-15 --time 09:00 --alarm "-PT15M"
chroncal event add "Release" --date 2026-06-15 --time 14:00 --alarm "DISPLAY:-PT30M::3:PT5M"  # repeat 3x every 5 min

See chroncal event add --help for the extra fields.

A synced calendar can hold an alarm this app does not fire. A server sends one as a "no reminder" sentinel, and another client sends one with its own action, such as X-APPLE-SOUND. The --alarm flag has no syntax for those actions, so chroncal event update and chroncal todo update keep the stored rows. Without that rule, a routine reminder edit deletes the alarm of the other client from the server.

Pass --clear-foreign-alarms to delete them. Use the flag with --alarm to make the new list the whole list. Use the flag on its own to remove the stored rows and keep the alarms you can state:

chroncal event update 12 --clear-foreign-alarms              # remove them, keep your own
chroncal event update 12 --alarm "-PT30M" --clear-foreign-alarms  # the new alarm is the only one
Default alarms

Default alarms remind you about events without alarms. They suit events that arrive outside chroncal: CalDAV sync, meeting invitations, and .ics imports. Set them with the alarms.default config key:

[alarms]
default = ["-PT30M", "-PT15M", "AUDIO:-PT5M"]
skip_all_day = true

Each entry is a trigger duration, or an action-prefixed trigger. The action prefix is DISPLAY (default) or AUDIO. skip_all_day excludes all-day events. An all-day event starts at local midnight of its date, so a -PT15M trigger fires at 23:45 local time on the day before. A date-only todo DUE uses the same rule. A date-only value is a floating date (RFC 5545), so the rule is the same in every time zone.

Set a per-calendar default with --default-alarm on calendar create or calendar update. This replaces the global list for one calendar. The special value none turns default alarms off for that calendar. --clear-default-alarms removes the per-calendar setting, so the calendar inherits the global list again:

chroncal calendar update Work --default-alarm -PT15M --default-alarm AUDIO:-PT5M
chroncal calendar update Holidays --default-alarm none
chroncal calendar update Work --clear-default-alarms
chroncal calendar create Holidays --default-alarm none

skip_all_day is a global setting. A per-calendar list cannot put all-day events back in.

The alarm engine applies these rules:

  • An event with its own alarm keeps its alarms. Default alarms do not apply.
  • An event with a "no reminder" sentinel (Google's ACTION:NONE) gets no default alarm.
  • A default alarm is local only. It is never written to the event, so it never syncs back to the server.
  • A default alarm fires, snoozes, and dismisses like a stored alarm. It shows in chroncal alarm list with a d prefix (for example [d3]).
  • A snoozed default alarm re-fires only while it stays eligible. The reminder stops when the event gains an alarm, or when the setting for its calendar turns off.

A fired default alarm stays in chroncal alarm list until you dismiss it, even after it stops firing. The text line then says "will not fire again", and the JSON field eligible is false.

Check why a default alarm does not apply

A default alarm that stays silent gives no clue why. chroncal event get reports the effective default alarms for one event, and the reason when the alarm engine does not apply them:

$ chroncal event get 42
Synced meeting
    when:      Tue, Apr 4 2026 09:00 - 10:00
    ...
    reminders: 0
    defaults:  -PT15M (not applied: event_has_alarms)

The reasons are:

  • no_specs: no default alarm is configured in the config file.
  • calendar_opt_out: the calendar set its own list to off.
  • event_has_alarms: the event carries at least one alarm row. A "no reminder" sentinel counts.
  • all_day_excluded: the alarms.skip_all_day setting excludes the event.

-o json gives the same information under the default_alarms key, with specs, source (calendar or global), applied, and suppressed.

Receive notifications

A stored alarm does not fire on its own. Something must run chroncal alarm check on a schedule. Two options:

  1. Background service (recommended): chroncal service install sets up a user-level systemd timer (Linux), launchd agent (macOS), or Scheduled Task (Windows). The unit ticks every minute. No terminal needs to stay open.
  2. Foreground loop: chroncal alarm daemon checks every 30 seconds until you interrupt it. Use this for tests or a tmux session.

With either option in place, a DISPLAY alarm shows a desktop notification at trigger time (15 minutes before the event in the example above). AUDIO alarms also play a sound. EMAIL alarms send mail. See SMTP (for email alarms) and the security.allow_unsafe_alarm_* config options. If nothing appears, check Desktop notification backends.

Service (alarm background service)
chroncal service install              # Install service; syncs CalDAV every 15m by default
chroncal service run                  # Run one background-service cycle now (alias: tick)
chroncal service uninstall
chroncal service status

The installed unit runs chroncal service run every minute. That command fires due alarms. It also runs CalDAV sync when the configured sync interval is due. chroncal service install defaults that interval to 15 minutes. Pass a different interval to change it:

chroncal service install --sync-interval 5m

Set sync.interval in config.toml to change the default for later installs. Pass --sync-interval "" at install time to disable background sync and keep alarm checks.

Global flags

All commands accept -o, --output {text,json} (default: text).

The bare chroncal launch command also accepts --event <id|uid>, --at <RFC3339, YYYY-MM-DD, or a relative date>, and --recurrence-id <RFC3339>. These flags open the TUI on an event. See TUI.

Scripts and LLM use

The CLI is for shells and language models, not only for hand input. The agent-friendly path:

  • Pass -o json (or --output json) on every read or write command. The shape is stable. It omits empty optional fields. Write commands return the new row so a script can capture the id / uid. This also applies to read commands. sync status, sync conflicts, freebusy, and alarm list all emit JSON arrays or objects under -o json. An empty result is [], not prose.

  • Timestamps in JSON are RFC 3339 UTC with a Z suffix (2026-04-21T13:00:00Z). Text mode prints in your local timezone. Only JSON uses UTC so cross-machine comparisons stay honest.

  • event list and event get include attendees in JSON output. A generated occurrence of a recurring series keeps the attendee list of the master event.

  • Check the exit code. 0 means success. A non-zero code means failure. Errors go to stderr, never stdout. cmd -o json | jq … is safe. On failure, stdout is empty.

  • Errors honor -o json. They emit one JSON object on stderr with a code field:

    {"code": "not_found", "error": "event 999 not found"}
    

    Codes are not_found, invalid_input, aborted, or error (catch-all). The error field is the user-facing message. The output strips internal call-chain prefixes (for example get event:). Dispatch on code and show error directly.

  • References accept either the numeric id or the string uid. Commands take --recurrence-id <RFC3339> to address one instance of a recurring series. On event delete, the flag deletes that occurrence.

  • A list with a date range expands each recurring series. In the JSON of event list, todo list, and journal list, each occurrence and each override of the series then has instance_time. The value is the time of the occurrence in UTC RFC 3339. For an event you can pass it to --recurrence-id. To address a stored override of a todo or a journal, use its recurrence_id. Another item has no instance_time.

  • With --include-deleted, a row in the trash has deleted_at in the JSON of event list, todo list, and journal list. The text output puts [trash] before its title.

  • alarm missed -o json gives the age of each alarm in age_seconds. The older age field stays, and it gives the same age in nanoseconds.

  • service status -o json prints one object with os, command, exit_code, and output. The exit code has the meaning of the service manager. For systemctl, 0 is active and 3 is not active.

  • Dates are YYYY-MM-DD. These date flags also accept a relative date word:

    • event add and event update: --date, --end-date
    • todo add and todo update: --due, --start
    • journal add and journal update: --date
    • event list, event search, ical export, todo list, journal list, and freebusy: --from, --to
    • the root command: --at

    The words are today, now, tomorrow, yesterday, a weekday name (next occurrence, today counts), next <weekday> (first occurrence after today, as in GNU date), or a signed offset +Nd, -Nw, +Nm (days, weeks, months). A relative date must resolve to a year from 0000 to 9999. --exception-date-times and --recurrence-date-times (--exdate, --rdate) do not accept relative words. They stay strict because they write RFC 5545 data. YYYY-MM-DD stays the canonical stored form, so scripts that pass explicit dates are unaffected. Times are HH:MM local unless a command accepts --timezone. Durations are Go-style (30m, 1h30m). Some flags also accept RFC 5545 (PT1H30M).

  • If you want plain text (no JSON), pass --compact for a fixed-column table with a header row: ID, date, time, categories, and summary. The table colors itself on a terminal and stays plain when you pipe it. Skip the header with --no-header; after that, the output works with grep and awk. The form is available on event list, event search, todo list, journal list, and calendar list.

# Round-trip: create the event, then read it back
uid=$(chroncal event add "Demo" --date 2026-06-01 --time 09:00 --output json | jq -r .uid)
chroncal event get "$uid" --output json
Destructive operations

event delete, todo delete, journal delete, and calendar delete prompt for confirmation before they destroy data. The prompt is skipped when any of these is true, so scripts can still run:

  • --yes / -y is passed
  • CHRONCAL_ASSUME_YES=1 is set in the environment
  • --output is json (machine-readable means scripted)

In a non-interactive shell without any of the above, the command refuses. It does not auto-confirm in silence.

Soft-delete + restore

Events, todos, and journals use soft-delete by default. The row stays in the database with a deleted_at timestamp so you can restore it later. After a retention window (default 30 days), a background purge hard-deletes rows older than the cutoff.

chroncal event   restore <id|uid>
chroncal todo    restore <id|uid>
chroncal journal restore <id|uid>

chroncal event   purge-deleted [--older-than DURATION] [--yes]
chroncal todo    purge-deleted [--older-than DURATION] [--yes]
chroncal journal purge-deleted [--older-than DURATION] [--yes]

List soft-deleted candidates with --include-deleted on the related list command. The list puts [trash] before the title of each row in the trash. A restore of a live row fails with "is not in the trash". A restore by UID reverses a delete of the UID. When the item is live but one row of it is in the trash, restore that row by its ID. In the TUI, press D to open the mixed "Recently deleted" dialog. The dialog covers all three resource types. r restores the cursor row. x purges it. Space toggles multi-select so you can restore or purge many rows.

A series can have two or more truncations ("This and following") in the trash. Restore the newest truncation first. An older truncation refuses the restore until then, because the newer truncation recorded the rule that the older one wrote. The detail pane of an older truncation shows a "Restore" line with the cutoff of the truncation to restore first. To restore them all, mark each one and restore them together. A restore of marked entries restores them in the order that they need, for example a master before its occurrences. When it stops at an entry, the message gives the count of restored entries.

TUI

Run chroncal with no arguments to launch the interactive terminal UI.

The TUI needs a window of at least 80 columns by 24 rows. A smaller window shows a notice with the minimum size. In a smaller window:

  • Keys and clicks do nothing.
  • esc stops a running sync.
  • ctrl+c opens the quit prompt. A second ctrl+c quits.

Make the window larger to see the calendar again.

The chroncal TUI

Pass --event <id|uid> to jump to the event's day and open its details. Every view starts on that day:

chroncal --event 42
chroncal --event standup-uid --at 2026-04-17T14:00:00Z

--at accepts an RFC 3339 timestamp, YYYY-MM-DD, or a relative date word such as tomorrow. It selects an occurrence of a recurring series. A date selects the first occurrence that starts on that date, or else an occurrence that runs over that date. A date or a timestamp with no occurrence of the series gives an error. A timestamp selects the occurrence that starts at that time. The details show the times of that occurrence, not the series start. When an override replaces the occurrence, the TUI opens the override with its own fields. --recurrence-id also opens a stored override by the series UID. --at requires --event and excludes --recurrence-id.

Views: month, week, day, agenda. Switch with m, w, d, a. Press W to switch the first day of the week between Sunday and Monday. The TUI stores the choice, the same way it stores the view. ui.week_start in config.toml sets the default before a stored choice exists.

The TUI can create, edit, view, and delete events. Event details include alarms, attendees, and attachments. The detail pane of the day dialog also lists the alarms of the selected event. The new-event form selects the default calendar (see calendar set-default). When the default calendar is hidden or does not accept events, the form selects the first calendar by name. Long titles wrap in the event details. Use p to copy event details. Use u to undo a delete, in the main view or in the day dialog.

The sidebar uses quiet, collapsible account sections. There is a separate Local section. Active calendars show an item-colored filled ● circle. Hidden calendars show an outline ○ circle. Space or a click on the circle toggles visibility. Calendar colors stay on calendar rows, not on account headings.

On an account heading, Left/Right collapse or expand the section. Enter opens Account settings. Shift+Up/Shift+Down reorder complete remote-account sections. Local stays first. The same reorder keys move calendars only within their own account.

Hidden state and scroll apply to calendar rows, not to group headings. Read-only imported calendars stay browsable. They reject event edits and deletes.

Calendars opens an account-grouped manager. The calendar hierarchy is on the left. An inspector is on the right. Calendar rows keep visibility (a checkbox) separate from identity (the calendar-color dot). Space or the checkbox toggles the same visibility state as the sidebar circles.

Account headings collapse with Left/Right. Enter opens account settings. The root inspector keeps a calendar Edit… action or an account Account Settings… action at the bottom. Enter or a click on a calendar-row body opens metadata, export, default-calendar, and delete controls. The hierarchy stays mounted. Linked calendar details open account settings without a loss of unsaved calendar edits.

The source list has a bottom + Add action. It opens an anchored menu for New Calendar…, Add Account…, and Import Calendar File or Directory…. Account connection signs in once and adds every usable remote calendar. iCal import accepts one .ics file or one directory of .ics files. It keeps its preview and the selection of a compatible destination. Todo and journal management live in the CLI for now.

A calendar whose last sync failed shows a ⚠ next to it in the sidebar. Open it to see why and to get a fix. See Google Calendar via CalDAV for the OAuth flow.

Sync in the TUI is manual. Press s to sync every connected calendar. The TUI runs no sync timer. For a periodic sync, install the background service. It syncs whether or not the TUI is open:

chroncal service install --sync-interval 15m

See Service (alarm background service). The TUI does not reload rows on a timer. Rows that the background service or the CLI wrote appear when you press s or when you reopen the TUI. s reloads the rows also when no calendar has a connection.

Configuration

Configuration loads in this order of precedence:

  1. Environment variables (prefix CHRONCAL_, e.g., CHRONCAL_DB)
  2. Config file at $XDG_CONFIG_HOME/chroncal/config.toml (or ~/.config/chroncal/config.toml)
  3. Defaults
Config keys
Key Description Default
db Path to SQLite database $XDG_DATA_HOME/chroncal/chroncal.db
product_id iCal PRODID for export -//chroncal//chroncal//EN
ui.theme Built-in TUI theme name under internal/tui/themes/ (system or default; see TUI themes) system
ui.week_start First day of the week in the TUI month view, week view, and mini-calendar (sunday or monday) sunday
ui.list_format Default text format for list and search commands (detail or compact, in any case). --compact and --detail override it. An unknown value stops only the list and search commands. detail
ui.event_list_days Number of days in the default forward window for event list. A value less than 1 stops event list when you do not pass --to. 30
ui.confirm_quit Set to false to make q and ctrl+c quit at once. The default true shows the "Quit chroncal?" prompt first. true
keys.<action> Keys for one TUI action, as a list. See TUI key bindings. Only the config file sets this table. (built-in keys)
calendars Declared local calendars, as an array of tables. See Declared calendars. Only the config file sets this table. (empty)
soft_delete.purge_days Days to keep soft-deleted rows before the background purge. 0 disables automatic purge. 30
alarms.default Default alarms for events without alarms, as a list of trigger specs ("-PT30M", "AUDIO:-PT5M"). See Default alarms. Never syncs back to the server. (empty — off)
alarms.skip_all_day Exclude all-day events from default alarms. false
sync.interval Minimum interval between background CalDAV syncs that chroncal service run performs. service install defaults to 15m when this is unset. (unset — no sync unless the installed service sets CHRONCAL_SYNC_INTERVAL)
sync.conflict_strategy Default conflict-resolution mode when you do not pass sync run --conflict prompt
sync.http_timeout Time limit for one CalDAV request, as a Go duration (for example 10m). Raise it for a server that answers a large multiget slowly. Lower it to fail faster against a hung server. Each sync deadline derives from this value, so a larger value also gives each sync pass more time. An unusable value gives a warning, and chroncal keeps the default. 5m
security.allow_plaintext Permit the plaintext credential store when no OS keyring is available. See Credential storage. Off by default. false
security.allow_unsafe_alarm_audio_attach Allow AUDIO alarms to attach arbitrary URIs. Off by default. false
security.allow_unsafe_alarm_email_attendees Allow EMAIL alarms to send to unverified attendee addresses. Off by default. false

Every key except the [keys] table and the [[calendars]] table is also available as an environment variable (CHRONCAL_ prefix, dots become underscores). Examples: CHRONCAL_UI_THEME, CHRONCAL_UI_WEEK_START, CHRONCAL_UI_LIST_FORMAT, CHRONCAL_UI_EVENT_LIST_DAYS, CHRONCAL_UI_CONFIRM_QUIT, CHRONCAL_SOFT_DELETE_PURGE_DAYS, CHRONCAL_SYNC_INTERVAL.

Declared calendars

The [[calendars]] table in config.toml declares the local calendars. A tool such as home-manager can then generate the calendar list from one source. Each entry has these keys:

Key Description
name The calendar name. Required. It ties the entry to the stored calendar.
color The hex color of the calendar, as #RRGGBB.
description The calendar description.
path The directory of .ics files that feeds the calendar. The value must be absolute or start with ~/.
[[calendars]]
name = "Fastmail"
path = "~/calendars/fastmail"

[[calendars]]
name = "Work"
color = "#0F766E"
description = "Office"

chroncal applies the entries on every launch:

  • It creates a calendar when no calendar with that name exists.
  • It updates the stored color, description, or path when the entry gives a different value.
  • It keeps the stored value of a key that the entry omits, so a short entry does not reset a field that you set from the CLI or the TUI.
  • It never deletes a calendar. A declared calendar returns on the next launch, so a delete, a rename, or a link to a CalDAV account refuses a declared calendar in the CLI and in the TUI. Remove the entry from the file first.
  • It matches the name like the --calendar flag: an exact match wins, then one match in another case, so fastmail adopts a stored Fastmail.
  • A declared color, description, or path returns on the next launch after a change from the CLI or the TUI. The launch prints a warning that names the field when it replaces a stored value. A cleared value returns without a warning. Change the value in the file.
  • Each path needs its own tree. The import reads a directory and its subdirectories, so a path inside or above the path of another calendar is an error.

An entry without a name, two entries with one name, a color that is not #RRGGBB, or a relative path stops every command with an error. Fix the file, then run the command again.

The table declares local calendars only. chroncal skips an entry whose name belongs to a calendar of a CalDAV account, or whose name matches several calendars in another case. The skip gives a warning on stderr and a line in the log file. A calendar with a path cannot take a CalDAV link. A CalDAV account holds a credential, so it stays in chroncal account add. To feed a calendar from a CalDAV server through the table:

  1. Sync the collections to a directory with a tool such as pimsync.
  2. Declare the directory with path.
  3. Run chroncal ical import after each sync pass.
TUI themes

The TUI ships two built-in themes:

  • system (default) — Chrome (text, borders, surfaces, dim text) inherits the terminal ANSI palette (color0..15). The TUI then follows themed terminal setups such as Omarchy, Catppuccin, Gruvbox, Tokyo Night, or any setup that paints the standard 16 colors. The row-selection highlight adapts to the live terminal background via OSC 11. Accent colors (buttons, badges, "today", errors) sit on a fixed Dracula palette. Text-on-accent contrast then stays guaranteed across themes.
  • default — Fixed designer palette (violet primary, emerald accent) with light and dark variants. This theme ignores the terminal palette. Pick this if you do not theme your terminal, or if you want the same look on every machine.

Override with ui.theme = "default" in config.toml or CHRONCAL_UI_THEME=default.

TUI key bindings

The [keys] table in config.toml changes the keys of the main TUI actions. Each entry is a list of keys. The list replaces the built-in keys of that action. The help dialog, the footer, and the command palette show the first key of the list. An action without an entry keeps its built-in keys.

[keys]
quit = ["ctrl+q"]
week_view = ["v"]
palette = [":", "ctrl+k"]

Write a key with its Bubble Tea name, for example "x", "ctrl+k", "tab", "shift+tab", "f1", or "space". An uppercase letter such as "W" also matches "shift+w".

Action Description Default
quit Quit from the main view q
month_view Show the month view m
week_view Show the week view w
day_view Show the day view d
agenda_view Show the agenda view a
sidebar Show or hide the sidebar \
week_numbers Show or hide the week numbers #
week_start Change the first day of the week W
create Create an event. The key also works in the agenda and in the day dialog c
switch_focus Move the focus from the main view into the sidebar. A key with shift (such as shift+tab) enters at the last stop. Every other key enters at the first stop. In the sidebar, tab and shift+tab move between the stops and leave at the ends. Any other key of this action goes back to the main view tab, shift+tab
help Open the help dialog ?
palette Open the command palette /, ctrl+k
calendars Open the calendar manager. The key also closes it C
sync Sync all calendars s
undo Undo the last delete u
trash Open the recently deleted list D

Chroncal checks the table when the TUI starts. Each of these conditions stops the TUI with an error. The CLI commands, sync, and the alarm daemon do not read the table, so they keep working:

  • The table names an unknown action.
  • An action has an empty list or an empty key.
  • A key name has an uppercase letter that Bubble Tea never gives, for example "Ctrl+Q" or "Tab". Write the name in lowercase. A single uppercase letter ("W") and "shift+W" stay valid.
  • Two actions use the same key. Chroncal compares the keys after the table replaces the defaults. To swap two keys, set the two actions together.
  • An action uses a key that a view or a dialog uses. See the list below.

An action key has priority over the keys of a view. Thus chroncal rejects these keys:

Part of the TUI Actions Rejected keys
All parts All actions esc, ctrl+c
Month, week, day, and agenda views All actions arrows, h, j, k, l, [, ], pgup, pgdown, t, enter, space, e, ctrl+d, x, delete, o
Sidebar All actions arrows, h, j, k, l, shift+up, shift+down, K, J, space, enter, [, ], t
Sidebar stops All actions but switch_focus tab, shift+tab
Trash view help r, x, delete, X, space, A
Day dialog help, create arrows, h, j, k, l, tab, shift+tab, enter, space, esc, q, pgup, pgdown, ctrl+b, ctrl+f, home, end, e, ctrl+d, x, delete, y, n, m, p
Event dialog help the same keys as the day dialog
Help dialog help esc, q, up, k, down, j, pgup, pgdown, space, home, g, end, G
Calendar manager calendars arrows, h, j, k, l, shift+up, shift+down, K, J, tab, shift+tab, enter, space, esc, q, a

The rejected keys of a part never include the default key of an action that does not work in that part. For example, the calendar manager uses a, but chroncal accepts a for agenda_view, because that action does not work in the calendar manager.

The table does not change these keys:

  • The navigation keys of the month, week, day, and agenda views (arrows, hjkl, [, ], t, enter). The help dialog and the footer show them as groups, and the four views share them.
  • The keys inside dialogs, forms, the sidebar, the command palette, and the trash list.
  • ctrl+c (force quit) and esc.
SMTP (for email alarms)

Configure with environment variables or config.toml:

[smtp]
host = "smtp.example.com"
port = 587
username = "you@example.com"
password = "app-password"
from = "you@example.com"

Or via environment: CHRONCAL_SMTP_HOST, CHRONCAL_SMTP_PORT, CHRONCAL_SMTP_USERNAME, CHRONCAL_SMTP_PASSWORD, CHRONCAL_SMTP_FROM.

To keep the SMTP password out of the config file, set smtp.password_cmd or CHRONCAL_SMTP_PASSWORD_CMD:

[smtp]
host = "smtp.example.com"
password_cmd = "pass show smtp/example"

smtp.password and smtp.password_cmd are mutually exclusive. Chroncal rejects a config file that sets both.

Command-retrieved passwords

Chroncal can read a password from a command at the time of use. The password stays in your password manager. Chroncal stores the command only.

Two settings use this feature:

  • --password-cmd or CHRONCAL_PASSWORD_CMD for a CalDAV basic-auth password
  • smtp.password_cmd or CHRONCAL_SMTP_PASSWORD_CMD for the SMTP password
chroncal account add "Work server" \
    --server https://cal.example.com/dav/ --username alice --auth basic \
    --password-cmd "pass show caldav/work"

chroncal account credentials "Work server" --password-cmd "pass show caldav/work"

The rules for a password command are:

  • Chroncal runs the command through the system shell.
  • The secret is the first line of the standard output. Chroncal discards each later line, because pass prints metadata after the password.
  • Chroncal discards the standard error. A noisy command cannot damage the TUI display.
  • The deadline is 30 seconds. A command that is too slow gives an error.
  • An empty first line gives an error.
  • The store holds the command, not the secret. Chroncal runs the command at discovery and at each sync.
  • A password command needs no OS keyring and no --allow-plaintext. See Credential storage.
  • Write a command that gets the password from your password manager. Do not put the password in the command text. Chroncal stores the command, so a password in the command text becomes a password on the disk.

A password and a password command are mutually exclusive. Every write path rejects the pair.

Chroncal reads a basic-auth secret from these sources, in this order:

  1. The --password-cmd flag
  2. The CHRONCAL_PASSWORD_CMD variable
  3. The CHRONCAL_PASSWORD variable
  4. The interactive prompt

A command source plus CHRONCAL_PASSWORD is an error.

In the TUI, the Add Account form and the Update Credentials dialog show a Password cmd field next to Password. Fill one field, not both. Bearer auth and OAuth ignore the command field.

Desktop notification backends

chroncal alarm check records fired alarms even in headless environments. DISPLAY and AUDIO notifications still need an OS notification backend. On Linux that backend is a D-Bus notification daemon. GNOME and KDE include one. Lighter setups can use a standalone daemon such as mako or dunst.

On macOS and Windows (toast notifications), they work with no extra setup. On a minimal container or an SSH session with no desktop tools, notification delivery can fail. The alarm is still detected and listed by chroncal alarm list. Sound playback on Linux uses paplay (with aplay as fallback). macOS uses afplay. Windows has no sound-file playback, so AUDIO alarms show the toast with a system beep.

Data storage

The database is a single SQLite file:

  • Linux: ~/.local/share/chroncal/chroncal.db
  • macOS: ~/Library/Application Support/chroncal/chroncal.db

Override with CHRONCAL_DB or the db config key.

Migrations run on startup. WAL mode is on for better concurrency.

Background jobs that run while the TUI owns the terminal write logs to a file, not to the screen. The soft-delete purge writes outcomes and failures to $XDG_STATE_HOME/chroncal/chroncal.log. The Linux default is ~/.local/state/chroncal/chroncal.log. On macOS the state directory is ~/Library/Application Support. The file grows by at most a few lines per day. The program does not rotate it.

iCal compatibility

chroncal aims for complete RFC 5545 compliance. Current coverage:

  • VEVENT: 30/31 properties (RSTATUS excluded, iTIP-only)
  • VTODO: 31/32 properties (RSTATUS excluded, iTIP-only)
  • VJOURNAL: core component import/export and CalDAV sync support
  • VALARM: 7/7 properties, plus RFC 9074 UID support
  • ATTENDEE/ORGANIZER: all 11 parameters
  • VTIMEZONE: round-trip fidelity
  • VFREEBUSY: local compute and export, plus remote CalDAV query support

Import from Google Calendar, Apple Calendar, Thunderbird, or any RFC 5545-compliant source. Export produces standards-compliant .ics files.

For safety, chroncal applies size limits to untrusted imports and inline attachments. It applies the limits before it stores the data locally or sends the data to linked CalDAV servers.

CalDAV interoperability

Live interoperability QA ran against Nextcloud CalDAV with:

  • VEVENT: create, update, delete, recurrence, timezone, conflict resolution
  • VTODO: create, update, delete, recurrence, duration/start semantics, conflict resolution
  • VJOURNAL: create, update, delete, recurrence, conflict resolution
  • VALARM: round-trip sync on VEVENT and VTODO, with repeated alarms

Nextcloud does not expose a VJOURNAL collection by default. chroncal works with a dedicated CalDAV calendar created with supported-calendar-component-set = VJOURNAL.

Omarchy

If you use Omarchy, Chroncal can live on the menu bar and in the launcher.

Menu bar

Chroncal Bar is an Omarchy plugin. It shows the current or next event on the bar. Left click opens the agenda. Middle click opens the next event URL. Right click refreshes.

Chroncal Bar showing the current event on the Omarchy menu bar

Chroncal Bar agenda grouped by day

Event details in Chroncal Bar

Install Chroncal first. Then add the plugin:

omarchy plugin add https://github.com/DouglasdeMoura/chroncal-bar.git --enable
omarchy bar move douglasdemoura.chroncal-bar --section right --after omarchy.tray

The second command is optional. It places the widget beside the tray.

Chroncal Bar talks to the Chroncal CLI. Recurrence authoring, CalDAV accounts, alarms, and the rest of Chroncal stay in the TUI.

Launcher tile

Omarchy has a built-in command that turns a terminal app into a launcher tile. You do not have to write a .desktop file by hand. Point it at the chroncal icon. Then find the tile with SUPER + SPACE:

omarchy tui install chroncal chroncal float \
  https://raw.githubusercontent.com/DouglasdeMoura/chroncal/master/assets/chroncal-512.png

The four arguments are name command window-style icon-url. float opens chroncal in a centered floating window (Omarchy's TUI.float window rule). Pass tile instead to tile it like a normal window. The launcher runs chroncal through xdg-terminal-exec. It opens in the terminal that you configured. Nothing is hardcoded.

The icon is downloaded into ~/.local/share/applications/icons/. It still works after the command finishes.

If you cloned the repo, point at the local vector master instead for a crisp icon at any size. The launcher references the file in place, so keep the file:

omarchy tui install chroncal chroncal float "$PWD/assets/chroncal.svg"

Remove the launcher later with omarchy tui remove chroncal.

Desktop icon

chroncal ships an application icon under assets/. The set is a vector master (chroncal.svg) plus raster PNGs from 16px to 512px. chroncal is a terminal app. You normally launch it by typing chroncal (or a shell alias), like lazygit or lazydocker. Use the icon when you want a graphical launcher tile.

Other launchers (walker, rofi, GNOME, KDE)

On any other freedesktop setup, register the icon with a .desktop entry by hand:

# Install the icon into your user icon theme
install -Dm644 assets/chroncal.svg \
  ~/.local/share/icons/hicolor/scalable/apps/chroncal.svg

# Create a launcher entry that opens chroncal in your terminal
cat > ~/.local/share/applications/chroncal.desktop <<'EOF'
[Desktop Entry]
Type=Application
Name=chroncal
Comment=Terminal calendar
Exec=alacritty -e chroncal
Terminal=false
Icon=chroncal
Categories=Utility;Calendar;Office;
EOF

Swap alacritty for your terminal of choice (ghostty, kitty, foot, …). The icon uses a deep petrol tile. That color keeps the silhouette visible against dark wallpapers such as the ones Omarchy ships. The icon stays readable in the launcher. It does not fade into the background.

Contribute

See CONTRIBUTING.md for development setup, tests, and code conventions.

License

MIT - Douglas de Moura

Directories

Path Synopsis
cmd
chroncal command
Command chroncal is a terminal calendar, todo, and journal manager.
Command chroncal is a terminal calendar, todo, and journal manager.
internal
app
fileid
Package fileid identifies a file independently of the open path.
Package fileid identifies a file independently of the open path.
fsutil
Package fsutil holds small file system helpers that more than one package uses.
Package fsutil holds small file system helpers that more than one package uses.
hydrate
Package hydrate collapses the per-relation "load, assign, record error" blocks that the event, todo, and journal Hydrate and HydrateBestEffort methods share.
Package hydrate collapses the per-relation "load, assign, record error" blocks that the event, todo, and journal Hydrate and HydrateBestEffort methods share.
icaltransfer
Package icaltransfer implements the parse, validate, and import pipeline behind the `chroncal ical import` CLI.
Package icaltransfer implements the parse, validate, and import pipeline behind the `chroncal ical import` CLI.
maintenance
Package maintenance holds background jobs.
Package maintenance holds background jobs.
recurset
Package recurset parses the recurrence set of a master (RRULE, RDATE, and EXDATE) and tests whether a recurrence ID names an occurrence.
Package recurset parses the recurrence set of a master (RRULE, RDATE, and EXDATE) and tests whether a recurrence ID names an occurrence.
secretcmd
Package secretcmd runs a user-supplied command and reads one secret from its standard output.
Package secretcmd runs a user-supplied command and reads one secret from its standard output.
softdelete
Package softdelete holds reversible-delete logic that the event, todo, and journal services share.
Package softdelete holds reversible-delete logic that the event, todo, and journal services share.
synclock
Package synclock serializes sync and account lifecycle changes.
Package synclock serializes sync and account lifecycle changes.
termcolor
Package termcolor holds the ANSI SGR palette of the CLI text output and the helper that applies it.
Package termcolor holds the ANSI SGR palette of the CLI text output and the helper that applies it.
trash
Package trash joins soft-deleted rows from the event, todo, and journal services into one "Recently deleted" view.
Package trash joins soft-deleted rows from the event, todo, and journal services into one "Recently deleted" view.
tui
tui/oklch
Package oklch converts between sRGB and OKLCh.
Package oklch converts between sRGB and OKLCh.
uidmove
Package uidmove holds the calendar-move rules that the event, todo, and journal services share (issue #828).
Package uidmove holds the calendar-move rules that the event, todo, and journal services share (issue #828).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL