How to program a batch program to determine if a the screensaver is running or if the user went to sleep, or locked the computer?
In bash in Ubuntu Linux I am using t