The notification center
The notification center is a panel that slides out from under the bar
and shows the history ring grouped by app. It is where notifications held
by do-not-disturb wait, and where you act on them later. It is part of the
scootnotify daemon, so there is nothing else to install; the bar’s
bell module opens it.
Open it
Section titled “Open it”-
Click the bar’s bell. The panel opens from the bar’s edge (top or bottom) on the output you clicked.
-
From a keybinding or a script:
Terminal window scootnotify msg center toggle # open, or close an open panelscootnotify msg center open --edge bottom # under a bottom barscootnotify msg center close--output NAMEopens the panel on that output, and--bell CENTER,WIDTHopens it under a bell whose center isCENTERlogical pixels from the output’s left edge on an outputWIDTHwide. Without--bell,openandtoggleread the same value from theSCOOTNOTIFY_BELLenvironment variable, which the bar’s bell sets on the command it runs. A script normally sets neither and lets scootnotify ask the bar.A scoot keybinding (
~/.):config/scoot/config. toml [binds]"super+alt+n" = "spawn scootnotify msg center toggle"
The panel opens under the bar’s bell: centered on the bell, but never nearer an output’s side than the stack’s margin, so a bell near the corner opens it in the corner. Where it finds the bell:
- A click on the bell passes the bell’s place to the command it
runs (
SCOOTNOTIFY_BELL, above), so the panel opens under the bell you clicked. - A keybinding or script (neither
--bellnorSCOOTNOTIFY_BELL): scootnotify asks the bar (scootbar’slayoutrequest) as the panel opens, and moves the panel under the bell when the answer arrives, usually before the first frame. - No bell to open from (no bar, a bar without the bell module, the
bell on another output or a bar on the other edge, another compositor):
the panel sits in its configured corner (
side, below).
While the panel is open, scootnotify hears about the bell only when it pushes a change to the bar (a new notification, a dismissal, a do-not-disturb toggle) and reads the bar’s layout after it. If that push finds the bell moved, the panel follows it. If the push finds no bar (it quit or was killed) or no bell module, the panel goes back to its corner. Between pushes the panel stays where it is: scootnotify does not poll the bar.
It closes on Escape, on a click outside it (scoot sends the panel
closed; another compositor that moves keyboard focus on a click does
the same through the focus leaving), and on msg center close or
toggle. A click on the bell while the panel is open closes it.
Opening the panel marks every history entry seen, so the bell’s badge empties. Entries that were unread when you opened it keep their dot until you close it.
What it shows
Section titled “What it shows”- The title row: the unread count, Clear all, and the do-not-disturb switch.
- A status line while do-not-disturb is on (“Quiet hours until 07:00”, “Do not disturb until 22:00”, “Do not disturb is on”) or quiet hours are set (“Quiet hours 22:00–07:00”).
- One block per app, the group with the newest entry first. A block
is drawn like the app’s cards: the app’s tile with its glow at the
left, the app’s color washed across the block, and no dividing lines;
blocks sit the desktop’s gap (12 px) apart and from the panel’s edge.
Beside the tile is the app’s name, the entry count when there are two
or more, a chevron that collapses or expands the group, and, under the
pointer, a clear button for the whole group.
card.turns the app colors off. A collapsed group shows its newest summary and how many more. Collapsed groups stay collapsed across opens until the daemon restarts.app-accent = false - Entries, newest first: the summary, two lines of body, a progress
bar when the notification carried one (the
valuehint), the action buttons while it is still open (see below), and a meta line with how long ago it arrived, in the cards’time_style(“now”, “4m”, then the clock time). An unread entry has a dot before the time. A critical entry sits on a fainturgenttint with a “!” badge before its time.
While the panel is open, groups keep their places: clearing an entry, or a new notification from an app already shown, never moves a group under the pointer. A new app’s group comes in at the top. The next open orders the groups by their newest entry again. Relative times update while the panel is open.
Past the output’s height the body scrolls (wheel, or the keyboard following the focus).
Act on an entry
Section titled “Act on an entry”Under the pointer an entry shows what each part does: its meta line reads “Go to foot →” and a dismiss button (×) appears at its top right.
- Click the entry (or Enter) to go to it: the window it came from is
focused and scrolled into view, the way a click on its card does, then
its
defaultaction runs if it has one (an open entry, see below). The panel closes. When no window is found and the entry has nodefaultaction, it is restored as a card instead. - Click its × (or right-click the entry, or Delete) to clear it. The
entry slides out toward the screen’s edge and fades, and the entries
under it move up to close the gap. With
motion = "none"in the look it is gone at once.
What else an entry can do depends on whether the app still holds its id.
- Open entries are notifications do-not-disturb or a rule’s
hideheld. The app was given an id and was never told the notification closed, so it still exists for the app. Its action buttons are shown, and a click (or Enter) sends the appActionInvokedfor that id, as if the card had shown at arrival, then closes it (NotificationClosed, reason 2) unless the app marked itresident. Clicking the entry invokes itsdefaultaction when it has one. Clearing an open entry closes it with reason 2; an open entry pushed out of a full ring closes with reason 4; the app can still close it itself (CloseNotification, reason 3) or replace it (replaces_id). - Closed entries are cards that showed and closed. Their id was
invalidated by
NotificationClosed, so the spec gives no way to reach the app about them: they show no buttons. Clicking one goes to its window; with no window to go to, it is restored as a new card with a new id (msg restorealways restores).
Restoring an open entry brings back the notification itself, with its id and its buttons, instead of a copy.
Going to an entry, an action or a restore from the panel closes the panel, so the app or the card gets the keyboard back (a key typed for the app must not clear history). Clearing, collapsing and the do-not-disturb switch keep it open.
Cards held past a sender’s rate limit are kept closed, so a flood earns no signals.
Keys and the pointer
Section titled “Keys and the pointer”| Key | Does |
|---|---|
| Down / Up | next / previous row |
| Tab / Shift+Tab | next / previous target, row after row (an entry, its buttons, its dismiss button) |
| Right / Left | next / previous target in the row |
| Home / End | first / last row |
| Page Down / Page Up | five rows down / up |
| Enter, Space | activate the focused target (on an entry: go to it) |
| Delete, Backspace | clear the focused entry, or the focused group |
| Escape | close the panel |
Nothing is focused when the panel opens. The keys are physical keys,
the same on every layout; an XKB remap of them (caps:escape) is not
followed, so use the Escape key itself, or click outside. A key held
down does not repeat; Page Down and End cover long lists. A left click
activates what it lands on; a right click clears the entry or group under
the pointer. The focused entry shows its dismiss button and “Go to …” as
the pointer does.
Configure it
Section titled “Configure it”The [center] table in notify.:
width_px: the panel’s width. Type: integer, 280 to 720. Default:400. Example:width_px = 440. Reload:msg reload(an open panel lays out again).edge: the edge the panel opens from when the request names none (a keybinding; the bell always names its bar’s). Type:"top"or"bottom". Default:"top". Example:edge = "bottom". Reload:msg reload, from the next open.side: the side the panel is anchored to, and the corner it sits in when there is no bell to open under. Type:"right"or"left". Default:"right". Example:side = "left". Reload:msg reload, from the next open.
[center]width_px = 400edge = "top"side = "right"The panel sits the stack’s margin (margin_px, else scoot’s layout
gap, 12 by default) below the bar and at least that far from the
output’s sides, like the cards, so it lines up with the windows and the
bar. A msg reload that changes the margin moves an open panel at once.
It draws with the cards’ look: their surface, ring, radius,
shadow, fonts, per-app accents and time_style. It slides in, and a
cleared entry slides out, with the look’s [effects] motion
(motion = "none" opens it and clears entries at once, with no motion);
scoot has no global reduced-motion setting yet. Quiet hours are dnd_from and
dnd_to (Do not disturb).
Drive it from a script
Section titled “Drive it from a script”scootnotify msg center (or status) prints the panel’s state as JSON.
While it is open, every row and every button carries its rectangle, so an
agent can click what it means:
scootnotify msg center{ "type": "center", "open": true, "shown": true, "keyboard": true, "edge": "top", "side": "right", "output": "DP-1", "margin": [4, 0, 0, 0], "size": [424, 786], "scroll": 0, "focus": null, "origin": [1496, 44], "rows": [ {"kind": "title", "rect": [12, 8, 400, 45], "global": [1508, 52, 400, 45], "visible": true, "targets": [{"target": "clear-all", "rect": [268, 27, 77, 24], "global": [1764, 71, 77, 24]}, {"target": "dnd", "rect": [353, 29, 34, 20], "global": [1849, 73, 34, 20]}]}, {"kind": "group", "app": "foot", "count": 3, "collapsed": false, "rect": [81, 71, 312, 26], "global": [1577, 115, 312, 26], "visible": true, "targets": [{"target": "group", "app": "foot", "rect": [81, 71, 312, 26], "global": [1577, 115, 312, 26]}, {"target": "group-clear", "app": "foot", "rect": [369, 76, 22, 22], "global": [1865, 120, 22, 22]}]}, {"kind": "entry", "app": "foot", "entry": 6, "summary": "cargo clippy", "open": false, "rect": [81, 97, 312, 82], "global": [1577, 141, 312, 82], "visible": true, "targets": [{"target": "entry", "entry": 6, "rect": [81, 97, 312, 82], "global": [1577, 141, 312, 82]}, {"target": "dismiss", "entry": 6, "rect": [369, 103, 22, 22], "global": [1865, 147, 22, 22]}]} ]}marginis the panel surface’s layer-shell margins,[top, right, bottom, left]: how far the surface sits from the bar’s edge and from its side. The surface includes room for the shadow, so the panel itself sits that far plus the shadow room in. In the example the shadow takes 8 px above the panel and 12 px at its side (the title row’srectstarts at[12, 8]), so[4, 0, 0, 0]puts the panel 12 px under the bar and 12 px from the output’s right side: the stack’s margin. Under a bell, the side’s entry is what centers the panel on the bell, less the same shadow room.rectis[x, y, width, height]in logical pixels on the panel’s surface, at the scroll in force; a row scrolled out of the body has"visible": false.globalis the same rectangle in output-global logical pixels, the spacescoot msg pointer clicktakes. The client computes it under scoot from the output’s usable area (scoot msg outputs), the panel’sedge,side,marginandsize, and addsorigin(the surface’s top-left). Without scoot (another compositor)globalandoriginare absent: a layer surface’s place is the compositor’s to choose.size,outputand the rows fill in once the panel is on screen. Wait for"shown": truebefore clicking a rectangle or reading the screen (the first frame is up, and the history is marked seen), and for"keyboard": truebefore sending keys: a key sent before the panel holds the keyboard goes to whatever had it. Thecenterevent says when it shows too: subscribe withmsg subscribe centerand wait for{"type":"center","open":true}aftermsg center open.- The targets are what
msgrequests do too:clear-allismsg clear --all,dndismsg dnd toggle,group-clearismsg clear --app APP,dismissismsg clear KEY, anactionismsg invoke --entry KEY ACTION. Anentrygoes to the entry (its window, thenmsg invoke --entry KEYfor an open entry withdefault, elsemsg restore KEYwhen no window was found); there is nomsgrequest for the whole of it. - A
dismisstarget’s rectangle is there whether or not the button is drawn: the button shows under the pointer, so a click on its rectangle always lands on it.
# Dismiss entry 6 with its button, the way a user would.xy=$(scootnotify msg center | jq -r '.rows[] | select(.entry == 6) | .targets[] | select(.target == "dismiss") | .global | "\(.[0] + .[2] / 2) \(.[1] + .[3] / 2)"')scoot msg pointer click $xyClosed, the center holds nothing: no Wayland connection, no surface, no
buffer and no font. Opening it connects, binds and lays out; open and at
rest it draws nothing and wakes for nothing but a relative time turning
over (“now” to “1m”): at most once a minute, with labels that turn within
a few seconds of each other redrawn together, and never with
time_style = "absolute". A cleared entry’s slide draws one frame per frame
callback until it lands, then stops.
Troubleshooting
Section titled “Troubleshooting”Symptom:
msg center opensays the daemon runs headless. The daemon found no compositor with a layer shell at start (it runs without popups then). Start it inside the session, withWAYLAND_DISPLAYset.
Symptom: the status reply has no
globalrectangles. The panel is not on screen yet (wait for thecenterevent), or scoot’s socket is not reachable (SCOOT_SOCKET, elsescoot.insock $XDG_RUNTIME_DIR), or the compositor is not scoot.
Symptom: an entry shows no buttons although the app sent actions. The entry is closed: it showed as a card and closed, so its actions can no longer reach the app. Restore it to see it again; only notifications held by do-not-disturb or a rule keep their actions.
Symptom: a click on an entry restored it as a card instead of going to its window. No window matched: scootnotify looks for a window whose process sent the notification (or one of its parents), else one whose app id matches the notification’s
desktop-entryor app name. A sender the bus could not name in time, a window that closed since, or a sandboxed app (Flatpak) leaves nothing to match, and the entry falls back to a card. Under another compositor nothing can match.
Symptom: the panel opens in the corner, not under the bell. No bell position reached the daemon. Either no bar is running, or the bar has no
bellmodule on that output. An older bar does not report its output’s size. The bar is on the other edge from the panel. Or the output is too narrow for the panel to move away from its corner.
Symptom: the panel opens from the top under a bottom bar. A keybinding names no edge: set
[center] edge = "bottom", or pass--edge bottom.
