Add notifications and notification center
This commit is contained in:
16
shell.qml
16
shell.qml
@@ -1,9 +1,18 @@
|
||||
import "." as Osu
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import Quickshell.Services.Notifications
|
||||
|
||||
ShellRoot {
|
||||
id: root
|
||||
|
||||
NotificationServer {
|
||||
id: notificationServer
|
||||
onNotification: (notif) => {
|
||||
notif.tracked = true
|
||||
notifPopup.notify(notif)
|
||||
}
|
||||
}
|
||||
readonly property var font: {
|
||||
family: "comfortaa"
|
||||
}
|
||||
@@ -15,4 +24,11 @@ ShellRoot {
|
||||
target: "lock"
|
||||
item: Osu.Lock { }
|
||||
}
|
||||
Osu.IpcToggle {
|
||||
target: "notifications"
|
||||
item: Osu.NotifCenter {
|
||||
tracked: notificationServer.trackedNotifications
|
||||
}
|
||||
}
|
||||
Osu.Notifs { id: notifPopup }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user