Skip to content

scootbar theming

The bar reads a look layer under its own file: <state>/look/bar.toml merged per key, with the file winning every key it sets. A value set in settings (Nix) or bar.toml always wins — per key, never wholesale.

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.ui-weight, 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.scoot.desktop.theme.targets.<name>.enable, the namespace every desktop piece uses (as with the lock screen).

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.scootbar.stylix.enable — Type: bool. Default: true. The bar-only path: with Stylix present and enabled, and no scoot look catalog in this configuration, render the stylix look’s bar fragment at build time (the same scoot-look binary the catalog uses) and pin it as a fixed [look] layer in the rendered bar.toml. A value you set in settings still wins per key at runtime; this only turns the layer off. A look.layer you set in settings wins 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.ttf for “DejaVu Sans”, Family-Regular.ttf for Noto or a Nerd Font). Variable fonts, .ttc 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.