Important
This program is fundamentally broken. Compositors implementing the idle-inhibit protocol correctly (many of them dont) will not work.
If this is the case, have a look at systemd-inhibit
wlinhibit is an extremely simple program to prevent your wayland compositor from going idle. if it runs idle inhibit is active, if not not. its that simple.
(Your compositor needs to support idle-inhibit-unstable-v1.xml, most of them do. See here)
Get it from:
You will probably want to setup a keybind that runs something like
killall wlinhibit || wlinhibit
nix build
or the old fashioned way
meson setup build
cd build
meson install