forked from sewn/widle
Wait until Wayland compositor reports idle timeout
- C 84.4%
- Makefile 15.6%
| .gitignore | initial commit | |
| LICENSE | initial LICENSE; cleanup code | |
| Makefile | 1.0 | |
| README.md | document manual USR1 | |
| widle.c | 1.0 | |
widle
widle is a tiny application that waits until the compositor reports being idle for a set amount of seconds.
The USR1 signal is used to indicate idle timeout, it can be sent to restart
the command (if given) or immediately exit; TERM and INT cause widle to
return failure. If a manual USR1 is sent, the timeout will not be reset.
Building
To build widle first ensure that you have the following dependencies:
- pkg-config
- wayland
- wayland-protocols
Afterwards, run:
make
make install
Usage
widle -t 180 wlock
See the widle usage (widle -h) for more details.