feat: sound alerts for battery and pomodoro

This commit is contained in:
0blivi0nis
2025-10-16 19:03:14 -07:00
parent 89585f8121
commit 37fd19fc9a
5 changed files with 112 additions and 7 deletions
@@ -244,6 +244,7 @@ Singleton {
property JsonObject battery: JsonObject {
property int low: 20
property int critical: 5
property int full: 101
property bool automaticSuspend: true
property int suspend: 3
}
@@ -395,13 +396,18 @@ Singleton {
}
}
property JsonObject sounds: JsonObject {
property bool battery: false
property bool pomodoro: false
property string theme: "freedesktop"
}
property JsonObject time: JsonObject {
// https://doc.qt.io/qt-6/qtime.html#toString
property string format: "hh:mm"
property string shortDateFormat: "dd/MM"
property string dateFormat: "ddd, dd/MM"
property JsonObject pomodoro: JsonObject {
property string alertSound: ""
property int breakTime: 300
property int cyclesBeforeLongBreak: 4
property int focus: 1500