Notice: In hyprland 0.40, this issue breaks this app. Fixed in later versions.
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)
Available in nixpkgs unstable!
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