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

carbonian-ctl - talk to the running carbonian-shell through its control socket

carbonian-ctl VERB [ARGUMENT ...]

carbonian-ctl joins its arguments into one line (at most 255 characters), writes it to the control socket of carbonian-shell(1), and prints the one-line answer (watch is the exception: it prints a line at each change, until the shell goes). An answer that starts with ok goes to standard output and the exit status is 0. Any other answer goes to standard error and the exit status is 1.

The socket is $XDG_RUNTIME_DIR/carbonian-shell.sock. Most of the panel scripts (carbonian-drawer(1), carbonian-widgets(1) and the like) and every setting tile of the quick settings go through it.

Open or close that panel. With no argument it is opened, or closed if it is open. Answers ok open or ok closed; error: no session here on the login screen.
Start the programs of that panel again: every pane of its tmux session is respawned (tmux respawn-pane -k), the way to see a changed widget without restarting the session. What a pane had open and unsaved is lost. Answers ok reloaded.
Read hotspot.conf(5) again. Answers ok reloaded.
One line per mapped window, read only (the window tests use it): ok windows and then win pid=P id=N x=X y=Y w=W h=H fx=X fy=Y fw=W fh=H flags=F app_id=A title=T. The first four are the window's geometry on screen, the next four the window with its frame, F a comma separated list (floating, docked, console, minimized, maximized, fullscreen, screen_term, parent, dialog, frame) or -. minimized is a guest of its own put away (hidden, without the keyboard); console is a docked guest behind its pane's console.
What is open: ok session drawer=0 widgets=0 quick=0 launcher=0 overview=0 hotspot=0 monitor=0. The first word after ok is login on the login screen. Each call is a new connection, and so a wakeup of the compositor: a program that must know, all the time, whether its panel is shown uses watch instead of asking every second.
The same line as state, then again each time it changes, one line at a time, on a connection that stays open. The first line comes at once, so a client never has to ask state as well. After that a line comes only when at least one field differs from the last line sent on this connection (a panel or the overview opened or closed, the login screen gave way to the session); nothing comes while nothing changes, so the shell is not woken by a quiet watcher. The lines are in the state format, each ended by a newline, at most 159 characters, and always start with ok. Every field is there in every line: read the whole line, not a difference. A panel counts as open from the moment it starts to slide in until it starts to slide out.
The client ends it by closing its end of the socket. Anything it writes after the watch line is read and dropped. The shell closes it when it exits, or when the client does not read and its socket buffer is full (the line could not be written whole); in both cases the client sees end of file and may connect again. A shell older than 0.24.64 answers watch with an error: unknown line and closes: a client falls back to asking state then.
carbonian-ctl watch prints the lines as they come and runs until the shell closes the connection or it is killed.
Every verb, its arguments, a line of help, its tier (read, change, or confirm: a person should say yes first) and what it does with no argument, as JSON. It does not need a running shell: the table is built into carbonian-ctl (and checked against the shell by its tests). carbonian-mcp(1) makes its tools from it.

