From b9610c47e05ca498b3a8217e663c7b0a7287012f Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 13 Sep 2026 23:56:16 +0800 Subject: [PATCH] fix(hypridle): skip lock while media is playing The lock listener ignores inhibitors but had no playback condition, so it locked the screen at its timeout even during active media playback (screen-off already skipped via playerctl). Add the same playerctl condition to the lock listener. --- home/linux/gui/base/hypridle/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/linux/gui/base/hypridle/default.nix b/home/linux/gui/base/hypridle/default.nix index 4526dce4..4b05f9ce 100644 --- a/home/linux/gui/base/hypridle/default.nix +++ b/home/linux/gui/base/hypridle/default.nix @@ -60,6 +60,9 @@ in { timeout = cfg.lockTimeout; ignore_inhibit = true; + # Skip while media is playing, same as screen-off above. + condition_cmd = "! playerctl -a status 2>/dev/null | grep -q '^Playing$'"; + condition_retry = 30; on-timeout = "noctalia-shell ipc call lockScreen lock"; } ];