mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-14 22:11:45 +02:00
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:
@@ -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";
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user