A simple daemon that runs in the background to check users last activity. A MQTT packet is fired every X minutes if user activity was detected.
You'll need go installed to compile the code. Once complied you'll have a single binary called "user_idle".
This program uses a YAML config to store params. The config file default location is the home directory of the user.