Add native notifications with OSD-style banners and a Control Center module

glassMxrph now owns org.freedesktop.Notifications. Banners drop out of the
bar like the OSD; Control Center stacks history per app like macOS
Notification Center. Do Not Disturb lives in the shell and falls back to
SwayNC while another daemon holds the bus name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-10-15 14:47:40 +02:00
1 parent d7f0498ba0
commit 395de70b26
17 files changed
+1132 -13

No files matched your search

+15 -1
View File
@@ -123,7 +123,7 @@ confirmation before logout/reboot/shutdown and uses argv arrays with timeouts.
The same modules are reused by detailed Settings pages. Wi-Fi credentials pass to
NetworkManager's native API, not subprocess arguments or shell preferences. BlueZ
pairing uses the existing manager. No notification or pairing daemon is registered.
pairing uses the existing manager. No pairing daemon is registered.
## Phase 8 telemetry
@@ -132,3 +132,17 @@ MetricsService owns a single demand-driven streaming Python collector. MetricsCa
## Phase 9 polish
Theme owns contrast selection and reduced-motion intensity. Shared glass components add inexpensive highlights and reversible motion without per-panel blur effects. ScreenService validates captured output references. MetricsService owns bounded restart backoff. The optional compositor example and read-only doctor keep host integration separate from UI state.
## Notifications
`NotificationService` owns the one native `NotificationServer` (org.freedesktop.Notifications),
history (the server's tracked notifications), the banner queue and Do Not Disturb, which is
persisted as `notifications.doNotDisturb`. The server is loaded lazily while enabled. Only one
process can own the bus name: the system helper reports the owner, and while another daemon
(e.g. SwayNC) holds it the shell stays inactive, says so, and the DND tile controls SwayNC instead.
`NotificationPopups` shows banners in a bar drawer like the OSD and yields its spot while the OSD
is up. Banners time out into history, pause while hovered, and are cleared when Control Center
opens. `controlcenter/modules/Notifications.qml` stacks history per app (macOS Notification
Center); `NotificationCard` is shared by both. Critical notifications stay until dismissed and
may break through DND. `tests/notifications_runtime.py` runs on a private session bus.