Home

Awesome

<!-- SPDX-FileCopyrightText: 2021-2023 Birger Schacht <birger@rantanplan.org> SPDX-License-Identifier: MIT --> <div align="center" markdown="1">

carl

carl is a calendar for the commandline. It tries to mimic the various cal(1) implementations out there, but also adds enhanced features like colors and ical support.

If you find any bugs or have ideas for additional features, please don't hesitate to create a bug report or a feature request on codeberg or github.


<table style="table-layout: fixed; width: 100%;"> <tr><th markdown="1">

Default output of carl

</th><th markdown="1">

carl output with custom colors

</th></tr> <tr><td markdown="1">

Screenshots of default carl

</td><td markdown="1">

Screenshot of carl with custom colors

</td></tr> <tr><th markdown="1">

carl output with events<br/>from ical highlighted

</th><th markdown="1">

carl output with rainbow<br/>colored weekdays

</th></tr> <tr><td markdown="1">

Screenshot of carl with ical events highlighted

</td><td markdown="1">

Screenshot of carl in rainbow colors with ical events highlighted and current date striken through

</td></tr> </table> </div>

Installation

cargo install carl

Commandline flags

Commandline options

Configuration file

The configuration file is located XDG_CONFIG_DIRS/carl/config.toml or XDG_CONFIG_HOME/.carl/config.toml (the latter has precedence). It can be used to define the name of a themefile as well as one or more icalfiles.

A sample configuration file is located in data/config.toml.

Ical Files

Icalfile listings contain paths to icalfiles and can be combined with their own styledefinitions. All the events from those icalfiles are then highlighted using either the IsEvent property (see below) or using the style defined togehter with the ical listing.

When using the -a or --agenda switch, the event summary is displayed below the calendar in a bullet list, with the bullet also highlighted with the corresponding style.

<div align="center" markdown="1">

Screeshot of carl with agenda

</div>

Icalfile listings can be specified using the [[ical]] setting:

[[ical]]
file = "/home/user/birthdays.ics"
stylenames = ['FGPurple']

If the file setting points to a directory, carl uses all the files in the directory it can parse.

Themefile

Themefiles contain listings of date properties together with styledefintions.

The name of a theme is simple specified using the theme = setting:

theme = "default"

The themefile is read from XDG_CONFIG_DIRS/carl/<themename>.toml or XDG_CONFIG_HOME/.carl/<themename>.toml (the latter has precedence).

Styles

Themefiles and Icalfile listings can contain custom style settings. A style changes how a specific date in the calendar is displayed. A style consists of a list of stylenames and optionally a weight and a styletype ('Dark' or 'Light'). If no styletype is set, the style is effective in either case. The various possible stylenames are listed at the bottom.

Example:

stylenames = ['Dimmed']
weight = 10
styletype = 'Dark'

Themefile

A themefile consists of a collection of datestyles:

Datestyles

A datestyle consists of a list of properties of a date and a style. The date has to fullfill all of the properties for the style to be applied.

Example:

[[date]]
properties = ['CurrentDate']
stylenames = ['FGRed']
weight = 3
styletype = 'Light'

Possible properties

A sample theme file is located in data/default.theme.

Stylenames

Styles

Foreground color names

Background color names

Multiple styles and colors can be combined using lists: ["Bold", "FGRed", "Underline"]