From 0b09f9ad6288ab8c0dc9cd73fd0aac22592b1936 Mon Sep 17 00:00:00 2001 From: Damocles Date: Mon, 13 Apr 2026 10:59:07 +0200 Subject: [PATCH] fix idle inhibitor: keep process running instead of backgrounding --- modules/IdleInhibitor.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/IdleInhibitor.qml b/modules/IdleInhibitor.qml index d11f56e..e34b380 100644 --- a/modules/IdleInhibitor.qml +++ b/modules/IdleInhibitor.qml @@ -11,17 +11,16 @@ M.BarIcon { icon: root.active ? "\uF06E" : "\uF070" + // The inhibitor process — stays running while active Process { - id: toggle - command: ["sh", "-c", root.active ? "pkill -x systemd-inhibit || true" : "systemd-inhibit --what=idle --who=nova-shell --why=user sleep infinity &"] + id: inhibitor + command: ["systemd-inhibit", "--what=idle", "--who=nova-shell", "--why=user", "sleep", "infinity"] + running: root.active } MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor - onClicked: { - root.active = !root.active; - toggle.running = true; - } + onClicked: root.active = !root.active } }