Subject: determining if the screen is blanked
To: None <netbsd-users@netbsd.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: netbsd-users
Date: 07/28/2005 13:00:31
I'd like to find a way to tell, from a shell script, if the (X windows) 
screen is blanked on my machine.  In particular, I'd like to avoid 
displaying new background images on my laptop if the screen is blanked 
(and if the machine is on battery, but I know how to test that).  

If it matters, I'm running Xorg.

		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb