Poor man power manager. Is akin to xautolock or xss-lock, but also works in Wayland and console, since activity tracking is done via evdev. Takes battery state into consideration. D-Bus sleep inhibiting is supported (Firefox, VLC, ...).
- curl https://nixos.org/nix/install | sh
- Edit settings at the top of script to match your needs
- Run this script. Use
-fcommand line argument to debug
kill -CONTto pause/resume script