hyprwm / hypridle

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

hypridle doesn't respect systemd-inhibit inhibitors #43

Closed kelvie closed 1 month ago

kelvie commented 3 months ago

I think you have to implement something like this for swayidle: https://github.com/swaywm/swayidle/pull/48

To reproduce:

systemd-inhibit --what=idle --who=me --why="testing reasons" sleep infinity

And watch hypridle still lock (it's easy to test with this conf file:

listener {
    timeout = 2
    on-timeout = notify-send "idle"
    on-resume = notify-send "resumed"
}
yawor commented 1 month ago

I've just created a pull request #57 which implements listening for systemd-inhibit block idle inhibits

yawor commented 1 month ago

57 has been merged. This issue can be closed now.