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.
This commit is contained in:
Ryan Yin
2026-09-13 23:56:16 +08:00
parent e81767c7b4
commit b9610c47e0
+3
View File
@@ -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";
}
];