Persist StayAwake indicator state

This commit is contained in:
David Heinemeier Hansson
2026-05-23 15:15:55 +02:00
parent 548882527f
commit b92a44d572
3 changed files with 151 additions and 19 deletions
+5 -2
View File
@@ -29,14 +29,17 @@ BarIndicator {
Process {
id: statusProc
command: ["bash", "-lc", "omarchy-shell idle status 2>/dev/null"]
command: ["omarchy-toggle-idle", "--status"]
stdout: StdioCollector {
waitForEnd: true
onStreamFinished: {
var data = root.extractData(text)
root.active = data && data.enabled === false
root.active = data && data.enabled === true
}
}
onExited: function(exitCode) {
if (exitCode !== 0) root.active = false
}
}
Timer {