Notifications
The shell is the desktop’s notification daemon. The bell shows a count and
shakes when something arrives; clicking it (or open_notifications, Super+N)
opens the notification panel, docked against the right edge of the screen
whose bar you clicked.
[modules.notifications]sound = "chime"sound_volume = 0.7side = "right"width = 400animation = "slide"| Key | Type | Default | Description |
|---|---|---|---|
sound |
string | "chime" |
What plays when a notification arrives — see below |
sound_volume |
float | 0.7 |
Volume, 0–1 |
side |
string | "right" |
Edge the panel docks against: "left" or "right" |
width |
int | 400 |
Panel width in pixels (240–1200) |
animation* |
How the panel opens and closes — see below |
side, width and the animation keys apply the next time the panel opens.
They take effect even with no bell in any bar, since the floating notification
card opens the same panel.
sound accepts:
- a shipped sound:
chime,ping,glass,bellorknock(generated by the shell and cached in~/.cache/moonswing/sounds/); none,offorsilent;- a path (anything containing
/;~is expanded), in any format mpv plays; - a name from the system sound theme, searched under the XDG sound directories
(
~/.local/share/sounds,/usr/share/sounds,$XDG_DATA_DIRS), e.g."message"finds/usr/share/sounds/freedesktop/stereo/message.oga.
A name that matches nothing is reported on the panel’s Notification sound
row; click the row to preview. The chime needs mpv, plays only while a
notifications module is in some panel, never plays while notifications are
silenced, and plays once for a burst.
The panel:
- Each card has its actions, a ✓ to mark it read and a ✕ to remove
it; the header’s ✓✓ marks everything read. The foot holds the silence
switch (also in the bell’s right-click menu; stored as
[notifications] silenced) and the sound row. - Marking read removes nothing. It clears the bell’s count and the floating card. Opening the panel marks nothing read.
- It never takes keyboard focus and stays open until you click its ×, the bell, or press the shortcut. Clicking a notification that opens something closes it.
- It sits above your windows without moving them, between the top and bottom bars. Clicks on its shadow reach the window beneath. Docked against the same edge as the clipboard history, the two sit side by side.
The bell is in the default bottom panel. An existing config is never rewritten, so to add it yourself:
[panels.bottom.layout]right = ["media_player", "notifications", "launcher"]The panel’s animation
Section titled “The panel’s animation”Both the notification panel and the clipboard history take these keys, each in its own table.
[modules.notifications]animation = "slide"animation_curve = "ease_out"animation_duration = 150animation_exit_ratio = 0.75animation_travel = 1.0animation_fade = false| Key | Type | Default | Description |
|---|---|---|---|
animation |
string | "slide" |
slide, fade, reveal, stretch or none |
animation_curve |
string | "ease_out" |
linear, ease_in, ease_out, ease_in_out, emphasized, overshoot, bounce or elastic |
animation_duration |
int | 150 |
Opening time in ms (0–2000); 0 turns the animation off |
animation_exit_ratio |
float | 0.75 |
Closing time as a fraction of opening time (0–2) |
animation_travel |
float | 1.0 |
Fraction of the panel’s width the movement covers (0.05–1) |
animation_fade |
bool | false |
Also fade while moving |
slidecomes out of the screen edge;fadefades in place;revealuncovers the panel from the edge inwards;stretchgrows it out of the edge;noneshows it at once.- Closing plays the curve in reverse. The panel never leaves the screen edge, so an overshoot holds at the edge instead.
animation_travelbelow 1 starts the panel part-way in; pair it withanimation_fade = trueto avoid a jump. Travel and fade do nothing forfadeandnone.