Configure scootbar
Shape the bar: where it sits, what it looks like, which outputs it covers, and the icons it draws.
The built-in default
Section titled “The built-in default”With no bar. (and no --config), scootbar draws its built-in
default: one full-width bar, inset from the output’s edges by scoot’s
layout gap (margin = "gap", see Margins), in three sections.
- Left, where you are: the workspaces, the column minimap and the focused window’s title behind its app’s color dot.
- Center: empty. It is kept for an activities module.
- Right, status: network, volume, battery, Bluetooth, media and
brightness, then the tray, the notification bell
and the clock at the far edge. Each status module shows only when it has
something to report: battery only where a battery exists, brightness only
with a backlight, media only while a player runs, Bluetooth only while a
device is connected (
connected-only).
The icons are scootbar’s own path icons, so no symbol font is needed. The active look applies over the default: its colors, radius, opacity and font win. Without a look the default draws a rounded, slightly translucent bar.
The default is the file scootbar embeds, crates/scootbar/default-bar..
A module this build lacks (a build with some features off) is left out of
it.
To change one thing, copy that file to ~/. and
edit it. A bar. replaces the default whole: a file that sets only
[colors] gets the plain defaults (the clock in the center), not the
built-in default with new colors.
Symptom: the bar shows only a clock after you created
bar.. Your file has notoml left,centerorrightlist, so the plain default layout applies. Start from a copy ofdefault-bar..toml
Layout
Section titled “Layout”- Left modules are packed from the left edge, right ones from the right edge, in the order listed; center ones are packed together and centered on the bar.
- Groups: a
"|"entry in a list marks where a separator goes.left = ["cpu", "load", "|", "memory"]draws one line, betweenloadandmemory;loadsits next tocpuwith no line inside the group. A list with no"|"draws a line in every gap. A"|"needs a module on both sides of it in its own section (leading, trailing and doubled marks are refused, naming the list). It is never a module: it is not started and takes no space, and an unstarted module beside one never moves the line. - Each module is as wide as its content plus
--paddingon both sides.--spacingseparates neighbours, and a module’s ownmarginadds room on each side of it (Spacing). A module with nothing to show takes no space: no padding, margin or spacing. - A rounded bar keeps its ends clear of the corners: the first module
on the left and the last on the right start
radiusless half a padding in from the bar’s end, so their ink and the workspaces pill are never in a corner square. - When they do not fit, the left part keeps its place, the right part gives way to it, and the center part is pushed off center to fit between them, then cut. Nothing overlaps or is drawn past the bar’s end, and text is clipped to its module’s space.
- Text is vertically centered on the bar. It is not shaped: one glyph per character, no ligatures, kerning or right-to-left runs (see Fonts). A character no font in the chain has draws the primary font’s missing-glyph box. Control characters are not drawn.
- Numbers keep their width. The clock, battery, volume, microphone
and brightness modules set every digit
0–9at the width of the font’s widest digit, centered in it, so11:11is as wide as08:48. A number keeps its width while it has the same count of digits: the default clock (%-I:%M %P) still widens at9:59to10:00, and a percentage at9%to10%. For a clock that never changes width, use a zero-padded format such as%I:%M %Por%H:%M; the space-padded%l,%kand%estill change width. Fonts whose digits already share one width are unchanged. A digit no font in the chain has draws the missing-glyph box at that same width. Other modules (window titles, workspace names,execoutput) use the font’s own digit widths. There is no option for this.
A font file, not a font name: there is no fontconfig. Without --font,
the first of these that exists and loads is used:
/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf Debian, Ubuntu/usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf Fedora/usr/share/fonts/TTF/DejaVuSans.ttf Arch/usr/share/fonts/truetype/DejaVuSans.ttf openSUSE/usr/share/fonts/dejavu/DejaVuSans.ttf Alpine/run/current-system/sw/share/X11/fonts/DejaVuSans.ttf NixOS, with fonts.fontDir.enable/usr/share/fonts/truetype/noto/NotoSans-Regular.ttf Debian, Ubuntu (Noto)/usr/share/fonts/noto/NotoSans-Regular.ttf Arch (Noto)With none of them and no --font, the daemon refuses to start (exit
status 1) and says how to give one. It does the same for a --font
it cannot use (missing, not a regular file, empty, over 64 MiB, or not a
TrueType or OpenType font), naming the file and why. A bar with no modules
placed draws no text and needs no font. On NixOS those directories are
usually empty: give --font a store path (nix build nixpkgs#dejavu_fonts
has share/fonts/truetype/DejaVuSans.), or run the flake’s
scootbar-demo, which uses DejaVu Sans by default
(see Enable it).
Replacing the font file under a running bar cannot crash it, unless a root
process rewrites a mapped store file in place through a read-write view
(root ignores the write bit; nix-daemon never does). The font is
mapped (only the pages drawn stay resident, shared with every other program
using it) only when root-owned, with no write bit, on a read-only mount
(NixOS’s /nix/store). Everywhere else, including a writable file seen
through a read-only view (ProtectHome=read-only, flatpak’s
/run/host/fonts, a read-only bind mount), it is read into the bar’s
memory once, costing its size (about 740 KB for DejaVu Sans). A mapped file
truncated in place (what cp over the file in use does) would kill the bar
with SIGBUS, which is why the read path exists. The file is read at start and on every
reload: change bar. (or any option) and run
scootbar msg reload to swap it live.
Font weight
Section titled “Font weight”font-weight sets how heavy the bar’s text is, as a CSS weight: 400 is
regular, 500 medium, 600 semibold, 700 bold.
[bar]font-weight = 500 # 100 to 900; default 400- Type: a whole number from 100 to 900. Default: 400. A look sets
it from its
fonts.: 500 in Afterglow (the default), Linen, Frostline, Hearth and Graphite; unset (400) in Matte Ink, Nocturne and Sumi.ui-weight - Reload:
scootbar msg reloadapplies it live, as style: no module restarts. - Which face draws it: the nearest face of the font’s family, picked
the way a browser picks one. A variable font (one file with a weight
axis, such as
InterVariable.) is set to the exact weight; a font collection (ttf .) gives its own face of that weight. Otherwise the bar looks beside the font file for one named for the weight:ttc Inter-Medium.(500),otf Inter-SemiBold.(600),otf Inter-Bold.(700), andotf Thin,ExtraLight,Light,ExtraBoldandBlackfor the rest. - A weight the family does not have draws the nearest face it has, never an error: 500 with only regular and bold files draws regular, 600 draws bold. DejaVu Sans, the default font, has only those two.
- Where it looks on NixOS: the
interpackage installs Inter as a variable font and as a collection (Inter., whichttc fc-match Interanswers). The bar takes the Medium face out of the collection, or sets the variable font to the weight. - Memory: the bar keeps only the faces it draws. With the whole bar at
one weight, that face replaces the regular one, so
font-weight = 500costs no more than 400. A face beside the regular one read into memory costs its file’s size (about 620 KB for an Inter static file, 880 KB for each instance of the variable font in a writable directory). A collection is never read twice: outside a read-only store it gives no other weights. On a read-only store, such as/nix/store, a face shares the mapped file and costs almost nothing.
Symptom:
font-weight = 500looks the same as regular. The font has no Medium face beside it (and is not a variable font). Install the family’s Medium file next to the regular one, with the same name and-Mediumin place of-Regular, or use a variable font.
Fallback fonts and icons
Section titled “Fallback fonts and icons”bar. (file only, no flag) names at most two more font
files, tried in order for a character the primary lacks. A character is drawn
from the first font in the chain that has a glyph for it. A character in none of them
draws the primary’s missing-glyph box, never a blank. Each
fallback must load like the primary: one that cannot is a refusal naming it
(a start-up error, or a refused reload with the running bar untouched), and
more than two is a config error naming bar.. Line height and
vertical centering come from the primary alone. There is no fontconfig, so
give the paths (Stylix supplies them on NixOS).
Icons work the same way: an icon is a glyph from a symbol font (Nerd Font, Material Symbols, Font Awesome) given as text in the config, with the symbol font as a fallback (or the primary). The clock takes one, drawn before the time with a space between:
[bar]fallback-fonts = ["/path/to/SymbolsNerdFont-Regular.ttf"][clock]icon = "\U000f0e65" # or the character itself; exactly one, else a config errorThe icon is one code point, not one grapheme: an emoji plus a variation
selector or a ZWJ sequence is refused, but a lone format or combining
character passes and draws as a . box or a blank, so give a real
symbol.
Glyphs are cached per font, size and scale, at most 512 glyphs and 4 MiB. Past either limit the cache is dropped and refilled from what is drawn next, so arbitrary text (a window title) costs bounded memory.
Out of scope (will look wrong): shaping (ligatures, complex scripts such as Arabic or Devanagari, combining marks), right-to-left and bidirectional layout (text runs left to right in logical order), and color emoji (outlines in one color only; an emoji is drawn only if a font in the chain has an outline for it). A title in such a script draws per codepoint.
Tested fonts: DejaVu Sans with SymbolsNerdFont-Regular. and
NotoSansCJK-VF. (nixpkgs’ nerd-fonts. and
noto-fonts-cjk-sans) draw Latin, a symbol icon and Japanese, Korean and
Chinese together. A . collection loads (its first face), and so does a
variable CFF2 font (its default instance). A 30 MB+ CJK font costs its size in
memory unless it is on a read-only mount (mapped, as above).
Colors
Section titled “Colors”Modules name a state, never a color, and the state picks one of the
theme’s color tokens: normal is drawn in fg, warn in accent,
urgent in urgent and muted in dim. The clock is always normal.
Every token has a [colors] key; bg and fg are --background and
--foreground flags too. Their defaults are Catppuccin Mocha’s:
| Token | Default |
|---|---|
bg |
#1e1e2e |
fg |
#cdd6f4 |
accent |
#f9e2af |
hover |
the accent value (unset, it follows a custom accent) |
dim |
#6c7086 |
urgent |
#f38ba8 |
Popup and tooltip states
Section titled “Popup and tooltip states”Five more [colors] keys restyle popups and tooltips: a tint over a
hovered, pressed and selected row, the one-pixel frame, and a one-pixel
lit row inside the frame’s top that fades out across the corners. A look
with a [state] table sets
all five; you can also set them yourself.
| Key | What it paints | Default when another state key is set |
|---|---|---|
state-hover |
a hovered (or keyboard-cursor) row | fg at 8 % |
state-pressed |
a row while the button is held over it | fg at 22 % |
state-selected |
the list’s current choice | fg at 18 % |
hairline |
the frame | fg at 10 % |
highlight |
the lit top row | white at 6 % |
Type: #rrggbb (opaque) or #rrggbbaa (a color with its alpha as the
last byte, 00 transparent to ff opaque). Default: unset. Each tint
is blended over whatever the popup drew under it (its fill, each row of
a gradient fill, a translucent popup), so the same value lifts any
background. With none of the five set, popups draw as before: a dim
frame, a dim hovered row, no lit row. Setting any one turns on all
five, and each one you leave out takes the default above, from this
file’s fg. A selected row keeps its tint while hovered; a press shows
state-pressed even on the selected row. Only a build with the popup
feature has these keys. Reload: a plain scootbar msg reload applies
them to the next popup or tooltip drawn.
[colors]background = "#1e1e2e"hairline = "#cdd6f41a"state-hover = "#cdd6f414"Symptom: you set
fgover a look and the popup tints keep the look’s foreground. A look’s tints carry its own colors; set the state keys in your file (for examplestate-hover = "#rrggbb14"in yourfg) to tint with yours. A differentbgneeds nothing: the tints are blended over it.
Look layer
Section titled “Look layer”A look is a set of tokens rendered to <state>/look/bar., which the
bar merges under its own file, per key. Precedence, highest first, per
key: daemon flags (--background, --foreground), the file, the look,
the built-in defaults. A key set in bar. always wins over the
look’s value for that key; every other key follows the look.
The state is $SCOOT_LOOK_STATE when a private session sets it, else
$XDG_STATE_HOME/scoot, else ~/.. A missing or
dangling link means no layer; a broken one is refused with the reason
named, and a start never fails over it.
- What a look sets: the six
[colors]tokens and the five popup state tints;[bar]radius,popup-radius,opacity,font-size,font-weight,padding,spacing,separator,shadow,fill,shape,chrome(plus the renderer’s ownbar.file path); the workspaces pill keys and the per-module glyph icons. It never sets geometry or placement (font edge,height,margin,layer,exclusive), module lists,exec/button/pushtables,on-*actions ortooltip-delay: any of those in the layer refuses it whole, so a look never recreates the bar’s surface. - One derived pair:
hoverfollows a customaccentwhen unset. A file that sets onlyaccentgets its hover derived from it (the look’shoveris dropped). A file that sets onlyhoverkeeps the look’saccent. The popup state tints merge per key like any other key: they are blended over the popup, so a file or flag that changesbgneeds nothing re-derived, and a state key the file sets wins only that key. - A key whose feature is not built in is dropped from the layer with
a note (
popup-radiusand the five state keys without thepopupfeature); the file itself keeps refusing unknown keys loudly.
[look] layer pins the layer to a file, for a bar that runs without
scoot (which never has a state link). Type: a path to a bar.
fragment. Default: unset, the state link. A relative path resolves
against the config file’s directory. Example:
[look]layer = "/run/current-system/sw/share/scoot/rendered/hearth/bar.toml"Reload: a plain scootbar msg reload re-reads the file and the layer;
--look re-reads only the layer, under a snapshot of the file, so a
look swap never applies pending edits. A --look reload with no layer
is refused. An unknown scope is refused by name, never treated as a
plain reload.
Symptom: a look applies and nothing changes. The file sets those keys itself, and the file wins per key. Remove the file’s own values (or keep them on purpose) to let the look show through.
Symptom: a reload is refused naming
bar.. The look’s radius does not fit the file’sradius height(at most half of it). A layer value that is invalid against the file refuses the whole layer at startup (a note, the bar starts without it) and the whole reload on a swap. Set the file’s ownradius, or raiseheight.
What it does on the compositor
Section titled “What it does on the compositor”- One bar per selected output (Outputs), a layer surface (
topby default) with the namespacescootbar(for compositor rules that match on it), anchored to its edge and both sides. An output plugged in later gets a bar. An output unplugged takes its bar with it and the others are untouched. With no outputs the daemon waits, idle, for the first. - It reserves its space (an exclusive zone), so windows are arranged beside it, never under it. The zone is set before the bar’s first frame is drawn: on scoot, windows move out of the way once, when the bar connects, and do not jump again when it draws.
- It takes no keyboard focus, except the keys of an open popup (Escape, arrows, Enter) while it is open. Clicks on the workspaces module’s numbers switch to them (above); anywhere else clicks do nothing.
- It draws at each output’s real device pixels, fractional scales
included (
wp_fractional_scale_v1withwp_viewporter). A compositor without those two gets the bar drawn at its integer scale (the fraction rounded up) and scaled down: sharp, not device-exact. The daemon says so on stderr at start-up. A scale past 16 (scoot’s own cap is 4) is drawn as 16. - It draws only when something changes (a new size or scale, or a
module’s content), and otherwise makes no system calls. Idle with the
clock it wakes twice a minute: the clock’s tick, and about a
millisecond later the compositor’s
wl_buffer.for the buffer that tick’s frame replaced (everyrelease wl_shmclient gets one per frame; measured on scoot and sway). With no module placed it wakes zero times. There are no frame callbacks. A change redraws, and reports damage for, only the module that changed: a tick repaints the clock’s own span, not the bar. - If the compositor closes a bar (some do when an output goes away), the bar is made again once. Closed a second time, that output is given up until it is unplugged and plugged back in, and stderr says so.
Layers and the zone
Section titled “Layers and the zone”--layer (or [bar] layer) picks the layer-shell layer the bar sits in.
On scoot, bottom sits behind windows (they cover the bar where they
overlap it) and top and overlay in front, and a fullscreen window hides
the top layer (and the bar’s zone is covered with it), so the bar
disappears while something is fullscreen. overlay stays over fullscreen
windows; choose it on purpose. A window that should fill
the screen with the bar visible wants scoot’s
maximize (Super+m, toggle-maximize). There is
no background layer: that is the wallpaper’s.
--exclusive false (or exclusive = false) sends an exclusive zone of -1:
the bar reserves nothing and windows go under it, and it also ignores any
other bar’s zone. Use it for a floating overlay-style bar. With
the default true the zone is the bar’s height, and the compositor adds the
margin on the anchored edge (see Margins). Whichever layer:
the bar never takes the keyboard, so clicking it never moves window focus.
Changing either on a running bar takes a reload, which makes the surfaces
again.
To toggle the bar from a key, bind it in scoot’s own config (the bar takes no keyboard, so it has no hotkey of its own):
[binds]"super+shift+b" = "spawn scootbar msg toggle"Outputs
Section titled “Outputs”By default every output gets a bar, all alike. The top-level outputs key
(or --outputs) picks which, and [output. tables change one
output’s bar. NAME is the compositor’s own name for the output
(wl_output.: the connector, DP-1, eDP-1, HDMI-A-1; scoot msg outputs on scoot, swaymsg -t get_outputs on sway).
outputs = ["eDP-1", "DP-1"] # before any [table]: TOML puts later keys in itleft = ["workspaces"]right = ["clock"]
[output."DP-1"] # the external monitor: taller, at the bottom, no workspacesheight = 36edge = "bottom"left = []right = ["clock"]A 4K panel next to a 1080p one wants a different em, not just the same em at its own device pixels. Give the denser output its own size:
[output."DP-1"] # the 4K panel: larger text, same barfont-size = 20 # 1 to 256, as [bar] font-size; absent is the shared valueoutputsis"all"(the default) or a list of names: only those outputs get a bar. An output plugged in later that is listed gets one; one that leaves loses its bar (and nothing else). An output the compositor never named (awl_outputolder than version 4) matches onlyall. Names are compared byte for byte. The flag is--outputs allor--outputs DP-1,eDP-1; when given, it replaces the file’s list.[output.takes"NAME"] edge,layer,exclusive,height,margin,font-size(the same values as[bar], 1 to 256 for the size) andleft/center/right. A key not given keeps the shared value. Giving any of the three lists sets that output’s whole layout, as at the top level: a list not given is empty, andleft = []alone is a bar with nothing on it. Colors, the font file,padding,spacing,radius,opacityand each module’s own options are shared by every bar. An output table wins over a flag for its output (--height 40is the height of every output that does not set its own, and--font-size 14the em of every output without its ownfont-size). A badfont-size(0, past 256, not a whole number) is refused namingoutput., and the running bar is left as is on a bad reload."NAME". font-size - Refused, naming the key:
outputs = [](hide the bar withmsg hideinstead), a name listed twice, an empty or over-long (128 bytes) name or one with a control character, more than 32 names or tables, an[output.table for an output"X"] outputsleaves out (it could never apply; withoutputs = "all"a table for an output that is not plugged in is fine), an unknown key, a bad value, and a module placed twice within one output (the same module on two outputs is the point).--outputsis checked against the file’s tables the same way, so the pair is a usage error, not a silent dead table. - One set of modules, started once. The daemon starts each module in
the shared layout or any output’s override a single time, even if a
[output]table then leaves it off every bar. Every output’s bar reads it, so a second monitor adds a surface and its two buffers, not a second clock timer or a second set of file descriptors. A module’s change redraws only the outputs that show it. The workspaces module is shared too, and each bar shows its own output’s workspaces (see Workspaces for the switching limit). There is no “primary” output: to put a module on one output only, name that output in its table. - Scale. Each bar is drawn at its own output’s real device pixels
(fractional scales included), so text and pill scale with their output.
An output with its own
font-sizemeasures, paints and hit-tests at that em: its modules take the room the larger (or smaller) text needs, clicks land on what that output shows, and its popups and tooltips use it too. A second size costs only its own glyphs in the cache. A reload that changes an output’s size remeasures and repaints that output; its surface stays, andpaddingandspacingstay shared. To check it, runscootbar msg layout: it prints each module’s rectangle per output, and the same module is wider on the output with the larger em.
Symptom: the text is the right size on one monitor and too small (or too large) on the other. Give that output its own
font-size(above) andscootbar msg reload. If the wrong output changed, the compositor’s name for it is not the one in the table: compare withscoot msg outputson scoot (swaymsg -t get_outputson sway).
radiusis shared and at most half the shared height: on an output whose ownheightis smaller the corners are cut back to what that bar holds (radiusis 0 to half the height at the file level).- A reload re-places every output: one the list now leaves out loses
its bar (and its zone), one it now includes gets one, and a bar whose
geometry changed is made again. Modules are restarted as at any reload,
except an
execwhose table is unchanged, which keeps its child (above) — unless the reload changed only style ([colors];[bar]radius,popup-radius,opacity,shadow,fill,motion,motion-duration-ms,motion-bounce,shape,chrome,font,fallback-fonts,font-size,font-weight; the layout’spadding,spacing,separatorand per-modulemargins;tooltip-delay), in which case every module keeps running with its state and the bar only repaints (remaking its surface where the shadow’s room changed); an open popup or tooltip is restyled to the new style where it fits its surface, remade where it does not, and closed only where neither is possible. A module’s own colors (likeworkspacesactive-color) and its icon art are not style: they take the full reload. So does any reload while a module is left out as unavailable (no battery, no interface), which retries it. hide/showkeep to the list: a shown bar is made only on a selected output. The two reasons a bar can be absent (hidden, not selected) are independent, so ashowafter a reload that changed the list makes the new list’s bars.
Hiding the bar
Section titled “Hiding the bar”scootbar msg hide destroys the bar’s layer surface and its buffers on
every output: a hidden bar holds no wl_shm buffer, and its exclusive zone is released, so windows
reclaim the space. show makes them again, as at start-up, so windows move once (back out of the bar’s
way) and do not jump again when it draws. toggle flips whichever it is. The reply says
what is now the case: {"type":"bar","visible":false}.
- All three are idempotent and applied once per loop turn with the net
result: a burst of requests (forty
toggles at once, say) is one change to the final state, with no hide-show-hide flicker. - Hidden is runtime state. A
reloadkeeps it (a geometry change while hidden just waits for theshow), and a restarted daemon starts shown. - An output plugged in while hidden gets no bar until
show(and only if the list selects it); one that was unplugged and plugged in again is the same.showwith no output is fine: each output’s bar is made when it arrives. - The modules keep running while hidden (the clock’s timer still fires every minute, or every second with a seconds format; a workspace change still wakes the daemon), but nothing is drawn: a hidden bar costs the process, not the surfaces. A bar with no module placed wakes zero times, hidden or not.
- A
topbar under a fullscreen window needs nothing from scootbar: the compositor stops drawing the layer. hideafter the compositor closed a bar (an output going away) forgets that:showgives it a fresh one, with one retry as at start-up.
Not built: auto-hide
Section titled “Not built: auto-hide”There is no auto-hide. A sensing strip at the edge would cost a surface,
a buffer and pointer wakeups even when unused, where a key bind that
toggles the bar costs nothing. Bind toggle (above) instead.
Margins
Section titled “Margins”The margin is sent to the compositor as the layer surface’s own margin, so
the bar surface is exactly the bar: no transparent border, and nothing on
the margin catches clicks. The compositor keeps windows clear of the bar
and the margin on its edge: with --height 20 --margin 8,4, a top bar
sits 8 pixels below the top edge, 4 in from each side, and windows start
28 pixels down. This follows the layer-shell protocol (“the
exclusive zone includes the margin”), and scoot and sway both do it.
The margin on the edge opposite the bar’s (the bottom margin of a top bar) does nothing; the protocol says so.
To line the bar up with scoot’s tiling, set margin = "gap": the margin
is scoot’s [layout] gap on every side, so the bar sits one gap from the
screen’s edges and windows sit one gap below it, as they sit one gap from
each other. The built-in default bar does this. Type: "gap", or numbers
as above. Default in a bar. that sets no margin: 0 (flush).
Reload: msg reload, which also asks scoot for its gap again.
# ~/.config/scoot/bar.toml: a floating bar on the windows' grid[bar]margin = "gap"The bar asks scoot for the gap over scoot’s socket when it starts and on
each msg reload, never per frame. Without an answer (another compositor,
or a scoot too old to report it) "gap" is 12, scoot’s default. An
[output. table takes margin = "gap" too. The --margin flag
takes numbers only, and replaces a file’s "gap".
Symptom: the bar’s edge drifts from the windows’ after changing scoot’s
gap. The bar reads the gap when it starts or reloads: runscootbar msg reload. If it still drifts,marginis a number: setmargin = "gap".
Spacing
Section titled “Spacing”Three lengths, all logical pixels and all bounded 0 to 1024 (a value past that, negative or not a whole number is a loud refusal naming its key):
| Key | Flag | What it spaces |
|---|---|---|
[bar] padding |
--padding |
inside each module: room either side of its content |
[bar] spacing |
--spacing |
between neighbouring modules in a section |
[clock] margin, [workspaces] margin |
none | outside one module: that much more room on each side of it, on top of spacing. Its own span never covers it, so a repaint of the module leaves it alone. A module with nothing to show takes none. |
[bar] separator draws a line in the gap between neighbouring modules of a
section: that many logical pixels wide, in the theme’s dim color, from a
quarter to three quarters of the bar’s height, centered in the gap. It sits
in the gap, so it needs one: separator may not exceed spacing (a
larger value is refused, naming both), and the drawn line is cut back to the
actual gap. The check is against the file’s spacing: a --spacing flag
given later replaces it and can leave a separator wider than the gap, which
is then cut to it (drawn narrower, never over a module). There is none between two sections, beside a module with
nothing to show, or at the bar’s ends. 0, the default, draws none. In a
section whose list has a "|" mark, only the marked gaps draw (see Layout
above); a list with none draws every gap, as before.
left = ["workspaces", "clock"]
[bar]spacing = 12separator = 1 # a hairline centered in each 12-pixel gap
[workspaces]margin = 4 # 4 more either side: the gaps beside it are 20Group related modules with no line inside the group and lines between groups:
left = ["cpu", "load", "|", "memory", "|", "disk"]
[bar]spacing = 12separator = 1 # one hairline between load and memory, and one between memory and diskNothing here costs a frame: the lines are painted with the whole bar, never
for a module’s own repaint, and the layout is worked out only when a width
or the size changes. A reload keeps the flags over the file, as at
start-up: giving any of --left/--center/--right replaces just that
section’s list (marks included).
Shape, opacity and depth
Section titled “Shape, opacity and depth”[bar] radius rounds the bar’s four corners, in logical pixels: 0 (the
default) is square, and the most is half the height (a pill), which the file
enforces (bar. names the limit when it is refused). [bar] opacity
is the background’s alpha, 1 (the default) opaque down to 0 transparent;
text stays fully opaque over it. [bar] shadow (none, soft, deep or
glow, default none) lifts the bar and its popups off the windows behind
them. [bar] fill (solid or gradient, default solid) lays a
vertical gradient with the light at the top over the background. [bar] motion
(none, ease-out or spring, default none) slides popups open away from
the bar’s edge; motion-duration-ms
(0 to 1000, default 250) and motion-bounce (0 to 1, default 1.0) tune it.
none opens instantly and costs nothing.
[bar]height = 28margin = "8,8" # match scoot's [layout] gap: see Marginsradius = 10opacity = 0.9shadow = "soft"fill = "gradient"motion = "spring"motion-duration-ms = 250motion-bounce = 0.6- A rounded, translucent or shadowed bar is an
ARGB8888buffer (premultiplied); a square, opaque, shadowless bar staysXRGB8888. The surface is the bar plus the window-facing shadow room (below a top bar, above a bottom bar), plus, where the bar holds a margin, the side and anchored-edge shadow room grown into it. A bar with no margin still clips its sides and anchored edge, so its width never grows: there is no empty screen beside or behind it for a shadow to fall onto, and the surface is exactly the bar. Without a shadow, the corner pixels are the only transparent ones. - Opaque region: an opaque, shadowless bar tells the compositor which pixels are opaque, so it can skip blending under them (all of a square bar; all but the four corner squares of a rounded one). A translucent or shadowed bar declares none: the compositor blends all of it, which is the cost of the option (a shadow reaches past the bar’s own rect, so no pixel is opaque).
- What translucency costs when something moves behind the bar: the
default bar pays nothing per frame, because its exclusive zone keeps every tiled
window out of its rectangle and, with a static wallpaper, the compositor
recomposites from the cached bar buffer. When moving pixels do sit behind
a translucent bar (a floating window dragged under it, an overlay-style
bar with
exclusive = false, an animated wallpaper), every redrawn frame blends the bar’s strip instead of skipping it. Measured on the CPU (pixman) tier, a 1920x40 strip costs about 2.3 to 4.4 times its opaque blit per redraw (roughly +30 to +55 us at 1x, +110 to +170 us at 2x for the strip alone), plus the window pixels under the bar that occlusion culling would otherwise skip entirely. - The shadow never moves a client’s window: the reserved strip is height plus margin either way, so windows start at height plus margin; the shadow overlaps them instead of pushing them. A bottom bar mirrors a top bar’s offset so its shadow falls upward.
- The input region is the bar’s own rounded shape, never its shadow: the bar’s rect at its offset (beside and below the grown room for a top bar; beside and above it for a bottom bar), cut by the radius, so clicks in the shadow or in a cut corner reach what is behind the bar instead of an invisible bar. A square shadowless bar keeps the default (the whole surface, which is the bar); a square shadowed bar gets its own rect explicitly, so the shadow stays click-through.
- Popups reserve room on every side: a click popup’s surface is its
layout plus the shadow’s pad plus the entrance’s room (16 px per side when
motion moves, none for
none) on all four sides, and the popup sits at the pad offset. The positioner is told the whole surface, so the compositor places it with its shadow; the input region is the popup’s own rounded rect at its offset, and a shadowed, rounded, translucent, gradient or moving popup blends (anARGB8888buffer). Tooltips stay as they were (no shadow, solid, opaque). - Popups open with a slide: a top bar’s popup starts 12 px above rest
(toward the bar) and drops to it; a bottom bar’s mirrors upward. A spring
overshoots past rest briefly, the way notification cards do. The entrance
runs only on frame callbacks while something moves; at rest and for
noneno callback is asked, so idle costs nothing. There is no exit animation: a pick, a click outside or Escape closes at once (the dmenu precedent), so a script waiting on a pick never waits on motion and a half-open popup never strands input. The grab is taken on the press, not when the popup settles. - The radius is cut back to fit:
--heightbelow twice the file’sradius(the flag replaces the file’s height), or a compositor giving the bar less height than asked, draws the corners as large as the bar holds. - Text is kept out of the corners, not clipped to them: the layout
clears the bar’s ends by the radius (see Layout), so no ink
is near a corner whatever
paddingis, at a cost of the radius less half a padding of room at each end. A bar whose radius is 0 loses nothing. - Corners are not clickable: the surface’s input region is the rounded
shape in logical pixels (at a fractional scale it can differ from the drawn
edge by one device pixel), so a click in a cut corner reaches what is
behind the bar. scoot honors
wl_surface.on layer surfaces. A compositor that ignores input regions leaves the corners clickable.set_input_region - Popups round separately:
[bar] radiusnever rounds a popup; that is[bar] popup-radius(Popups), which follows this radius when unset (8 under a square bar).
Effects over any look
Section titled “Effects over any look”shadow, fill, motion, motion-duration-ms and motion-bounce can also be set in bar., in an [effects]
table. It wins per key over whatever look is active, and over the file’s
own [bar] keys, so one setting turns a shadow, a gradient or an entrance on for
every look. A key the file does not set stays the
look’s, and a key the look does not set stays the built-in default
(none, solid, none, 250, 1.0).
[effects]shadow = "soft"fill = "gradient"motion = "spring"motion-duration-ms = 250motion-bounce = 0.6| Table and key | Value | Same as the look’s |
|---|---|---|
[effects] shadow |
none, soft, deep or glow |
bar. (Shape, opacity and depth) |
[effects] fill |
solid or gradient |
bar. (Shape, opacity and depth) |
[effects] motion |
none, ease-out or spring |
bar. (Shape, opacity and depth) |
[effects] motion-duration-ms |
whole number, 0 to 1000 | bar. (Shape, opacity and depth) |
[effects] motion-bounce |
number, 0 to 1 | bar. (Shape, opacity and depth) |
Precedence, highest first, per key: the file’s [effects] table, the
file’s [bar] keys, the look layer, the built-in defaults. (Daemon flags
sit above the file but set neither key.) A
refused [effects] value refuses the file loudly, naming its dotted key;
an unknown [effects] key is refused by name. The look layer, by
contrast, reports a bad value and ignores it.
Islands and module chrome
Section titled “Islands and module chrome”Two [bar] keys change the bar’s outline and what each module sits on.
Both are file-only (no flag), a look may set them, and a reload applies
them without restarting a module.
shape: one bar, a capsule per section, or one capsule
Section titled “shape: one bar, a capsule per section, or one capsule”| Type | "span", "islands" or "island" |
| Default | "span" |
| Reload | scootbar msg reload (style only: repaints, modules keep running) |
spanis the bar as it always was: one fill across the output.islandsdraws each section that shows something (left,center,right) as its own capsule with the bar’s fill,radius,opacity,shadowandfill. The left capsule starts at the bar’s left end, the right one ends at its right end, and the center one is centered. Each capsule pads its ends by the radius less half apadding, as a rounded bar does. Between the capsules the bar is transparent. A section with nothing to show draws nothing.islanddraws one capsule as wide as its content, centered on the bar. The sections run left, center, right inside it, 12 px apart (the desktop’s one gap), so “center” means between the other two, not the middle of the output.
# Three floating capsules on the windows' grid[bar]margin = "gap"radius = 14opacity = 0.86shape = "islands"# Everything in one centered capsule[bar]margin = "gap"radius = 14shape = "island"- Clicks between capsules reach what is below the bar. The input region is the capsules’ rounded shapes, so a press between or beside them goes to the wallpaper or a window under the bar.
- The bar keeps its place. Every shape keeps the surface, its margins and the exclusive zone, so windows do not move when the shape changes.
- With a look’s
[state]ladder, each capsule also carries the ladder’s hairline along its outline and the lit row along its top, as popups do. - Cost. A capsule bar is an
ARGB8888buffer that declares no opaque region, so the compositor blends the whole strip. A module’s change repaints only its own columns of its capsule: the shadow under a rounded corner and agradientfill are redrawn there too, so a clock tick at a capsule’s end costs about what it does on aspanbar. With a look’s[state]ladder a change repaints every capsule, since the hairline and the lit edge run along the whole outline. Either way only the changed module is damaged.
Symptom: a module sits outside its capsule’s color, or the capsules touch. The bar is too narrow for its content: the sections are cut as on a
spanbar, and touching capsules mean there was no room between them. Shorten a module (max-width) or drop one.
chrome: what each module sits on
Section titled “chrome: what each module sits on”| Type | "none", "chips" or "separators" |
| Default | "none" |
| Reload | scootbar msg reload (style only) |
nonedraws nothing around modules.chipsputs each module on its own capsule: the state ladder’s hover step (the foreground at 8 %, or the look’s[state]hover) over the bar’s fill, the selected step under the pointer on a clickable module. A chip is 4 px in from the bar’s top and bottom (less where the text needs the room) and its corners are the bar’s radius less that inset, so a square bar has square chips. Neighbouring chips stay at least 4 px apart: a smallerspacingis widened to 4.separatorsdraws the separator line in the ladder’s hairline (the foreground at 10 %, or the look’s[state]hairline) instead ofdim. It is 1 px wide unlessseparatorasks for more, andspacingis widened to the line’s width when it is smaller."|"marks still choose which gaps get a line. Undershape = "island"a line also goes between the sections;separatorwithout this chrome never draws one there (the sections’ 12 px gap already sets them apart).
# Chips on a floating bar[bar]radius = 14spacing = 6chrome = "chips"# A hairline between the workspaces and the title onlyleft = ["workspaces", "minimap", "|", "window-title"]
[bar]chrome = "separators"Symptom: modules moved apart after setting
chrome. That is the widenedspacing(4 px for chips, the line’s width for separators); setspacingto at least that to keep the layout you had.
Icons and fonts: mechanism and measurements
Section titled “Icons and fonts: mechanism and measurements”The reference for the config keys is the Icons section.
An icon is one of three things, chosen by which config key a module’s section sets (at most one):
| Key | What | Cost | Built |
|---|---|---|---|
icon = "\U000f0e65" |
One glyph from the font chain (a symbol font as a fallback) | one more font file | always |
icon-path = "M12 2 ... |
SVG path data, filled by the bar’s own rasterizer, tinted from the theme | +36.9 KB of binary | always |
icon-image = "/abs/icon. |
A PNG, decoded once, scaled at the output’s real scale | +115 KB of binary | --features icon-image |
Path icons
Section titled “Path icons”icon-path takes the d attribute of an SVG <path>: M m L l H h V v C c S s Q q T t A a Z z with implicit repeats and shorthand numbers.
A number that is not finite or past 1,000,000, a path not starting with
M, or one that draws nothing is refused, naming the byte it stopped at
and the config key (e.g. clock.).
The bounds are 16 KiB of text, 1024 commands (an implicit repeat counts each time), and 4096 segments.
The path has no size of its own, so icon-viewbox = "min-x min-y width height"
says which part of its plane is the icon. The default is 0 0 24 24
(Material’s); Font Awesome’s are 0 0 512 512 and so on. The viewbox is fitted
into the icon’s square with SVG’s xMidYMid meet: scaled uniformly, centered.
The size is the em in device pixels, rounded, so the icon is as tall as the
text’s em at any scale. It is drawn tinted with the theme token of the
view’s class (normal fg, warn accent, urgent urgent, muted dim),
so it follows the theme like the text beside it.
A gap of one space of the primary
font follows it when text does. The fill rule is SVG’s default nonzero:
a hole wound the other way cancels, same-direction overlap saturates.
The bitmap is cached per (icon, size) in one arena of at most 4 MiB and 16 entries; past either limit the cache is dropped and refilled from what is drawn next. A size past 512 pixels draws nothing and takes no room. A path icon costs microseconds once per (icon, size) and nothing per frame.
Image icons
Section titled “Image icons”icon-image = "/abs/path. (an absolute path; a relative one is refused) in
a build with the icon-image feature. Decoded once,
when the config is read (so a bad file is a refused reload naming
clock., with the running bar untouched), and dropped with the module at the next
reload.
The feature is off by default: the decoder adds about 115 KB, where a path icon
costs 37 KB and follows the theme. Build it in with --features icon-image, or on
Nix through the module’s features list
(programs., see
Overview). Without it the key is unknown, and
the config error says so, as for a module that is not built.
Where it runs: on the daemon’s main thread, when the config is read (start-up
and every scootbar msg reload), so a large file stalls the bar for as long as
it takes to decode (10.7 ms for a 1024x1024 RGBA image, 24 ms worst case).
Nothing runs per frame.
Limits, as for the font loader: it must be a regular
file (a FIFO or device is refused without a read; a symlink loop is the
kernel’s ELOOP), at most 8 MiB (a file that grew past that since fstat
is cut and refused); the decoder has a 16 MiB allocation budget and the header’s
size is checked before any pixel buffer exists (at most 1024 x 1024).
Ignored: gamma (gAMA), sRGB, ICC profiles and text chunks:
the pixels are taken as stored. Palettes, 1 to 16 bits, gray, gray and alpha, RGB and RGBA are all read.
Adam7-interlaced files and animated PNG show the default
image.
The image is fitted into the em-sized square keeping its aspect ratio, centered, with transparent margins, and drawn source-over with its own colors (not tinted). The bar reads no SVG files: convert a full-color SVG to PNG ahead of time (the Nix module can do this in a derivation).
Fonts: what the real ones do
Section titled “Fonts: what the real ones do”Tested on headless scoot (scale 1, a 32-pixel bar,
15 px): primary DejaVu Sans with a Nerd Font symbols fallback and a CJK
fallback, [clock] format = "%H:%M 日本語 한국어 中文", icon = "\U000f0e65".
![]()
The symbol icon, the Latin digits and the three CJK scripts all draw, from three
files, with no . box.
Hinting
Section titled “Hinting”Text is not hinted. Hinting gave a small gain at 1x sizes for 57% more binary and a sixth more memory, so the bar ships unhinted:

What was not built
Section titled “What was not built”- Icon-theme lookup (
.files and named icons): only the tray or window icons would need it. It is not started.desktop