Read the palette again (carbonian-palette(1) does this after a change).
The colour filter. NAME is a filter of filters.conf(5) (off, grayscale, eink, sepia, invert and your own). toggle switches between off and grayscale. reload reads the file again. Answers ok NAME or, when the wlroots build has no colour filter, unavailable NAME. The choice is kept in ~/.config/carbonian/filter.
The style (scanlines, mask, vignette, glow, curve, shader) of style.conf(5). toggle switches between off and crt. With a style on, the answer lists the values in use: ok phosphor glow=30% boost=118% curve=0%, with shader=NAME and error=TEXT added when a user shader is in use or failed.
The night light. KELVIN is 1500 to 6500. Answers ok MODE KELVIN FROM TO (for example ok auto 3200 20:00 06:30).
How much animation there is. The curve is in animations.conf(5).
The key hints shown when Super is held alone.
The shell in VR: the main terminal as a curved panel in the headset over a floor in the palette (carbonian-vr-home). recenter puts it back in front of the head, scale sets its width in metres. play shows a video in the headset only (never on the desktop): MODE is auto (from the name and the shape), flat (a cinema screen), panel, 360, 360tb (one picture per eye, top and bottom), 180 (side by side) or 180mono; the mouse's left button pauses, the wheel seeks, the right button goes back to the home. stop ends it. view shows a 3D file (OBJ with its MTL colours, STL, PLY) as an object in the home, fitted into half a metre (--real: its units are metres): the mouse's drag turns it, the wheel sizes it, the right button takes it away; a controller's grip holds it, both grips size it. pin makes the last model touched a decoration (the mouse and the grip leave it alone; a grip held a second, or the middle button, or unpin, lets it loose). The models stay where they were put, in ~/.config/carbonian/vr-scene.conf. animate WORDS animates the last model touched: spin 30deg/s [x|y|z], bob 5cm 4s, move DX DY DZ PERIOD, pulse 10% 2s, orbit A PERIOD [ecc, peri, tilt, node, phase, around NAME], path PERIOD X Y Z ... [bounce] [face], stop (periods in s, min, h, d, y; the scene file's comment, in carbonian-vr-home's scene.rs, says them all, with name, glow, sunlit, scenery and textures); animation_speed in vr-home.conf(5) runs them all faster, slower or not at all. open COMMAND runs it, and its window (the next new one, within 20 seconds) shows in VR, beside the panel last typed in. A window also goes to VR when its process is a VR terminal's (or one it started), when it comes while the mouse is in VR (exclusive, or hybrid with the mouse there: an app already running that opens the window, as VS Code does, included), or when it is a dialog of a window in VR; not Carbonian's own windows, nor a dialog of a window on the screens. mode [hybrid|exclusive|auto|toggle] sets how the home shares the machine (see vr.conf(5) mode); mouse [on|off|toggle], in hybrid, puts the mouse in VR or back on the screens (Super+Esc does the same; in exclusive it gives the screen back). The home opens in hybrid with the mouse on the screens (mouse_start in vr.conf(5) changes that): Super+Esc (or mouse on) takes it into VR. reload reads vr-home.conf(5) again (the home also does as soon as the file changes).
VR mode: while on (a VR session runs; the XR runtime's session hook says so), the desktop is drawn, and its apps let draw, at vr.conf(5)'s desktop_rate only (10 Hz).
Do not disturb: notifications are not shown as toasts (critical ones still are).
Where toasts appear and whether they pile up or wait their turn. Answers ok top pile.

How several screens are used. With no argument it only reports: ok extend screens=2 *eDP-1:on@1920x1080 HDMI-A-1:on@1920x1080 (the main screen is marked with a star).
Make that screen the main one (the one with the status line and the panels); auto lets the shell choose. The choice is kept per set of connected screens in ~/.config/carbonian/displays.
Where the pointer is, in the layout's pixels (ok pointer X Y). Read-only: for tests, and to check where a touch screen puts it.
Tell the virtual screens (made by screen add), one line each: screen tablet 1280x800@1920,0 right-of=eDP-1 scale=1 on (name, size, place in the layout, the screen it was put beside, scale, on or off).
Make a virtual screen of that size in pixels (64 to 8192): an output the compositor draws but no monitor shows, for a phone or a tablet used as one more screen. It is a screen like the others: in extend mode it has a terminal of its own, and windows move to it. It goes to the right of OUTPUT (a screen's name, as display lists it), or after the last screen. If NAME is a name or a device id in screens.conf(5), that line gives the place and the scale the command does not. Answers ok added tablet 1280x800.
Take a virtual screen away; its windows go to the main screen.
The scale of a screen (the one in use if none is named). Any number from 0.5 to 4 is taken; next goes to the next step that gives a whole number of logical pixels. Answers ok NAME SCALE.
Turn the screens off and on again without losing the layout (what carbonian-idle(1) does).
What the machine gives the shell: ok renderer=gles2 explicit-sync=yes colour-transform=yes screens=NAME:WxH@HZ:scaleS:gammaN:vrr-yes:internal:on,... Used by carbonian-hwcheck(1) and carbonian-survey(1).

Lock the session (runs carbonian-lock(1)). Answers ok locking or ok locked.
off means stay awake: nothing locks and the screens stay on. Answers ok on (idle actions happen) or ok off. The choice is kept in ~/.config/carbonian/idle.
Start the area picker of the Print key (see carbonian-shot(1)).
Send the docked app that has the keyboard to a space of its own, or bring it back into its pane's place, as Super+M does. Answers ok or an error when no docked app has the keyboard.
Read rules.conf(5) again (windows already open are left alone). Answers ok N rules.
Rename the current tab (the tmux window of the terminal in use) to NAME, the rest of the line, which turns off its automatic naming. Without a name, open the rename prompt in the status line (see carbonian-rename(1)).
Read tabs.conf(5) again, at once (otherwise it is read at the next new window).

While the session is locked, the panel verbs, palette, dnd, toasts, animations, hints and display answer error: locked.

Where the socket is.
Another socket path (the login screen's, for one).

0
The shell answered ok.
1
The shell answered with an error or another word (for example unavailable).
2
No verb given, or neither XDG_RUNTIME_DIR nor CARBONIAN_SHELL_SOCK is set.
3
No carbonian-shell at the socket.

carbonian-ctl state
carbonian-ctl widgets
carbonian-ctl filter sepia
carbonian-ctl night on 3200
carbonian-ctl display primary HDMI-A-1

$XDG_RUNTIME_DIR/carbonian-shell.sock
The control socket.

carbonian-shell(1), carbonian(7), filters.conf(5), style.conf(5), tabs.conf(5), carbonian-state(5)

October 2026 Carbonian