hyprwm / hypridle

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

[Feature] Listen to key bind #54

Closed Aqa-Ib closed 1 month ago

Aqa-Ib commented 1 month 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 1 month ago

Can already be done from Hyprland.

Aqa-Ib commented 1 month ago

How ?

fufexan commented 1 month ago

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

Aqa-Ib commented 1 month 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 1 month ago

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

Aqa-Ib commented 1 month 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