I need my Electron app to respond to the user becoming idle (no mouse or keyboard inputs to any program on the OS) for a certain amount of time.
How can I trigger a func
Look at Electron Power monitor API's and use
powerMonitor.getSystemIdleTime()