1

how to check how many minutes have passed since the user is idle?

view story
linux-howto

http://serverfault.com – I want to write a script that will show how many minutes the user is idle. Since the last touch of the keyboard and mouse. Example: #!/bin/bash while true do command_lines... ... sleep 60 echo $var done Result: The computer/user is idle for 1 minute. The computer/user is idle for 2 minute. ... The computer/user is idle for 5 minute. ... Can we do that? It can be in Bash, Python, etc. (HowTos)