Skip to content

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.7
side = "right"
width = 400
animation = "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, bell or knock (generated by the shell and cached in ~/.cache/moonswing/sounds/);
  • none, off or silent;
  • 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"]

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 = 150
animation_exit_ratio = 0.75
animation_travel = 1.0
animation_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
  • slide comes out of the screen edge; fade fades in place; reveal uncovers the panel from the edge inwards; stretch grows it out of the edge; none shows 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_travel below 1 starts the panel part-way in; pair it with animation_fade = true to avoid a jump. Travel and fade do nothing for fade and none.