18 lines
382 B
QML
18 lines
382 B
QML
pragma Singleton
|
|
|
|
import Quickshell
|
|
import Quickshell.Services.Notifications
|
|
|
|
Singleton {
|
|
readonly property list<Notification> notifications: server.trackedNotifications.values
|
|
readonly property int amountNotifications: notifications.length
|
|
|
|
NotificationServer {
|
|
id: server
|
|
actionsSupported: true
|
|
|
|
onNotification: notif => {
|
|
notif.tracked = true;
|
|
}
|
|
}
|
|
} |