inclement / vivarium

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

idle protocol #94

Closed flaviozavan closed 2 years ago

flaviozavan commented 2 years ago

Implements support for the idle protocol, so that vivarium is compatible with tools such as swayidle


Another simple one from my wishlist. I essentially looked at how sway first implemented this for inspiration. I left out cursor frame events as the description suggests it never happens in isolation.

An easy way to test is to run swayidle with a low timeout: e.g. swayidle timeout 3 xeyes resume fire timeout 6 pcmanfm Then check that xeyes runs after 3 seconds of inactivity, that fire runs after activity is resumed, and that pcmanfm is run after 6 seconds.

inclement commented 2 years ago

Thanks!