2
4
Fork
You've already forked widle
2
Run a command upon becoming idle
C 64.7%
Makefile 18.2%
Roff 17.1%
Find a file
2025年08月28日 12:23:08 -07: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 Makefile: update CFLAGS (from wlock) 2025年08月28日 12:23:08 -07:00
README.md implement continous, timeout-once, reset-timeout; add man page 2024年10月09日 21:17:07 +03:00
widle.1 man: document default negated -b 2024年10月13日 21:09:11 +03:00
widle.c implement continous, timeout-once, reset-timeout; add man page 2024年10月09日 21:17:07 +03:00

widle

widle is a tiny application that runs a command upon becoming idle utilizing the ext-idle-notify-v1 protocol.

Building

To build widle first ensure that you have the following dependencies:

  • pkg-config
  • wayland
  • wayland-protocols

Afterwards, run:

make
make install

Usage

See the man page.

Comparison

There are other idle management daemons for wayland compositors that can compare with widle, and can have behavioural changes or codebase differences:

  • swayidle: Significantly more control compared to widle, but has a bigger (~900 LOC vs ~200 LOC) codebase, and can replicate widles behavior with swayidle 'timeout 360 wlock'.
  • wayidle: Only runs the command once instead of looping, and is written in Rust.

Swayidle is reccomended in more practical or flexible idle management such as performing commands on specific timeouts, optionally waiting on command finish, and having specific set actions on timeout idle/resume.

Credits