Layout
[layout] has three fields, all re-applied live by scoot msg reload:
| Field | Type | Default | Reload | Meaning |
|---|---|---|---|---|
gap |
integer (pixels) | 12 |
live | Gap between columns, between windows stacked in a column, at output edges and under the bar. The bar’s inset and the notification stack’s follow it too (see One gap). 0 is no gaps. Clamped into 0..: negatives become 0, anything above becomes 10000, a guard against a typo, not a usable setting. A gap that large leaves no usable area, so windows end up 1x1. |
column_widths |
array of floats | [1/3, 1/2, 2/3] |
live | Column widths as fractions of the output width, in the order cycle-column-width steps through and set-column-width N indexes into (0-based). Non-finite or non-positive entries are dropped; an empty list falls back to the built-in three. A shorter list clamps live columns onto the nearest surviving entry. |
default_column_width |
integer (unsigned) | 1 |
live (new windows) | Index into column_widths for newly created columns (1 selects 0., half the output). Too large clamps to the last valid index; negative is a whole-file parse error, not a clamp. Live columns hold still. |
[layout]gap = 8column_widths = [0.25, 0.5, 0.75, 1.0]default_column_width = 1One gap
Section titled “One gap”The desktop is laid out on one space: gap. Out of the box it is the
space between windows, from the screen’s edges to the windows, under the
bar, the bar’s own inset from the screen’s edges, and the notification
stack’s inset, so the cards’ top and right edges line up with the windows’.
Set gap once to change all of them:
[layout]gap = 16 # 0 for no gaps anywhereThe bar follows when its margin is "gap" (the built-in default bar’s
value; see Margins). The notification
stack follows when notify. sets no margin_px (see Placement).
Either still takes its own value. They ask scoot for the gap when they
start and on their own msg reload, so after scoot msg reload with a
new gap, run scootbar msg reload and scootnotify msg reload. Under
another compositor (no scoot socket) they use 12.
Symptom: the bar or the cards no longer line up with the windows after changing
gap. They read the gap when they start or reload. Runscootbar msg reloadandscootnotify msg reload. If they still drift,bar.sets a number fortoml marginornotify.setstoml margin_px: remove it, or setmargin = "gap".
Symptom: a gap wider than the screen, windows 1x1.
gapis set huge. It clamps at 10000, which still leaves no usable area. Set it back under a few dozen.
