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.
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 thatxeyes
runs after 3 seconds of inactivity, thatfire
runs after activity is resumed, and thatpcmanfm
is run after 6 seconds.