1
0
Fork
You've already forked widle
0
forked from sewn/widle
Wait until Wayland compositor reports idle timeout
  • C 84.4%
  • Makefile 15.6%
Find a file
2024年06月27日 00:10:05 +03:00
.gitignore initial commit 2024年06月24日 21:50:00 +03:00
LICENSE initial LICENSE; cleanup code 2024年06月24日 22:35:39 +03:00
Makefile 1.0 2024年06月27日 00:10:05 +03:00
README.md document manual USR1 2024年06月26日 12:42:54 +03:00
widle.c 1.0 2024年06月27日 00:10:05 +03:00

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.

Credits