Notifications n shi

This commit is contained in:
2026-02-26 16:18:06 -08:00
parent a3ffbc80c5
commit 3ed2df2cd5
19 changed files with 331 additions and 17 deletions

28
Panes/Notifications.qml Normal file
View File

@@ -0,0 +1,28 @@
import Quickshell
import QtQuick
import Quickshell.Services.Notifications
import "../Widgets" as Widgets
Item {
anchors {
top: parent.top
horizontalCenter: parent.horizontalCenter
}
width: 350
height: childrenRect.height
Connections {
target: notifServer
function onNotification(notif) {
if (root.up) return
background.index = 4
notifPopup.modelData = notif
root.open()
}
}
Widgets.Notification {
id: notifPopup
anchors.margins: 6
modelData: notifServer.trackedNotifications.values[0] ?? undefined
color: "transparent"
}
}