carbonian.org / manual pages
RULES.CONF(5) Carbonian Manual RULES.CONF(5)

rules.conf - window rules: what happens to an application's window when it opens

One rule per line, in the order when, what:

rule PATTERN ACTION

Lines starting with # and blank lines are ignored. The first rule that matches a new window wins. The user's ~/.config/carbonian/rules.conf is read before /etc/carbonian/rules.conf, so the user's rules come first. At most 64 rules are kept. carbonian-ctl rules reload reads the files again; windows already open are left alone.

PATTERN is a glob (see glob(7)) on the application's app id, case ignored, or title:GLOB on the window's title. A pattern is one word, so it cannot contain a space: use * for it. wlrctl toplevel list shows the app ids of what is open.

ACTION is one of

The window goes to a space of its own (a tmux window).
It opens full screen, in a space of its own.
It starts minimized, in its pane's console.
The app keeps Ctrl+B (the tmux prefix) for itself while it has the keyboard. Alt+key stays tmux's. This is not a one-time action: it is checked at each key, and it does not stop another rule from matching the window.

A line that does not parse is ignored.

~/.config/carbonian/rules.conf
/etc/carbonian/rules.conf

rule mpv fullscreen
rule gimp* space
rule code keys
rule title:*Picture-in-Picture* console

carbonian-ctl(1), carbonian-foot(1)

October 2026 Carbonian