idle: added support for custom commands

This commit is contained in:
Lemmy
2026-02-22 21:30:28 -05:00
parent 90ae42bda2
commit a12de93d40
11 changed files with 533 additions and 215 deletions
+4 -3
View File
@@ -722,10 +722,11 @@ Singleton {
// idle management
property JsonObject idle: JsonObject {
property bool enabled: false
property int screenOffTimeout: 0 // minutes, 0 = disabled
property int lockTimeout: 0 // minutes, 0 = disabled
property int suspendTimeout: 0 // minutes, 0 = disabled
property int screenOffTimeout: 0 // seconds, 0 = disabled
property int lockTimeout: 0 // seconds, 0 = disabled
property int suspendTimeout: 0 // seconds, 0 = disabled
property int fadeDuration: 5 // seconds of fade-to-black before action fires
property string customCommands: "[]" // JSON array of {timeout, command}
}
// desktop widgets