Configure scoot
One TOML file holds everything (layout, appearance, animation,
outputs, binds, global shortcuts, floating rules, autostart, wallpaper), and most of it
re-applies live with scoot msg reload. No config file yet?
--print-default-config writes a starting one (below).
The config file
Section titled “The config file”--config PATH loads a TOML file explicitly. Without it, scoot looks
for $XDG_CONFIG_HOME/scoot/config., falling back to
~/., and runs on built-in defaults if
neither exists. Seventeen optional tables: [layout], [appearance],
[animation], [scroll], [gestures], [output], [[outputs]], [renderer], [tty], [xwayland], [virtual_input],
[autostart], [floating], [switcher] (see Windows), [wallpaper], [binds], [global_shortcuts], plus any number of
[[window_rule]] entries. Every field in every table is itself
optional and defaults independently, so a config that only sets gap
leaves everything else at its built-in default.
scoot --print-default-config > ~/.config/scoot/config.tomlwrites a starting file to stdout (never to a path, so it cannot clobber
anything), generated from the same defaults this section documents. Every
key is present and commented out with its default as the value, so the
file as-is is exactly the defaults. --write places that same
emission at the default location directly, private to you (0o600),
and refuses loudly rather than overwriting anything already there.
(On a machine without the scoot binary, copy the
example below instead.)
Failure semantics
Section titled “Failure semantics”An explicit --config PATH that doesn’t exist or can’t be read is a
hard startup error, since you pointed at it on purpose. Every other problem
falls back to defaults and logs instead of blocking startup, with two
exceptions (both cases where guessing would be worse than refusing):
- No file at the default path: silent, not even a log line (a fresh install, not a mistake).
- Malformed TOML, an unknown field, or a wrong-typed field anywhere
in the file: logged as an error, and the entire file is discarded
for full built-in defaults. A single bad field in
[layout]also throws away an otherwise-valid[binds]table. - One bad
[appearance]color, one bad[binds]entry, one bad[autostart]entry, or one unusable[[window_rule]]: logged as a warning, and only that field/bind/entry/rule falls back and everything else still applies. - Anything wrong inside
[wallpaper]: logged as an error, and only the wallpaper is skipped and the rest of the file applies. - A set-but-unusable
[tty] gpu: a hard startup error naming the key, not a silent fallback to the automatic pick. The same for[renderer] backend = "gpu"with no working EGL.
On --tty scoot is the session, with no other compositor to fall
back to, so it always starts with something usable and says what’s wrong
in the log.
Reloading the config
Section titled “Reloading the config”Two triggers re-read the startup file and re-apply what can go live:
scoot msg reload, which answers with an applied-vs-refused report;kill -HUP <compositor pid>, which drives the same path with no reply channel (the summary goes to the compositor log instead).
There is no file watching: a reload happens only on the two triggers above.
Applied live: layout (gap, column widths, default width), output
scales and positions, [[outputs]] modes (a live resize per backend;
--nested refuses them because the host owns the size), appearance (ring, background, corners, cursor), animation
(enabled, duration, easing), [scroll] step, [gestures] (all but client_gestures), the whole
[binds] table (scroll binds included), the [global_shortcuts] chords, new [autostart] spawn entries, [floating] and the
[[window_rule]]s (for windows that map after the reload), [switcher]
(from the next switcher), [wallpaper]
(handed to scootbg again), [xwayland] fractional. The reply names
each applied field:
{ "type": "reloaded", "applied": ["layout.gap", "binds"], "refused": ["tty.gpu (takes effect on restart: the session already drives its device)"], "shadowed": ["appearance.background_color"], "invalid": [] }shadowed lists every file key that overrides the active look (see
Appearance); invalid lists file keys
whose bad values fell back to the look’s. scope names which reload ran:
absent for a plain reload, "look" for a look-scoped one (below). The
reply answers once the wallpaper run is handed over, without waiting for
it. The look itself
lives at $XDG_STATE_HOME/scoot/look/scoot. (or
$SCOOT_LOOK_STATE/look/scoot.); a reload with a dangling link or an
unreadable fragment there is refused whole, keeping everything.
A look-scoped reload (scoot msg reload --look, driven by
scoot look apply) swaps only what the look layer supplies (appearance
and wallpaper), merged under a snapshot of the file from the last
successful plain load. It never re-reads the file, so it never applies
pending edits, spawns no autostart entry and swaps no binds; a
half-written file cannot refuse it. A missing or broken layer refuses it
whole, keeping everything. SIGHUP always runs the plain reload. Both
reloads work the same on a Nix install and a plain binary install.
Refused, pending a restart: [tty] gpu, [renderer] backend, [xwayland] enabled, [virtual_input] enabled,
[virtual_input] binds and [gestures] client_gestures. All six take effect
on restart, and each refusal says so. A reload
that cannot load the file answers an error instead, keeps the
running config untouched, and logs. It never falls back to defaults,
half-applies, or exits.
Two guarantees hold across every reload: a key held across a [binds]
rebuild (or a [global_shortcuts] re-resolve) neither wedges nor drops; and under --tty a reload cannot
strip the Ctrl+Alt+F1.. VT-switch recovery bindings. They are
layered back on last, overriding any colliding file bind with a
warning. A reload applies while the session is locked, except new
autostart entries, which wait for the first unlocked reload.
A successful reload drops every live scoot msg output-scale
scale: the outputs go back to the file’s scales (see
Outputs), whether or not the file changed. Each dropped
scale the file disagrees with is listed in applied as
outputs., the same name a changed [[outputs]] entry
reports under (a monitor unplugged since it was set is listed too: it
would have come back at that scale). A reload that cannot load the file
keeps them.
Symptom: a reload changed nothing and both lists are empty. That means “the reload changed nothing it was asked to”: the file and the session already agree, and no live
output-scalescale was left to drop. Edit first, then reload.
Autostart
Section titled “Autostart”| Field | Type | Default | Reload | Meaning |
|---|---|---|---|---|
commands |
array of strings | [] |
new spawn entries run once each |
Action strings to run once each, in file order, at session startup — before the -- command. |
Each entry is an action string: anything scoot msg action would
accept and a [binds] value could contain:
[autostart]commands = [ "spawn waybar", "spawn mako",]Fail-open per entry: a malformed entry is skipped with a warning
naming that entry; every other entry still runs, and the session
always starts. No supervision: an entry that exits instantly is
reaped, not restarted. A reload runs the spawn delta (entries the
session has not seen yet run once each; a reloaded non-spawn,
quit included, is refused by name, so a reloaded quit cannot end
the session).
Idle: locking and screen power
Section titled “Idle: locking and screen power”This is the manual recipe for sessions outside the flake. scoot
provides the protocols; the policy ships with the desktop
profile. Outside the flake, write the same
policy as a swayidle setup. spawn splits on whitespace with no shell,
so put the swayidle line in a small script the session starts:
#!/bin/shexec swayidle timeout 600 'swaylock' timeout 900 'wlopm --off \*' resume 'wlopm --on \*'The \* is required: swayidle runs each command through sh -c,
which would glob a bare * against its working directory. The
backslash reaches sh intact inside the single quotes, so wlopm
receives a literal *, its “every output”.
[autostart]commands = [ "spawn /home/you/.config/scoot/idle.sh",]Lock after ten minutes, panels off after fifteen, back on at the first
input. The same state is drivable over IPC
(scoot msg output-power 1 off, scoot msg outputs reporting it).
Animation
Section titled “Animation”| Field | Type | Default | Reload | Meaning |
|---|---|---|---|---|
enabled |
boolean | false |
live, snaps any live slide or fade | Slide tiled windows horizontally and vertically to their new place instead of jumping, and fade new windows in on open (closes snap). |
duration_ms |
integer | 150 |
live, later slides and fades only | How long one slide or fade takes. 0 snaps immediately. Clamped 0... |
easing |
string | "ease-out" |
live, later slides and fades only | The curve: "ease-out" (default), "linear", or "spring" (overshoots ~9% past the target, then settles; still lands exactly on time). Anything else warns and uses the default. |
[animation]enabled = trueduration_ms = 150easing = "ease-out"Off by default, and free when off: no timer, no per-frame work, no
allocation. When on, only the moving windows’ old and new rects are
redrawn per frame; clients are never asked to re-commit. scoot msg windows and pointer input keep reporting the final geometry while a
slide runs. A spring overshoot is purely visual, and input still hits the
target. New windows fade in from transparent over the same
duration_ms/easing instead of appearing instantly, and only genuinely
new windows do: a window scrolling back into view after a sibling closes
snaps rather than fading in like a fresh open. Closes snap; there is no
close fade. Floating, fullscreen and maximized windows snap
rather than slide or fade. Switching workspaces slides the whole incoming
strip in from the output edge as one unit (right for a higher workspace,
left for a lower one) with no per-window fade on top; an empty workspace
has nothing to draw, so it snaps. Each output animates independently.
Disabling mid-slide or mid-fade snaps to the final frame. The clamped
duration bounds a spring’s settle, and a frame past its deadline snaps
instead of queuing.
Accessibility
Section titled “Accessibility”[accessibility] holds session-wide preferences the shell apps follow.
| Field | Type | Default | Reload | Meaning |
|---|---|---|---|---|
reduce-transparency |
boolean | false |
live | Make scootnotify’s frosted or translucent surfaces opaque: the notification cards, their pill and the notification center draw their fill at full opacity, with no wallpaper behind it. Windows, the bar, the launcher and the wallpaper are unchanged. |
[accessibility]reduce-transparency = truescootnotify reads it over IPC (the accessibility event),
so a scoot msg reload after editing the file turns the cards opaque
at its next paint; nothing restarts. An app running under another
compositor, or under a scoot older than IPC protocol 17, sees it as
off.
Symptom: you turned
reduce-transparencyon and the cards are still frosted. Check thatscoot msg reloadlistedaccessibility.among the applied keys, and thatreduce-transparency scoot msg subscribe accessibilityprints"reduce_transparency":true. A scootnotify started before scoot (or against another compositor) has no link to it: restart scootnotify.
Scroll
Section titled “Scroll”[scroll] tunes scroll binds, the
"super+scroll-down" = "... entries of [binds]. It has one field.
| Field | Type | Default | Reload | Meaning |
|---|---|---|---|---|
step |
number | 60 |
live | Units of continuous scroll (two-finger touchpad scroll) per bind step. A wheel click is 15 units, so the default is four clicks’ worth. Clamped 1..; a non-number or non-finite value warns and uses the default. Wheels that report clicks ignore it: one click is one step. |
[scroll]step = 40A smaller step fires more often per swipe. A reload forgets any half-counted step, so the new value never inherits motion measured against the old one.
Gestures
Section titled “Gestures”[gestures] sets what a multi-finger touchpad swipe does. A swipe with
exactly swipe_fingers fingers is scoot’s. Behaviour, edge cases and what to try when nothing happens
are in Touchpad gestures.
| Field | Type | Default | Reload | Meaning |
|---|---|---|---|---|
swipe_fingers |
3 or 4 |
3 |
live | How many fingers make a swipe scoot’s. Anything else warns and uses 3. |
horizontal |
string | "focus-column" |
live | "focus-column" scrolls the strip under the fingers and settles on the column it lands on, aligned to the usable edge (scroll-view-to-column). "none" turns the horizontal swipe off. |
vertical |
string | "focus-workspace" |
live | "focus-workspace" or "focus-window" fires one step when a vertical swipe ends. "none" turns it off. |
natural |
bool | true |
live | The content follows the fingers, as on macOS. false reverses both axes. |
sensitivity |
number | 1. |
live | Scales how far the strip follows the fingers; 1. is one logical pixel per libinput swipe unit, about 10 pixels per millimetre of finger travel on the pad this was measured on, and a real pad may differ. The defaults here, this one included, were tuned on a synthetic touchpad, not a real one. Raise it if swipes feel short. Clamped 0.; a non-number or non-finite value warns and uses 1.. |
client_gestures |
bool | false |
restart | Offer windows the zwp_pointer_gestures_v1 protocol, so a browser or viewer can use the pad’s pinch and hold and the swipes that are not scoot’s. Anything but true or false warns and uses false. |
[gestures]swipe_fingers = 4vertical = "focus-window"natural = falseEach bad value falls back to its own default and leaves the rest of the
table alone. With horizontal and vertical both "none", swipes are not
scoot’s at all. A reload applies from the next swipe: one already under
way finishes with the values it began with.
client_gestures is the exception to “live”. The protocol is advertised once,
at startup, so a reload that changes it is refused with takes effect on restart; the other keys in the same table still apply. It is off by default
because a window that sees the protocol changes how it treats the touchpad
(GTK 4, Firefox and Chromium use it for pinch zoom and swipe navigation), and
that has not been checked on a real touchpad. Turn it on, restart, and try the
apps you use. With it on, pinch and hold always go to the window under the
pointer, and so does a swipe with a finger count other than swipe_fingers; a
swipe that is scoot’s never does (see
Touchpad gestures).
In a --nested session client_gestures also decides what scoot asks its
host for: pinch and hold only with it on, swipe always (see
Gestures in a nested session).
[gestures]client_gestures = trueSymptom: pinch-to-zoom does nothing in a browser or image viewer.
client_gesturesis off, so the window cannot ask for the pad’s gestures. Set it totrueand restart scoot;scoot msg reloadwill refuse the change.
Example config.toml
Section titled “Example config.toml”[layout]gap = 8column_widths = [0.25, 0.5, 0.75, 1.0]default_column_width = 1
[appearance]focus_ring_width = 4focus_ring_inactive_width = 2focus_ring_active_color = "#ffaa00"focus_ring_inactive_color = "#333333"background_color = "#101014"cursor_size = 24cursor_color = "#ffcc66"# Unset follows $XCURSOR_THEME, then "default" -- i.e. the rest of the# desktop. Name one here only to override that.# cursor_theme = "Adwaita"prefer_no_csd = true
[output]# 1.0 is correct for a non-HiDPI display; raise it (e.g. 2.0) on a HiDPI# panel, or text and widgets render far too small.scale = 1.0
# A HiDPI laptop panel beside an ordinary monitor: each its own scale, by# the connector name `scoot msg outputs` lists.# [[outputs]]# name = "eDP-1"# scale = 2.0## [[outputs]]# name = "DP-1"# mode = "1920x1080"
# [animation]# Slide tiled windows horizontally and vertically instead of jumping. Off by default.# enabled = false# duration_ms = 150# easing = "ease-out" # "linear" or "spring"
# [scroll]# Continuous scroll units per scroll-bind step (a wheel click is 15). Live on reload.# step = 60
# [gestures]# Multi-finger touchpad swipes. Live on reload.# swipe_fingers = 3 # 3 or 4# horizontal = "focus-column" # or "none"# vertical = "focus-workspace" # "focus-window" or "none"# natural = true # content follows the fingers# sensitivity = 1.0 # how far the strip follows the fingers, 0.1..=10# client_gestures = false # offer windows pinch/hold/swipe (zwp_pointer_gestures_v1); restart
# [renderer]# Type string, default "auto". One of "auto" (the default: the GPU# renderer on real hardware, the CPU renderer everywhere else; never fails# startup), "cpu" (pixman; needs no graphics device), or "gpu" (GLES;# scanout on --tty). Restart-only: a reload refuses a changed value.# --renderer wins over this when both name one, and SCOOT_RENDERER beats# this when --renderer is absent.# backend = "auto"
# [tty]# Uncomment only on hardware where the automatic DRM device search picks# wrong. Unset means the automatic search picks; --gpu PATH on the command# line wins over this when both name one. Name the display controller,# never the render node, and prefer a stable /dev/dri/by-path/... alias.# gpu = "/dev/dri/by-path/platform-soc:display-subsystem-card"
[binds]"super+n" = "focus-column right""super+shift+n" = "move-column right""super+t" = "spawn foot""super+y" = "spawn foot -e htop""ctrl+alt+space" = "spawn fuzzel"
[autostart]commands = [ "spawn waybar", "spawn mako",]
[floating]# Dialogs, transient and fixed-size windows float when they map; false# tiles everything except what a rule floats.auto = true# Alt+drag moves and resizes floating windows (Super is the default).modifier = "alt"
# pavucontrol's app id is org.pulseaudio.pavucontrol (`scoot msg windows`# shows any window's).[[window_rule]]match_app_id = "*pavucontrol"float = truesize = [700, 500]
# Needs scootbg installed (the Nix modules do it for you).[wallpaper]image = "~/Pictures/hills.jpg"mode = "fill"
[wallpaper.output."DP-2"]color = "#101014"Next: Layout and Appearance cover every field of both tables.
