diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-04 19:59:36 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-04 19:59:36 +1000 |
| commit | 391a02462cbb48ff6683479d2ca241334bd6e307 (patch) | |
| tree | aa28c3ee6f7ed28a7a175f737ed581d712e2549f /services | |
| parent | internal: use panelwindow (diff) | |
| download | caelestia-shell-391a02462cbb48ff6683479d2ca241334bd6e307.tar.gz caelestia-shell-391a02462cbb48ff6683479d2ca241334bd6e307.tar.bz2 caelestia-shell-391a02462cbb48ff6683479d2ca241334bd6e307.zip | |
feat: clear notifs shortcut
Diffstat (limited to 'services')
| -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 |