From 391a02462cbb48ff6683479d2ca241334bd6e307 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 4 Jun 2025 19:59:36 +1000 Subject: feat: clear notifs shortcut --- services/Notifs.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'services') diff --git a/services/Notifs.qml b/services/Notifs.qml index d81b90d..b4ebc26 100644 --- a/services/Notifs.qml +++ b/services/Notifs.qml @@ -1,6 +1,7 @@ pragma Singleton pragma ComponentBehavior: Bound +import "root:/widgets" import "root:/config" import Quickshell import Quickshell.Services.Notifications @@ -32,6 +33,15 @@ Singleton { } } + CustomShortcut { + name: "clearNotifs" + description: "Clear all notifications" + onPressed: { + for (const notif of root.list) + notif.popup = false; + } + } + component Notif: QtObject { id: notif -- cgit v1.2.3-freya