From 2a6cc10cfa4f96e079d2205b1d76ecf7d3ec2279 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 17 Jun 2025 13:04:35 +1000 Subject: launcher: notify on scheme mode change error --- modules/notifications/Notification.qml | 2 ++ services/Colours.qml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index ebc5ce6..6550e28 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -199,6 +199,8 @@ StyledRect { return "update"; if (summary.startsWith("file")) return "folder_copy"; + if (summary.startsWith("unable to")) + return "deployed_code_alert"; if (root.modelData.urgency === NotificationUrgency.Critical) return "release_alert"; return "chat"; diff --git a/services/Colours.qml b/services/Colours.qml index ea3b02a..724a76e 100644 --- a/services/Colours.qml +++ b/services/Colours.qml @@ -53,7 +53,7 @@ Singleton { } function setMode(mode: string): void { - setModeProc.command = ["caelestia", "scheme", "-m", mode]; + setModeProc.command = ["caelestia", "scheme", "set", "--notify", "-m", mode]; setModeProc.startDetached(); } -- cgit v1.2.3-freya