38 lines
831 B
QML
38 lines
831 B
QML
import "." as Osu
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
import Quickshell.Services.Notifications
|
|
|
|
ShellRoot {
|
|
id: root
|
|
|
|
readonly property var font: {
|
|
family: "comfortaa"
|
|
}
|
|
Osu.IpcToggle {
|
|
target: "launcher"
|
|
item: Osu.Launcher {}
|
|
}
|
|
Osu.IpcToggle {
|
|
target: "lock"
|
|
item: Osu.Lock { }
|
|
}
|
|
Osu.IpcToggle {
|
|
target: "notifications"
|
|
item: Osu.NotifCenter {
|
|
id: notifCenter
|
|
tracked: notificationServer.trackedNotifications
|
|
}
|
|
}
|
|
Osu.Wall {}
|
|
Osu.NotifPopup { id: notifPopup }
|
|
NotificationServer {
|
|
id: notificationServer
|
|
imageSupported: true
|
|
onNotification: (notif) => {
|
|
notif.tracked = true
|
|
if (!notifCenter.visible) notifPopup.notify(notif)
|
|
}
|
|
}
|
|
}
|