carbonian - a Wayland and tmux centred Linux distribution
Carbonian is a Linux distribution based on Debian 13 (trixie),
built around tmux and a compositor of its own. It is Wayland only (no X11
applications unless one is evaluated case by case), collects no telemetry
(the hardware survey is opt-in: carbonian-survey(1)), and is built
once per architecture, with features switched on by what the machine has. It
is published as private Debian archives for x86-64 and for the Raspberry Pi
2 (armhf, rebuilt for Cortex-A7), which stays supported even where parts
cannot run.
- carbonian-shell(1)
- The compositor, written in C on wlroots. It draws one full-screen
terminal, a foot window attached to the tmux session carbonian, and
docks graphical applications into the panes of that session. A space is a
tmux window; moving between spaces slides the screen. Gestures use three
fingers on a touchpad. The login screen is the same program in greeter
mode (carbonian-greeter(1)), and carbonian-session(1) starts
the session after the login.
- Panels
- The drawer, the widgets, the quick settings, the launcher, the hot spot
and the hardware monitor are terminals on tmux sessions of their own
(named drawer, widgets, quick, launcher,
hotspot and monitor), which the compositor slides over the
screen. A shell script per panel starts the session and asks the
compositor to show it: carbonian-drawer(1),
carbonian-widgets(1), carbonian-quick(1),
carbonian-launch(1), carbonian-hotspot(1),
carbonian-monitor(1). The launcher's picker is
carbonian-launcher(1) (Rust, nucleo), which sleeps while the panel
is hidden. A program that exits in a panel is started again by
carbonian-respawn(1).
- The control socket
- carbonian-shell(1) listens on
$XDG_RUNTIME_DIR/carbonian-shell.sock; carbonian-ctl(1)
sends it one line and prints the answer. Everything the quick settings
change, and everything that can be done from a script, goes through
it.
- The quick settings
and
- carbonian-tweaks(1) The quick settings are a panel of tiles (Wi-Fi,
palette, screens, night light, colour filter, style, ...). Its
"more" action opens carbonian-tweaks, one screen for the
settings of the conf files, built from schemas in
/usr/share/carbonian/tweaks.
- The status line, tray and
notifications
- The tmux status line is Carbonian's (/etc/tmux.conf, the helpers
tmux-status, tmux-menus and tmux-switch in /usr/lib/carbonian).
carbonian-tray(1) puts the StatusNotifier icons in it as glyphs.
carbonian-notify(1) is the notification server and the top slot of
the drawer.
- Palettes
- All colours come from one palette (see carbonian-palettes(5)): the
console, the compositor, the login screen, foot, tmux, btop, vim, the GTK
theme and the lock. carbonian-palette(1) chooses it. Applications
that use the terminal's 16 ANSI colours follow it for free; every palette
makes ANSI magenta its accent.
- Colour filters, styles,
night light
- Three independent looks over everything the screens show. A colour filter
is a matrix on the colours (grey, e-ink, sepia, invert, your own:
filters.conf(5)). A style is scanlines, a tube mask, a vignette, a
glow, a curved screen or a shader (see style.conf(5)). The night
light changes the colour temperature (carbonian-ctl night). The
filter and the style need Carbonian's wlroots build (a patch to the GLES2
renderer); without it they answer unavailable.
- Wallpapers
- The overview shows a grey pattern coloured by the palette
(wallpaper.conf(5)).
- Window rules
- rules.conf(5) says what happens to an application's window when it
opens: its own space, full screen, or minimized in its pane's
console.
- Idle and power
- carbonian-idle(1) locks and turns the screens off after a time and
can run a screensaver; carbonian-lock(1) and
carbonian-suspend(1) lock and sleep; carbonian-rescue(8) is
the way out of a hung graphics session (Ctrl+Alt+Backspace).
- GPUs
- display.conf(5) says which GPUs the compositor drives;
carbonian-dgpu(1) runs a program on a laptop's dedicated GPU, and
carbonian-gpu-driver(1) chooses the NVIDIA driver.
The shell's own shortcuts (hold Super alone for a moment to see
them on screen):
| Super+Space |
launcher |
| Super+Enter |
new space |
| Super+Left, Right |
previous, next space |
| Super+Up |
every space (overview) |
| Super+A |
quick settings |
| Super+W, Super+Down |
widgets |
| Super+N |
notifications (the drawer) |
| Super+P |
screens |
| Super+F |
maximize |
| Super+Q |
close |
| Super+M |
a space of its own |
| Super+` |
the application, or its console |
| Super+Shift+Left, Right |
space to the other screen |
| Super+Alt+Left, Right |
go to the other screen |
| Super+L |
lock |
| Print |
screenshot (pick an area) |
| Ctrl+Alt+Bksp (held) |
rescue |
Every setting of a system item follows one convention.
- The system's default is /etc/carbonian/<thing>.conf; the
user's is ~/.config/carbonian/<thing>.conf, and wins. (A few
files are read from one place only; their pages say which.)
- One setting per line, key value. # starts a comment; blank
lines are ignored. key=value is also read in older files but is not
written any more.
- Units are in the value: 80%, 280ms, 8px.
- Inside a file the order is when, what, how it looks.
- What runs is program. A slot line (widgets, drawer) is name
height command.
- The shipped file shows every setting with its default as a comment, so the
file is its own documentation. A bad value is ignored, never fatal.
- A change takes effect without a restart when it can: carbonian-ctl
THING reload or tmux kill-session -t SESSION; the page of the
file says which.
State that the user changes from the quick settings is not
configuration: it is one word in a file without extension in
~/.config/carbonian (see carbonian-state(5)).
| widgets.conf(5) |
the widgets screen |
| drawer.conf(5) |
the drawer |
| launcher.conf(5) |
commands the launcher leaves out |
| hotspot.conf(5) |
the hot spot panel and the monitor panel's size |
| sysmon.conf(5) |
btop, htop or top for the monitor |
| rules.conf(5) |
window rules |
| animations.conf(5) |
the curve of the animations |
| filters.conf(5) |
colour filters |
| style.conf(5) |
styles |
| wallpaper.conf(5) |
the overview's pattern |
| layout.conf(5) |
margins of the terminal |
| tabs.conf(5) |
the names of the tabs |
| terminal.conf(5) |
the session terminal's font size |
| input.conf(5) |
touchpad and keyboard |
| idle.conf(5) |
lock, screens off, screensaver |
| display.conf(5) |
which GPUs |
| power.conf(5) |
the dedicated GPU policy |
| sleep.conf(5) |
what wakes the machine |
| prompt.conf(5) |
the zsh prompt |
| cmatrix.conf(5) |
the matrix rain |
| clock.conf(5) |
the widgets' clock |
| tray-glyphs.conf(5) |
the tray's glyphs |
| map.conf(5) |
carbonian-map |
| carbonian-palettes(5) |
the palette format |
| carbonian-state(5) |
the state files |
A style can name a fragment shader that draws the screen: the
scene of each frame goes into a texture, and the shader draws that texture
in place of the built-in picture. Put NAME.frag in
~/.config/carbonian/shaders/ (it is looked for there first, then in
/etc/carbonian/shaders, then in /usr/share/carbonian/shaders) and use it
either with a style that has shader NAME, or with a line shader
NAME on its own in style.conf (shader off and shader style
give it back). The file is GLSL ES 1.00, at most 64 KB, and is only
main(); the uniforms tex, crt, crt2,
crt_res, curve and time are already declared, and it
must write an opaque gl_FragColor. A shader that mentions time
gets 30 frames a second even when nothing moves. One that does not compile
is logged and the built-in one is used; carbonian-ctl style shows the
error. The names are letters, digits and - _ . only. The full text, with
seven examples (template, chromatic, bloom, vhs, pixelate, daltonize, crt),
is /usr/share/carbonian/shaders/README.
Programs in /usr/lib/carbonian that are not commands, and have no
pages of their own:
- quick-settings
- The panel of carbonian-quick(1).
- tweaks-set
- The writer behind carbonian-tweaks(1).
- tmux-status, tmux-menus,
tmux-switch
- The status line, its menus and the space switcher.
- widget-*,
drawer-calendar
- The widgets (see widgets.conf(5)).
- carbonian-logout
- A real log off: asks the programs of the panes to quit, ends the user's
tmux server and the login session. Restarting the shell does not do
that.
- carbonian-greet,
carbonian-login, console-fetch, console-font, carbonian-splash
- The text console's login, banner, font and the boot splash.
- carbonian-sync
- Installs the archive's upgrades on a schedule.
- carbonian-gpu-env
- Read by the session scripts: the GPUs, from display.conf.
The compositor logs to the journal under the tag of its
session:
journalctl --user -t carbonian-session
Touching a file turns a probe on (remove it to turn it off):
- /tmp/carbonian-debug-commits
- Each client's surface commits per 2 seconds.
- /tmp/carbonian-debug-frames
- Bursts of frames.
- /tmp/carbonian-debug-slide
- The slide between spaces.
- /tmp/carbonian-debug-geometry
- What a client said about its window, and what is used.
- /tmp/carbonian-debug-toasts
- The life of a toast.
- /tmp/carbonian-debug-startup
- Start up times.
carbonian-hwcheck(1) tests the machine under the shell;
carbonian-survey(1) sends its result on a yes. On test machines
carbonian-autologin-test(8) and carbonian-dev-restart(8) make
the restart loop hands-free.
carbonian-stress and carbonian-appbench are not
installed. They live in the control repository (tools/): the first pushes a
nested carbonian-shell with many windows, panels, spaces and input until it
breaks and reports crashes, stalls and growth; the second starts an
application in the session and measures its start up, idle, typing,
scrolling and hidden cost.
- /etc/carbonian/
- The system's settings.
- ~/.config/carbonian/
- The user's settings and state.
- /usr/share/carbonian/palettes/, /usr/share/carbonian/shaders/,
/usr/share/carbonian/tweaks/, /usr/share/carbonian/wallpapers/
- What the packages ship.
- /var/lib/carbonian/palette/
- Files generated from the chosen palette.
- $XDG_RUNTIME_DIR/carbonian-shell.sock
- The control socket.
carbonian-shell(1), carbonian-ctl(1),
carbonian-palette(1), carbonian-tweaks(1),
carbonian-session(1), carbonian-map(1),
carbonian-rescue(8), tmux(1), foot(1)