hyprwm / hypridle

Hyprland's idle daemon
BSD 3-Clause "New" or "Revised" License
320 stars 16 forks source link

[Feature] Ignore idle inhibition per listener #39

Open Silveere opened 3 months ago

Silveere commented 3 months ago

This would add a listener version of the ignore_dbus_inhibit option. The reason I want this is to make manually locking my screen always set DPMS to off, regardless of inhibition state (e.g., if I am listening to a video from my browser in the background). One of my listeners calls pgrep -x swaylock && hyprctl dispatch dpms off after 10 seconds. I would like to have it run regardless of inhibition, so that my screen will always turn off if I manually lock my session.

rtgiskard commented 2 months ago

I'm also trying to resolve the case, a better solution might be bind an extra operation for lock_cmd with a delay, so that once it's locked, either manually lock or idle timeout lock, the screen can be turned off efficiently, and no need for extra listener.