[arch-general] Script to check monitor blank state

Alexander Lam lambchop468 at gmail.com
Mon May 24 18:04:27 EDT 2010

On Mon, May 24, 2010 at 9:36 AM, Markus <markus at hackfleischeis.de> wrote:

> Hello everyone,
> i would like to write a little script, that suspends my computer
> if a few circumstances are met.
> One should be, that my screen should be blanked. I already did a google
> search on this, but i only found howtos of getting it to work / disable it.
> It looks like xset q does not print the actual state.
> Maybe there is a hook for screen blanking?
> I know this is not a arch specific question, but maybe someone can help me.
> Markus

I don't actually have a script for this, although I may end up writing one
because I
want similar functionality (just after xx minutes, suspend, not on screen

But, what you can do is install xscreensaver.
xscreensaver-command -watch can be used to monitor the screen saver state
(which may be just blank your desktop) and thus control the script.

Alexander Lam

More information about the arch-general mailing list