diff --git a/Bar.qml b/Bar.qml index ef3b9a1..3581ec9 100644 --- a/Bar.qml +++ b/Bar.qml @@ -436,9 +436,14 @@ PanelWindow { property bool idleInhibitActive: false - IdleInhibitor { - enabled: root.idleInhibitActive - window: root + Process { + running: root.idleInhibitActive + command: ["systemd-inhibit", + "--what=idle:sleep", + "--who=quickshell-bar", + "--why=Idle inhibitor toggled on", + "--mode=block", + "sleep", "infinity"] } property var activeTrayMenu: null