carbonian.org / manual pages
CARBONIAN-CLOCK(1) Carbonian Manual CARBONIAN-CLOCK(1)

carbonian-clock - a big-digit clock for a terminal pane

carbonian-clock [--once] [--panel NAME] [--format 24h|12h] [--seconds yes|no] [--date yes|no] [--date-format FORMAT] [--size auto|large|small|text] [--color COLOUR]

The "time" widget of the widgets panel (widgets.conf(5)): the time in large digits drawn with block characters, centred in the terminal and as large as it fits, with the date under it, in the locale's words, when there is room. The digits are in one of the terminal's 16 colours (the palette's accent, ANSI magenta, by default), so a carbonian-palette set recolours them without a redraw. A change of the terminal's size (SIGWINCH) draws them again at the new size. Keys typed into its pane are read and dropped.

It writes to the terminal only when the text it shows changes: one timer on the wall clock wakes it at the next minute (or second, with seconds on), so a suspend or a change of the clock cannot leave it late. With --panel NAME it keeps the compositor's watch connection open (carbonian-ctl(1)): while that panel is hidden the timer is off and nothing wakes it, and the moment the panel opens it draws the time and reads its settings again. Without the compositor's socket, or with a shell older than watch, it keeps its timer alone. A change of /etc/localtime is seen when the panel opens.

Print one frame for the terminal's size (COLUMNS and LINES when standard output is not a terminal) and exit, in colour only on a terminal.
The compositor's panel the clock is in (widgets): it sleeps while that panel is hidden. Without it the clock keeps its timer.
--KEY VALUE
A key of clock.conf(5), which wins over its files: --format, --seconds, --date, --date-format, --size, --color (also written --key=value).

The compositor's control socket (default $XDG_RUNTIME_DIR/carbonian-shell.sock).
The time zone and the language of the date, as for any program.
With --once, the time to show, in seconds since 1970 (for tests).

/etc/carbonian/clock.conf
~/.config/carbonian/clock.conf

time 20% /usr/bin/carbonian-clock --panel widgets
carbonian-clock --once --seconds yes

clock.conf(5), widgets.conf(5), carbonian-ctl(1), carbonian(7)

October 2026 Carbonian