From 25e33522a74d9ffb71e399d9060d9fdef42e792d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 18 Sep 2026 12:26:48 +0200 Subject: feat(status): add a screen lock mode dnd and presentation were the only modes, and presentation was the sole holder of the Wayland idle inhibitor. That inhibitor is the only thing that stops hypridle's loginctl lock-session at the 600s timeout, so screen locking is on by default and there was no way to turn it off on its own. nolock is stored as "auto-lock disabled" so the file keeps the registry's "missing means off" rule, and the row inverts it so the switch reads as the default: lock on. Presentation now drives nolock the same way it drives dnd, holding the prior value in memory and restoring it on exit, so it needs no second inhibitor and the inhibitor has a single holder. The page sets the disable permanently or for a number of minutes. The deadline and its timer live in the singleton rather than the row because the drawer page is destroyed on close while the effect has to outlive it. The timer is shell-lifetime, the same class of limit as dndBeforePresentation: a restart during a timed disable leaves the lock off until it is toggled, which is safe because the user opted into the disable. The mode governs idle-triggered locking only. The SUPER+l bind and the lock on suspend are separate paths and stay live. --- desktop/modules/status/StatusTile.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop/modules/status/StatusTile.qml') diff --git a/desktop/modules/status/StatusTile.qml b/desktop/modules/status/StatusTile.qml index c4b87d4..ab3a7af 100644 --- a/desktop/modules/status/StatusTile.qml +++ b/desktop/modules/status/StatusTile.qml @@ -19,5 +19,6 @@ Text { color: Status.activeCount > 0 ? Theme.text : Theme.subtext text: Status.presentation ? "Presenting" : Status.dnd ? "Do not disturb" + : Status.nolock ? "No lock" : "All clear" } -- cgit v1.2.3