scootbar theming
The bar reads a look layer under its own file: <state>/look/bar.
merged per key, with the file winning every key it sets. A value set in
settings (Nix) or bar. always wins — per key, never wholesale.
From a look
Section titled “From a look”The layer carries the six [colors] tokens, the five popup state tints
(state-hover, state-pressed, state-selected, hairline, highlight,
only for a bar with popups, from a look with a
[state] table), the [bar] style keys
(radius, popup-radius, opacity, font-size, font-weight from the
look’s fonts., padding, spacing,
separator, shadow, fill, motion, motion-duration-ms, motion-bounce), the workspaces pill keys and the per-module glyph icons.
It never carries geometry, placement, module lists, commands or
actions. hover follows a custom accent when unset: a file that sets
only accent derives its hover from it, and a file that sets only hover
keeps the look’s accent. shadow (none, soft, deep or glow)
and fill (solid or gradient) lift the bar and its popups off the
windows behind them; how the shadow uses the bar’s margin is in
Shape, opacity and depth.
motion (none, ease-out or spring), motion-duration-ms
(0 to 1000) and motion-bounce (0 to 1) slide popups open; a look that sets none
renders as before. afterglow (the default) takes a soft shadow and a
240 ms spring, over an 80 % opaque bar; matte-ink takes no shadow and no motion.
A bar without scoot has no state link. It pins a rendered fragment instead:
[look]layer = "/run/current-system/sw/share/scoot/rendered/hearth/bar.toml"Without Nix, render the fragment with scoot-look build and point
[look] layer at it (or place it at the state link). See
Look layer for the precedence, the
fixed layer and the reload scopes.
The shipped looks, and what each gives the bar:
| Look | Bar colors |
|---|---|
hearth |
graphite, warm white and clay |
linen |
paper, ink and blue |
nocturne |
indigo, lavender and periwinkle |
afterglow (default) |
charcoal, white and coral, 80 % opaque |
sumi |
ink, paper and gold |
frostline |
navy, white and rose-peach, 55 % opaque |
graphite |
near-black, white and indigo |
matte-ink |
black, grey and amber |
To opt out per target while the rest follows the look, use
programs., the namespace every
desktop piece uses (as with the lock screen).
From Stylix
Section titled “From Stylix”Without scoot, a bar under Stylix themes from the stylix look
instead of eval-time values: nothing from Stylix lands in settings.
With a scoot catalog in the configuration, the bar follows the
stylix look like any look (through scoot look sync) and this
path stays off.
programs.— Type: bool. Default:scootbar. stylix. enable true. The bar-only path: with Stylix present and enabled, and no scoot look catalog in this configuration, render thestylixlook’s bar fragment at build time (the samescoot-lookbinary the catalog uses) and pin it as a fixed[look] layerin the renderedbar.. A value you set intoml settingsstill wins per key at runtime; this only turns the layer off. Alook.you set inlayer settingswins over the pinned one.home.nix programs.scootbar.stylix.enable = false;
Your file and flags still win per key over the layer; every other
key follows it. The fragment carries its own face, and the
plain-default font stays out while the layer is active. The face is the regular file found in the Stylix
sans package (DejaVuSans. for “DejaVu Sans”,
Family-Regular. for Noto or a Nerd Font). Variable fonts,
. collections and odd namings are not resolved; the bar then
falls back to its default face with a build-time warning, not
a failed build.
With a catalog present the option does nothing and warns at
evaluation, because the bar follows the active look. Set it to false to silence the warning.
Precedence, highest first, per key: daemon flags, the file, the look layer, the module’s plain default.
The six tokens, and how icons follow them (path icons tint from the theme; image icons keep their own colors), are in Colors and Icons.
