diff options
| -rw-r--r-- | services/IdleInhibitor.qml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/services/IdleInhibitor.qml b/services/IdleInhibitor.qml index d975dab..0e1c835 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 { |