diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-21 17:33:28 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-21 17:33:28 +1000 |
| commit | 61b21f389f90c2d6c7ed9cd1b206b6a31ae93d86 (patch) | |
| tree | ee4808009110c6e85540b4b6d0f0b947b3f80d25 /config/GeneralConfig.qml | |
| parent | utilities: add toasts (diff) | |
| download | caelestia-shell-61b21f389f90c2d6c7ed9cd1b206b6a31ae93d86.tar.gz caelestia-shell-61b21f389f90c2d6c7ed9cd1b206b6a31ae93d86.tar.bz2 caelestia-shell-61b21f389f90c2d6c7ed9cd1b206b6a31ae93d86.zip | |
feat: add battery warnings
Closes #73
Closes #117
Diffstat (limited to 'config/GeneralConfig.qml')
| -rw-r--r-- | config/GeneralConfig.qml | 26 |
1 files changed, 26 insertions, 0 deletions
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<string> terminal: ["foot"] @@ -17,4 +18,29 @@ JsonObject { property real dpmsTimeout: 300 // 5 mins property real sleepTimeout: 600 // 10 mins } + + component Battery: JsonObject { + property list<var> 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 <b>now</b>"), + 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 + } } |