diff options
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 + } } |