From 61b21f389f90c2d6c7ed9cd1b206b6a31ae93d86 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 21 Sep 2025 17:33:28 +1000 Subject: feat: add battery warnings Closes #73 Closes #117 --- config/GeneralConfig.qml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'config/GeneralConfig.qml') diff --git a/config/GeneralConfig.qml b/config/GeneralConfig.qml index dc6222e..4d7a79c 100644 --- a/config/GeneralConfig.qml +++ b/config/GeneralConfig.qml @@ -3,6 +3,7 @@ import Quickshell.Io JsonObject { property Apps apps: Apps {} property Idle idle: Idle {} + property Battery battery: Battery {} component Apps: JsonObject { property list terminal: ["foot"] @@ -17,4 +18,29 @@ JsonObject { property real dpmsTimeout: 300 // 5 mins property real sleepTimeout: 600 // 10 mins } + + component Battery: JsonObject { + property list warnLevels: [ + { + level: 20, + title: qsTr("Low battery"), + message: qsTr("You might want to plug in a charger"), + icon: "battery_android_frame_2" + }, + { + level: 10, + title: qsTr("Did you see the previous message?"), + message: qsTr("You should probably plug in a charger now"), + icon: "battery_android_frame_1" + }, + { + level: 5, + title: qsTr("Critical battery level"), + message: qsTr("PLUG THE CHARGER RIGHT NOW!!"), + icon: "battery_android_alert", + critical: true + }, + ] + property int criticalLevel: 3 + } } -- cgit v1.2.3-freya