Skip to content

Replace the notification engine with Omapager - #15932

Merged
ryanrhughes merged 53 commits into
quattrofrom
notifications-omapager
Oct 20, 2026
Merged

ryanrhughes merged 53 commits into
quattrofrom
notifications-omapager

Conversation

@ryanrhughes

@ryanrhughes ryanrhughes commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Replaces the core notification engine with Omapager, folded into shell/plugins/notifications and retired as a separate plugin.

  • Per-source stacks, snoozes, Do Not Disturb, held and recent notifications, history, actions, verification codes and links.
  • Cards follow the theme: corners only round when the theme rounds them.
  • Icons resolve in the shell like the dock's (sender image, user overrides, icon theme, desktop entry). Site icons are never fetched: a website notification shows what the browser sent or the browser's own icon.
  • History, on-screen cards and quiet state are JSON files the shell writes itself in ~/.local/state/omarchy/notifications/. Verification codes are only ever stored redacted.
  • No new dependencies and no migration.

Docs: docs/notifications.md, manual/10-notices.md.

Testing: bash test/shell.d/notifications-test.sh, and omarchy dev notification demo to see the UI.

@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The changes appear safe to merge; no new actionable issue was found.

Summary

Replaces the notification engine with Omapager-style cards, source stacks, snoozes, history, and notification preferences.

  • Notifications now appear as source-based cards with a panel for managing them.
  • Quiet controls can snooze one source or all notifications for a while.
  • Saved notifications keep useful history without retaining verification codes.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  Sender[App sends notification] --> Snapshot[Build card snapshot]
  Snapshot --> Quiet{Quiet rules allow it?}
  Quiet -->|Yes| Deck[Show card in source stack]
  Quiet -->|No| Held[Record held notification]
  Deck --> Close[Card closes]
  Close --> History[Save redacted history]
  Held --> History
  Deck --> Live[Save redacted live state]
  History --> Panel[Notification panel]
Loading

Reviews (20) · Last reviewed commit: "Treat KDE Connect as an ordinary notific..." · Reviewed by Greptile

Comment thread shell/plugins/notifications/Store.js Resolved
Comment thread shell/plugins/bar/indicators/Dnd.qml Resolved
Comment thread shell/plugins/notifications/Service.qml Resolved
Comment thread shell/plugins/notifications/Markup.js Resolved
Comment thread shell/plugins/notifications/helpers/run Resolved
Comment thread shell/plugins/notifications/helpers/run Resolved
Comment thread shell/plugins/notifications/helpers/run Resolved
Comment thread bin/omarchy-dev-notification-demo Resolved
emirb added a commit that referenced this pull request Oct 29, 2026
omarchy-migrate-notify runs at every login and sends a critical toast
while migrations are pending. Since notifications are restored from
live.json (#15932), the last login's reminder comes back next to the
new one, so a machine whose migrations stay pending gains one identical
card per login: 15 after 15 logins on a 4.5.0-rc2 VM, pushing the
first-run cards off the screen.

The freedesktop spec's transient hint asks the server to by-pass its
persistence. The shell now honours it: a transient card is shown but
never written to live.json, so it is not restored and leaves no history;
an update that turns a card transient takes its stored row out.
omarchy-notification-send gains --transient, and the reminder uses it,
since it is sent again at every login while it still applies.
emirb added a commit that referenced this pull request Oct 29, 2026
omarchy-migrate-notify runs at every login and sends a critical toast
while migrations are pending. Since notifications are restored from
live.json (#15932), the last login's reminder comes back next to the
new one, so a machine whose migrations stay pending gains one identical
card per login: 15 after 15 logins on a 4.5.0-rc2 VM, pushing the
first-run cards off the screen.

The freedesktop spec's transient hint asks the server to by-pass its
persistence. The shell now honours it: a transient card is shown but
never written to live.json, so it is not restored and leaves no history;
an update that turns a card transient takes its stored row out.
omarchy-notification-send gains --transient, and the reminder uses it,
since it is sent again at every login while it still applies.
emirb added a commit that referenced this pull request Oct 29, 2026
* Keep one pending-migrations reminder instead of one per login

omarchy-migrate-notify runs at every login and sends a critical toast
while migrations are pending. Since notifications are restored from
live.json (#15932), the last login's reminder comes back next to the
new one, so a machine whose migrations stay pending gains one identical
card per login: 15 after 15 logins on a 4.5.0-rc2 VM, pushing the
first-run cards off the screen.

The freedesktop spec's transient hint asks the server to by-pass its
persistence. The shell now honours it: a transient card is shown but
never written to live.json, so it is not restored and leaves no history;
an update that turns a card transient takes its stored row out.
omarchy-notification-send gains --transient, and the reminder uses it,
since it is sent again at every login while it still applies.

* Take -p and --transient only as bare words in omarchy-notification-send

The option parser split --flag=value before matching, so the two flags
matched their valued forms too: --transient=false switched transient on,
and --print-id=1 printed the id. Flags take no value; a valued form is
now text wherever it stands, like any unknown word: the headline before
it, the description after it.
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
berenddeboer pushed a commit to berenddeboer/omarchy that referenced this pull request Nov 6, 2026
…#16981)

* Keep one pending-migrations reminder instead of one per login

omarchy-migrate-notify runs at every login and sends a critical toast
while migrations are pending. Since notifications are restored from
live.json (omacom#15932), the last login's reminder comes back next to the
new one, so a machine whose migrations stay pending gains one identical
card per login: 15 after 15 logins on a 4.5.0-rc2 VM, pushing the
first-run cards off the screen.

The freedesktop spec's transient hint asks the server to by-pass its
persistence. The shell now honours it: a transient card is shown but
never written to live.json, so it is not restored and leaves no history;
an update that turns a card transient takes its stored row out.
omarchy-notification-send gains --transient, and the reminder uses it,
since it is sent again at every login while it still applies.

* Take -p and --transient only as bare words in omarchy-notification-send

The option parser split --flag=value before matching, so the two flags
matched their valued forms too: --transient=false switched transient on,
and --print-id=1 printed the id. Flags take no value; a valued form is
now text wherever it stands, like any unknown word: the headline before
it, the description after it.

(cherry picked from commit 64833fa)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants