Introduced Notification server, and added background thorugh quickshell
This commit is contained in:
18
common/NotificationService.qml
Normal file
18
common/NotificationService.qml
Normal file
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user