Is there a shell command that will return how much time has passed since the
last time a user moved or clicked the mouse or hit a key on the keyboard?

ES