diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-21 17:34:55 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-21 17:34:55 +1000 |
| commit | 37b61cb0d923bc8ab988a0ba4174cd55de458bdc (patch) | |
| tree | ee4808009110c6e85540b4b6d0f0b947b3f80d25 /config | |
| parent | sidebar/notifs: add link support (diff) | |
| parent | feat: add battery warnings (diff) | |
| download | caelestia-shell-37b61cb0d923bc8ab988a0ba4174cd55de458bdc.tar.gz caelestia-shell-37b61cb0d923bc8ab988a0ba4174cd55de458bdc.tar.bz2 caelestia-shell-37b61cb0d923bc8ab988a0ba4174cd55de458bdc.zip | |
Merge pull request #662 from caelestia-dots/toasts
utilities: add toasts & battery warnings
Diffstat (limited to 'config')
| -rw-r--r-- | config/GeneralConfig.qml | 26 | ||||
| -rw-r--r-- | config/UtilitiesConfig.qml | 1 |
2 files changed, 27 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 + } } diff --git a/config/UtilitiesConfig.qml b/config/UtilitiesConfig.qml index 13d436b..d9d4ed5 100644 --- a/config/UtilitiesConfig.qml +++ b/config/UtilitiesConfig.qml @@ -2,6 +2,7 @@ import Quickshell.Io JsonObject { property bool enabled: true + property int maxToasts: 4 property Sizes sizes: Sizes {} |