diff --git a/services/IdleInhibitor.qml b/services/IdleInhibitor.qml index d975dab0..0e1c8356 100644 --- a/services/IdleInhibitor.qml +++ b/services/IdleInhibitor.qml @@ -6,11 +6,19 @@ import Quickshell.Io Singleton { id: root - property bool enabled: false + property alias enabled: props.enabled + + PersistentProperties { + id: props + + property bool enabled + + reloadableId: "idleInhibitor" + } Process { running: root.enabled - command: ["systemd-inhibit", "--what=idle", "--mode=block", "sleep", "inf"] + command: ["systemd-inhibit", "--what=idle", "--who=caelestia-shell", "--why=Idle inhibitor active", "--mode=block", "sleep", "inf"] } IpcHandler {