The look picker

scootlaunch --looks opens the look picker: a pane hanging from the top
of the desktop with one column per look in the catalog. Each column shows
the look as a miniature desktop over its wallpaper, its name and
description, and the wallpapers it can wear: its own first, then every
other look’s. As the focus moves, the look and wallpaper it is on are
applied to the desktop behind the pane, so you judge a look on your own
windows. Enter keeps the choice; Escape puts back exactly what was there.
scootlaunch --looks # open the picker (Super+Shift+P runs `scoot look pick`, which opens it)scoot look pick # the same, with fuzzel as the fallback without scootlaunchSuper+Shift+P is a default binding of the compositor. Pressing it again,
or running scootlaunch --looks again, closes an open picker as Escape
does. The picker exits 0 when a choice was kept and 1 when it was
cancelled, and prints one line saying which ({"kept":{"look":NAME, "wallpaper":LOOK|null}} or {"cancelled":true}). A run that closed an
open picker exits 0 and prints {"toggled":true}.
| Keys | Does |
|---|---|
| ← →, Ctrl+h / l | the previous or next look |
| ↑ ↓, Ctrl+k / j, Tab / Shift+Tab | the previous or next wallpaper for the focused look |
| letters, digits, space | filter the looks by name or title (a subsequence: mi finds Matte Ink) |
| Backspace | delete the filter’s last character |
| Enter | keep the focused look and wallpaper, and close |
| Escape | clear the filter; with no filter, put back what was there and close |
Without Ctrl, h, j, k and l type into the filter. Super+h/j/k/l stay
the desktop’s focus keys: they move the windows behind the picker, not
the picker. Neither axis wraps. Moving to another look
starts it on its own wallpaper.
The mouse: click a column to focus it, click one of its wallpaper rows to focus that wallpaper, and click the focused column (or its focused row) to keep it. The wheel moves between looks. A click outside the pane cancels, as Escape does.
What the preview changes
Section titled “What the preview changes”A preview starts once the focus has rested for 150 ms, so holding an arrow sweeps the columns without applying each look on the way. One apply runs at a time; the newest focus runs after it.
| Preview | Enter | Escape | |
|---|---|---|---|
| Runs | scoot look apply NAME --wallpaper W --no-toolkit --no-helix --no-btop --no-leaves --only-if-generation N |
scoot look apply NAME --wallpaper W |
the preview command for the look and wallpaper the picker opened on, when a preview moved them |
| Compositor, bar, wallpaper | change | change | back to how they were |
| Daemon reloads (mako, scootnotify, fcitx5, the OSD and night-light units), your look targets’ reload commands | skipped (--no-leaves) |
run | skipped |
| GTK/Qt settings, Helix, btop | untouched | change | untouched |
look. |
rewritten (the look layer reads it) | the kept choice | the original choice again |
The pane itself follows the preview: its colors, font and
font-weight are the previewed look’s (a --font or a config
font keeps its font, at the previewed look’s weight).
The desktop changes with the wallpaper transition the look sets. A preview
that refuses (a look that does not validate) leaves the desktop on the last
look that applied and shows the reason in the error field of the state;
the picker stays open. With no look applied yet (no look.), nothing
previews: Escape would have nothing to put back. Enter still applies.
Symptom: a previewed look stayed after the picker was killed. A picker ended by a signal (Ctrl+C on
scoot look pick,kill, the SIGTERM a logout sends) cannot put anything back; Escape, a click outside, the toggle and the compositor going away all do.scoot look apply NAMEreturns to your look and also re-syncs the GTK and Qt settings and the daemons the preview skipped.
Symptom: Escape left a different look than the one the picker opened on. Something else applied a look while the picker was open: another
scoot look apply, ascoot look autoswitch, or a Nix activation (home-manager with Stylix) runningscoot look sync. Each preview names the record generation it builds on (--only-if-generation), so once the look moves elsewhere the previews refuse (theerrorfield says so) and Escape leaves that newer choice in place instead of writing back a stale one.
Symptom: the picker never previews.
scoot look currentmust name a look, andscootmust be on PATH.scootlaunch --looks-msg stateshows"live": falsewhen either is missing.
Wallpapers
Section titled “Wallpapers”The rows under a look are the wallpapers it can wear: its own, then every
other look’s in catalog order, the same list for every look. The choice is
scoot look apply NAME --wallpaper LOOK (Looks):
recorded with the look, so it stays until you pick another look. The
picker opens on the look and wallpaper you have.
The miniatures are each look’s wallpaper, read once by scootbg sample-image and cached under $XDG_CACHE_HOME/scootlaunch/thumbs/ (a few
hundred kilobytes per look), with the look’s bar and windows drawn over it
in its colors.
Symptom: the miniatures are flat colors.
scootbgis not on PATH, or refused the image (scootbg check-image FILEsays why). A look whose wallpaper file is missing shows its fill color.
Where it opens
Section titled “Where it opens”The pane hangs from the top of the output under the pointer (as the launcher opens), below the bar, the desktop’s gap in from each edge, as tall as its columns. Columns past the width scroll to keep the focused one in view. On a short output each column shows fewer wallpaper rows (one at least) and scrolls them.
Behind the pane is the wallpaper, blurred: scootbg’s blurred copy for the
lock screen, made once per wallpaper change, never a blur per frame. Its
fill is held to 4.5:1 for every text over any wallpaper: the look’s dim
text is lifted toward its foreground where it would read less. Without
scootbg the pane is the look’s plain surface color.
Closed, the picker is no process. Open and at rest it draws nothing and wakes for nothing.
Drive it from a script or an agent
Section titled “Drive it from a script or an agent”While it is open the picker listens on
$XDG_RUNTIME_DIR/scootlaunch-looks-<display>.. scootlaunch --looks-msg REQUEST sends one request and prints the reply, one JSON line,
exiting 0 for "ok": true and 1 otherwise (or when no picker is open).
scootlaunch --looks &scootlaunch --looks-msg state # where everything isscootlaunch --looks-msg 'focus linen' # focus a look (it previews)scootlaunch --looks-msg 'wallpaper sumi' # wear sumi's wallpaperscootlaunch --looks-msg keep # keep it and close| Request | Does |
|---|---|
state |
nothing; the reply is the state |
focus NAME |
focus that look (it must be shown by the filter), on its own wallpaper |
wallpaper NAME, wallpaper own |
focus that look’s wallpaper for the focused look |
query TEXT |
set the filter to the rest of the line |
move left, right, up, down |
what the arrow keys do |
keep |
Enter |
cancel, close |
Escape (with no filter) |
watch |
the state now, then one line at every change, then {"event":"closed",... |
The reply is the state, or {"ok": false, "error": REASON}:
| Field | Meaning |
|---|---|
open, shown, keyboard |
open; its first frame is on screen; it holds the keyboard |
output, size, margin |
the output it is on, the surface’s logical size, its margins (top, right, bottom, left) |
pane, field |
the pane’s and the filter field’s [x, y, width, height] |
query, live, previewing, error |
the filter; whether moves preview; a preview waiting or running; the last refusal |
focus, original, applied |
{look, wallpaper}: what Enter keeps, what Escape restores, what the desktop shows now (wallpaper null: the look’s own) |
looks[] |
name, title, dark, focused, current, rect, visible per shown look |
wallpapers[] |
from, own, focused, rect, visible per wallpaper of the focused look |
Rectangles are logical pixels from the surface’s top-left corner, the part
in view; visible is false for a column or row scrolled out of the pane
(its rect is then zeros). The surface is anchored to the top, left and
right edges of the output’s free area: add margin and the output’s usable
area (scoot msg outputs) to click a rectangle with scoot msg click.
Symptom:
--looks-msgsays no look picker is open. The socket exists only while it is open, under the sameXDG_RUNTIME_DIRandWAYLAND_DISPLAYas the picker.
