diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-23 18:10:32 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-23 18:10:32 +1000 |
| commit | 21e1efd944f39c53c649348559550e18f6a9803b (patch) | |
| tree | 1bc762bc2e4dd19cae41ae0bae696ed6cf1fa528 /services | |
| parent | audio: audio device changed toasts (#684) (diff) | |
| download | caelestia-shell-21e1efd944f39c53c649348559550e18f6a9803b.tar.gz caelestia-shell-21e1efd944f39c53c649348559550e18f6a9803b.tar.bz2 caelestia-shell-21e1efd944f39c53c649348559550e18f6a9803b.zip | |
config: enable/disable specific toasts
Diffstat (limited to 'services')
| -rw-r--r-- | services/GameMode.qml | 7 | ||||
| -rw-r--r-- | services/Notifs.qml | 3 |
2 files changed, 8 insertions, 2 deletions
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 |