diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-01-21 14:34:21 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-01-21 14:34:21 -0500 |
| commit | 2c0dd689145e48e9d3683dfd3556723895fa54aa (patch) | |
| tree | b2c37ae5136ec90c0f1fea16da6266857f886573 /services | |
| parent | remove config saving, make background scale properly, and add quickshell desk... (diff) | |
| download | caelestia-shell-2c0dd689145e48e9d3683dfd3556723895fa54aa.tar.gz caelestia-shell-2c0dd689145e48e9d3683dfd3556723895fa54aa.tar.bz2 caelestia-shell-2c0dd689145e48e9d3683dfd3556723895fa54aa.zip | |
Diffstat (limited to '')
| -rw-r--r-- | services/IdleInhibitor.qml | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/services/IdleInhibitor.qml b/services/IdleInhibitor.qml deleted file mode 100644 index 29409ab..0000000 --- a/services/IdleInhibitor.qml +++ /dev/null @@ -1,56 +0,0 @@ -pragma Singleton - -import Quickshell -import Quickshell.Io -import Quickshell.Wayland - -Singleton { - id: root - - property alias enabled: props.enabled - readonly property alias enabledSince: props.enabledSince - - onEnabledChanged: { - if (enabled) - props.enabledSince = new Date(); - } - - PersistentProperties { - id: props - - property bool enabled - property date enabledSince - - reloadableId: "idleInhibitor" - } - - IdleInhibitor { - enabled: props.enabled - window: PanelWindow { - implicitWidth: 0 - implicitHeight: 0 - color: "transparent" - mask: Region {} - } - } - - IpcHandler { - target: "idleInhibitor" - - function isEnabled(): bool { - return props.enabled; - } - - function toggle(): void { - props.enabled = !props.enabled; - } - - function enable(): void { - props.enabled = true; - } - - function disable(): void { - props.enabled = false; - } - } -} |