@allister there is HIDIdleTime that you can poke from ioreg which is what Power Management uses to determine '_inactivity'_. The original ask feels like potential employee productivity monitoring, which leaves me feeling 🤢
➜ sleep 5 && ioreg -c IOHIDSystem | grep HIDIdleTime
| | | "HIDIdleTime" = 60857678