Refresh idle indicator on bar IPC

This commit is contained in:
Ryan Hughes
2026-05-18 10:17:01 -04:00
parent bbdc485a62
commit e9e5040bf3
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -82,6 +82,8 @@ Item {
readonly property bool vertical: position === "left" || position === "right"
readonly property int barSize: vertical ? 28 : 26
signal indicatorsRefreshRequested()
function normalizePosition(value) {
var next = String(value || "").trim()
return /^(top|bottom|left|right)$/.test(next) ? next : "top"
@@ -417,6 +419,7 @@ Item {
function refreshIndicators() {
refreshScreenRecording()
runProcess(notificationSilencingProc)
indicatorsRefreshRequested()
}
function workspaceById(id) {
@@ -25,6 +25,12 @@ Item {
Component.onCompleted: refresh()
Connections {
target: root.bar
ignoreUnknownSignals: true
function onIndicatorsRefreshRequested() { root.refresh() }
}
Process {
id: statusProc
command: ["bash", "-lc", "pgrep -x hypridle >/dev/null 2>&1 && echo running || echo stopped"]