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 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 |