diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-08 20:25:54 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-08 20:25:54 +1000 |
| commit | c214b3c5d6cf48ed719e9c13a4f5bda4dc7ad107 (patch) | |
| tree | dd8078ebde032078ccab26f02350c0d7ae50bfb3 /services/Notifs.qml | |
| parent | colours: fix switching (diff) | |
| download | caelestia-shell-c214b3c5d6cf48ed719e9c13a4f5bda4dc7ad107.tar.gz caelestia-shell-c214b3c5d6cf48ed719e9c13a4f5bda4dc7ad107.tar.bz2 caelestia-shell-c214b3c5d6cf48ed719e9c13a4f5bda4dc7ad107.zip | |
feat: add ipc commands for stuff
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 |