From 95fc1c7fba297044dd2d8f3399c72864d7d2c908 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 23 Sep 2025 14:38:44 +1000 Subject: idlemonitor: configurable timeouts Closes #669 --- config/GeneralConfig.qml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'config/GeneralConfig.qml') diff --git a/config/GeneralConfig.qml b/config/GeneralConfig.qml index 4d7a79c..d53364b 100644 --- a/config/GeneralConfig.qml +++ b/config/GeneralConfig.qml @@ -14,9 +14,21 @@ JsonObject { component Idle: JsonObject { property bool inhibitWhenAudio: true - property real lockTimeout: 180 // 3 mins - property real dpmsTimeout: 300 // 5 mins - property real sleepTimeout: 600 // 10 mins + property list timeouts: [ + { + timeout: 180, + idleAction: "lock" + }, + { + timeout: 300, + idleAction: "dpms off", + returnAction: "dpms on" + }, + { + timeout: 600, + idleAction: ["systemctl", "suspend-then-hibernate"] + } + ] } component Battery: JsonObject { -- cgit v1.2.3-freya