inclement / vivarium

A dynamic tiling Wayland compositor using wlroots
GNU General Public License v3.0
367 stars 13 forks source link

Support for wlr_output_power_management_v1 #93

Closed flaviozavan closed 2 years ago

flaviozavan commented 2 years ago

Introduces support for the wlr_output_power_management_v1 protocol, which allows for compatibility with power saving/dpms tools and utilities


I couldn't find a way to turn off my laptop's screen without closing the lid, so I implemented this.

An easy way to test is with wlopm (https://sr.ht/~leon_plickat/wlopm/) or a patched version of swaylock (https://github.com/gartnera/swaylock)

inclement commented 2 years ago

Code looks good and I double checked it's working, thanks again.

In case it isn't obvious, protocols like this one haven't been added yet only because I don't currently need them in my own setup and haven't got around to prioritising them. They are an extremely welcome addition in general.