Add notifications and notification center

This commit is contained in:
2026-01-22 13:38:54 -08:00
parent 7e93b4afa1
commit add0b3d66f
5 changed files with 351 additions and 3 deletions

View File

@@ -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 }
}