hypridle
hypridle copied to clipboard
[Feature] Ignore idle inhibition per listener
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.
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.
I have a use-case where I'd like all listeners to heed inhibition state except for one that should fire regardless.
A workaround I found is to have two hypridle daemons with two separate config files running where one config file ignores inhibition and the other one does not. You then put your listener in one or the other config file, depending on whether you want it to be inhibited or not.