From 352277ec157c2a2c4c4342838cee3f62914d949f Mon Sep 17 00:00:00 2001 From: Marcus Ramberg Date: Sat, 13 Dec 2025 00:21:00 +0100 Subject: [PATCH] notifications: add ipc call for toggleDoNotDisturb (#1002) --- quickshell/Modals/NotificationModal.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quickshell/Modals/NotificationModal.qml b/quickshell/Modals/NotificationModal.qml index e5509961..5b8e578a 100644 --- a/quickshell/Modals/NotificationModal.qml +++ b/quickshell/Modals/NotificationModal.qml @@ -98,6 +98,12 @@ DankModal { return "NOTIFICATION_MODAL_TOGGLE_SUCCESS"; } + function toggleDoNotDisturb(): string { + SessionData.setDoNotDisturb(!SessionData.doNotDisturb) + + return "NOTIFICATION_MODAL_TOGGLE_DND_SUCCESS"; + } + target: "notifications" }