From 21e1efd944f39c53c649348559550e18f6a9803b Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 23 Sep 2025 18:10:32 +1000 Subject: config: enable/disable specific toasts --- services/GameMode.qml | 7 +++++-- services/Notifs.qml | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'services') diff --git a/services/GameMode.qml b/services/GameMode.qml index 3881d74..6771d59 100644 --- a/services/GameMode.qml +++ b/services/GameMode.qml @@ -1,5 +1,6 @@ pragma Singleton +import qs.config import Caelestia import Quickshell import Quickshell.Io @@ -17,10 +18,12 @@ Singleton { onEnabledChanged: { if (enabled) { setDynamicConfs(); - Toaster.toast(qsTr("Game mode enabled"), qsTr("Disabled Hyprland animations, blur, gaps and shadows"), "gamepad"); + if (Config.utilities.toasts.gameModeChanged) + Toaster.toast(qsTr("Game mode enabled"), qsTr("Disabled Hyprland animations, blur, gaps and shadows"), "gamepad"); } else { Quickshell.execDetached(["hyprctl", "reload"]); - Toaster.toast(qsTr("Game mode disabled"), qsTr("Hyprland settings restored"), "gamepad"); + if (Config.utilities.toasts.gameModeChanged) + Toaster.toast(qsTr("Game mode disabled"), qsTr("Hyprland settings restored"), "gamepad"); } } diff --git a/services/Notifs.qml b/services/Notifs.qml index 2deba75..0012d4b 100644 --- a/services/Notifs.qml +++ b/services/Notifs.qml @@ -21,6 +21,9 @@ Singleton { property bool loaded onDndChanged: { + if (!Config.utilities.toasts.dndChanged) + return; + if (dnd) Toaster.toast(qsTr("Do not disturb enabled"), qsTr("Popup notifications are now disabled"), "do_not_disturb_on"); else -- cgit v1.2.3-freya