diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-27 14:49:37 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-27 14:49:37 +1000 |
| commit | 9960cfa05910b31464d727a09858631bbfe775ff (patch) | |
| tree | e7661fc7e5a5c7186f8733c88199c1ee46824a3a | |
| parent | readme: update for new cmake build (diff) | |
| download | caelestia-shell-9960cfa05910b31464d727a09858631bbfe775ff.tar.gz caelestia-shell-9960cfa05910b31464d727a09858631bbfe775ff.tar.bz2 caelestia-shell-9960cfa05910b31464d727a09858631bbfe775ff.zip | |
idleinhibitor: persist state across reloads
Also set who and why
| -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 { |