README - xssstate - a simple utility to get the X screensaver state | |
git clone git://git.suckless.org/xssstate | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
README (784B) | |
--- | |
1 Xssstate | |
2 ======== | |
3 This is a simple utility to get the state of the X screensaver exten�… | |
4 sion. These states include the idle time, the screensaver state and the | |
5 time how long to wait until the screensaver should be active. | |
6 | |
7 The values for the states in X can be changed using xset(1). | |
8 | |
9 Turn off the screensaver: | |
10 | |
11 % xset s 0 | |
12 | |
13 Turn on the screensaver after 60 seconds inactivity: | |
14 | |
15 % xset s 60 | |
16 | |
17 Force the screensaver to be active: | |
18 | |
19 % xset s blank | |
20 | |
21 For more options, see xset(1). | |
22 | |
23 | |
24 Example script | |
25 -------------- | |
26 In xsidle.sh is an example script how to use this for a background ser�… | |
27 vice that will control your screensaver. This can be used to invoke | |
28 slock(1) using following command: | |
29 | |
30 % xsidle.sh slock & | |
31 | |
32 This should be useful in your $HOME/.xinitrc file. | |
33 | |
34 Have fun! |