diff options
Diffstat (limited to 'services/Notifs.qml')
| -rw-r--r-- | services/Notifs.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/services/Notifs.qml b/services/Notifs.qml index de53d89..4acd56f 100644 --- a/services/Notifs.qml +++ b/services/Notifs.qml @@ -4,6 +4,7 @@ pragma ComponentBehavior: Bound import "root:/widgets" import "root:/config" import Quickshell +import Quickshell.Io import Quickshell.Services.Notifications import QtQuick @@ -42,6 +43,15 @@ Singleton { } } + IpcHandler { + target: "notifs" + + function clear(): void { + for (const notif of root.list) + notif.popup = false; + } + } + component Notif: QtObject { id: notif |