summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/GameMode.qml8
-rw-r--r--services/Notifs.qml7
2 files changed, 13 insertions, 2 deletions
diff --git a/services/GameMode.qml b/services/GameMode.qml
index d7124cc..3881d74 100644
--- a/services/GameMode.qml
+++ b/services/GameMode.qml
@@ -1,5 +1,6 @@
pragma Singleton
+import Caelestia
import Quickshell
import Quickshell.Io
import QtQuick
@@ -14,10 +15,13 @@ Singleton {
}
onEnabledChanged: {
- if (enabled)
+ if (enabled) {
setDynamicConfs();
- else
+ 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");
+ }
}
PersistentProperties {
diff --git a/services/Notifs.qml b/services/Notifs.qml
index 4dbabf4..2deba75 100644
--- a/services/Notifs.qml
+++ b/services/Notifs.qml
@@ -20,6 +20,13 @@ Singleton {
property bool loaded
+ onDndChanged: {
+ if (dnd)
+ Toaster.toast(qsTr("Do not disturb enabled"), qsTr("Popup notifications are now disabled"), "do_not_disturb_on");
+ else
+ Toaster.toast(qsTr("Do not disturb disabled"), qsTr("Popup notifications are now enabled"), "do_not_disturb_off");
+ }
+
onListChanged: {
if (loaded)
saveTimer.restart();