carbonian.org / manual pages
CARBONIAN-WIDGET(7) Carbonian Manual CARBONIAN-WIDGET(7)

carbonian-widget - Carbonian's widget programs and quick settings panel: an overview

carbonian-widget-about [--once]
carbonian-widget-calendar [--once]
carbonian-widget-glance [--once]
carbonian-widget-nowplaying [--once]
carbonian-widget-todo [--once]
carbonian-widget-weather [--once]
carbonian-quick-settings [--once]

The package carbonian-widget holds the programs that run in the panes of the widgets screen (carbonian-widgets(1), laid out by widgets.conf(5)) and the quick settings panel (carbonian-quick(1)). Each is a small binary of its own, not one multi-call binary: each is updated, named in ps(1) and pgrep(1), and fails on its own. They share one library.

Each draws in its terminal pane with the terminal's 16 ANSI colours, so the palette (carbonian-palette(1)) decides them. A frame is written line by line, only the lines that changed, in one synchronized update; a change of the pane's size (SIGWINCH) draws it whole again.

While their panel is hidden they sleep with no timer: they keep the compositor's watch connection open (carbonian-ctl(1)) and wake when the panel is shown again. With a shell older than watch they ask its state once a second while hidden; with no answer at all the panel counts as shown. The widgets watch the panel widgets, the quick settings the panel quick.

A card about this computer: the system's versions, the model, the chip, the graphics, the kernel, the network, and the updates that wait.
The month with today lit and the days with something planned in bold, then what comes in the next 14 days, from calcurse(1).
The battery, the temperature, the memory, the disk, the uptime and the load, in a few lines.
What an MPRIS player plays now, its progress, and keys to play, pause and skip.
The pending Taskwarrior tasks (task(1)), with keys to add, mark done and delete them.
The weather from wttr.in for a place the user sets.
The quick settings panel: tiles, the volume and brightness sliders, and the actions log out, sleep, restart and power off.

The paths /usr/lib/carbonian/widget-about, widget-calendar, widget-glance, widget-nowplaying, widget-todo, widget-weather and /usr/lib/carbonian/quick-settings are shell scripts that start these programs, kept for the widgets.conf files that name them.

A widget is a line of widgets.conf(5): its pane's name, its share of the column, and the command, for example

calendar   34%    /usr/bin/carbonian-widget-calendar

carbonian-widgets(1) starts it in its pane and starts it again if it exits. A widget exits when its pane is gone.

Each program sets its name (PR_SET_NAME, which the kernel cuts to 15 bytes) to its own name without carbonian-: widget-about, widget-calendar, widget-glance, widget-nowplaying, widget-todo, widget-weather, quick-settings. This is the name ps(1), top(1) and pgrep -x show; the full name would be cut to the same 15 bytes for every widget.

Each program takes the same options:

Draw one frame for the terminal's size and exit (COLUMNS and LINES when standard output is not a terminal). The panel's state is not asked and no key is read.
Print the program's name and version, and exit.

Any other argument is an error: the usage is printed and the exit status is 2.

The compositor's control socket (default $XDG_RUNTIME_DIR/carbonian-shell.sock).
The size drawn for when standard output is not a terminal.

carbonian-widget-about(1), carbonian-widget-calendar(1), carbonian-widget-glance(1), carbonian-widget-nowplaying(1), carbonian-widget-todo(1), carbonian-widget-weather(1), carbonian-quick-settings(1), widgets.conf(5), carbonian-widgets(1), carbonian-quick(1), carbonian-clock(1), carbonian-ctl(1), carbonian(7)

2026-11-03 Carbonian