Go to file
Petr Šabata 8308a0086f Use correct format strings
Both idle and til_or_since are defined as unsigned longs.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-05-07 16:53:19 +02:00
LICENSE Initial commit of xgetidle. 2012-12-07 11:32:02 +01:00
Makefile Adding an example script for slock. 2012-12-08 22:41:48 +01:00
README Adding an example script for slock. 2012-12-08 22:41:48 +01:00
arg.h Initial commit of xgetidle. 2012-12-07 11:32:02 +01:00
config.mk Rename to xssstate and do it right. 2012-12-08 22:31:19 +01:00
xsidle.sh Adding an example script for slock. 2012-12-08 22:41:48 +01:00
xssstate.1 Adding the manpage too. Thanks woddf2! 2013-02-01 13:10:14 +01:00
xssstate.c Use correct format strings 2013-05-07 16:53:19 +02:00

README

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

Xssstate
========
This  is  a  simple utility to get the state of the X screensaver exten
sion.  These states include the idle time, the screensaver state and the
time how long to wait until the screensaver should be active.

The values for the states in X can be changed using xset(1).

Turn off the screensaver:

	% xset s 0

Turn on the screensaver after 60 seconds inactivity:

	% xset s 60

Force the screensaver to be active:

	% xset s blank

For more options, see xset(1).


Example script
--------------
In  xsidle.sh is an example script how to use this for a background ser
vice that will control your screensaver. This  can  be  used  to  invoke
slock(1) using following command:

	% xsidle.sh slock &

This should be useful in your $HOME/.xinitrc file.

Have fun!