Move from hypridle to QS
This commit is contained in:
@@ -33,11 +33,17 @@ Item {
|
||||
|
||||
Process {
|
||||
id: statusProc
|
||||
command: ["bash", "-lc", "pgrep -x hypridle >/dev/null 2>&1 && echo running || echo stopped"]
|
||||
command: ["bash", "-lc", "omarchy-shell idle status 2>/dev/null"]
|
||||
stdout: StdioCollector {
|
||||
waitForEnd: true
|
||||
onStreamFinished: {
|
||||
root.active = String(text || "").trim() === "stopped"
|
||||
var raw = String(text || "").trim()
|
||||
try {
|
||||
var parsed = JSON.parse(raw)
|
||||
root.active = parsed && parsed.enabled === false
|
||||
} catch (e) {
|
||||
root.active = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -65,7 +71,7 @@ Item {
|
||||
bar: root.bar
|
||||
text: root.icon
|
||||
active: false
|
||||
tooltipText: root.active ? "No sleep, lock, or screensaver" : ""
|
||||
tooltipText: root.active ? "No lock or screensaver" : ""
|
||||
onPressed: function() { root.toggle() }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1328,7 +1328,7 @@ iwctl known-networks list 2>/dev/null \\
|
||||
// Bar.qml does not need to mirror network state.
|
||||
Process {
|
||||
id: networkProc
|
||||
command: ["bash", "-lc", root.bar ? root.bar.commandWithOmarchyPath(root.networkCommand()) : ""]
|
||||
command: ["bash", "-lc", root.bar ? root.networkCommand() : ""]
|
||||
stdout: StdioCollector {
|
||||
waitForEnd: true
|
||||
onStreamFinished: root.updateNetwork(text)
|
||||
|
||||
@@ -552,7 +552,7 @@ Item {
|
||||
// Poll the weather pill text/class every minute. Local to this widget.
|
||||
Process {
|
||||
id: weatherProc
|
||||
command: ["bash", "-lc", root.bar ? root.bar.commandWithOmarchyPath(root.bar.shellQuote(root.bar.omarchyPath + "/shell/scripts/weather.sh")) : ""]
|
||||
command: ["bash", "-lc", root.bar ? root.bar.shellQuote(root.bar.omarchyPath + "/shell/scripts/weather.sh") : ""]
|
||||
stdout: StdioCollector {
|
||||
waitForEnd: true
|
||||
onStreamFinished: root.updateWeather(text)
|
||||
|
||||
Reference in New Issue
Block a user