hyprwm / hypridle

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

[Feature] Listen to key bind #54

Closed Aqa-Ib closed 6 months ago

Aqa-Ib commented 6 months ago

A listener to a key bind would allow us to power off our screens using a key bind, and power them on again with a key press.

fufexan commented 6 months ago

Can already be done from Hyprland.

Aqa-Ib commented 6 months ago

How ?

fufexan commented 6 months ago

bind = $mod, D, dpms, toggle. https://wiki.hyprland.org/Configuring/Dispatchers

Aqa-Ib commented 6 months ago

Thanks for your reply. Although, dpms toggle seems broken on hyprland-git and v.0.39.1. Does it work for you?

fufexan commented 6 months ago

Right. It seems to turn off the displays but not turn them back on.

Aqa-Ib commented 6 months ago

I managed to make it work with two bindings: one for dpms off and another for dpms on. I will fill a bug on Hyprland about dpms toggle though. Thank you for the hint, have a nice one !

Edit: the bug was already filled: https://github.com/hyprwm/Hyprland/issues/2845