From c214b3c5d6cf48ed719e9c13a4f5bda4dc7ad107 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 8 Jun 2025 20:25:54 +1000 Subject: feat: add ipc commands for stuff --- services/Notifs.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'services/Notifs.qml') 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 -- cgit v1.2.3-freya