blob: cab83355ea01bc2d1ef7035a610836d9d22d95d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.TH "XDG\-SCREENSAVER" "1" "09/13/2006" "xdg\-utils 1.0 beta4" ""
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
xdg\-screensaver \- command line tool for controlling the screensaver
.SH "SYNOPSIS"
.HP 16
\fBxdg\-screensaver\fR \fBsuspend\ \fR\fB\fIWindowID\fR\fR
.HP 16
\fBxdg\-screensaver\fR \fBresume\ \fR\fB\fIWindowID\fR\fR
.HP 16
\fBxdg\-screensaver\fR {\fBactivate\fR \fBlock\fR \fBreset\fR \fBstatus\fR}
.HP 16
\fBxdg\-screensaver\fR {\fB\-\-help\fR \fB\-\-manual\fR \fB\-\-version\fR}
.SH "DESCRIPTION"
.PP
xdg\-screensaver provides commands to control the screensaver.
.PP
xdg\-screensaver is for use inside a desktop session only. It is not recommended to use xdg\-screensaver as root.
.SH "COMMANDS"
.TP
\fBsuspend \fR\fB\fIWindowID\fR\fR
Suspends the screensaver and monitor power management.
\fIWindowID\fR
must be the X Window ID of an existing window of the calling application. The window must remain in existance for the duration of the suspension.
.sp
WindowID can be represented as either a decimal number or as a hexadecimal number consisting of the prefix
\fI0x\fR
followed by one or more hexadecimal digits.
.sp
The screensaver can be suspended in relation to multiple windows at the same time. In that case screensaver operation is only restored once the screensaver has been resumed in relation to each of the windows
.TP
\fBresume \fR\fB\fIWindowID\fR\fR
Resume the screensaver and monitor power management after being suspended.
\fIWindowID\fR
must be the same X Window ID that was passed to a previous call of
\fBxdg\-screensaver suspend\fR
.TP
\fBactivate\fR
Turns the screensaver on immediately. This may result in the screen getting locked, depending on existing system policies.
.TP
\fBlock\fR
Lock the screen immediately.
.TP
\fBreset\fR
Turns the screensaver off immediately. If the screen was locked the user may be asked to authenticate first.
.TP
\fBstatus\fR
Prints
\fIenabled\fR
to stdout if the screensaver is enabled to turn on after a period of inactivity and prints
\fIdisabled\fR
if the screensaver is not enabled.
.SH "OPTIONS"
.TP
\fB\-\-help\fR
Show command synopsis.
.TP
\fB\-\-manual\fR
Show this manualpage.
.TP
\fB\-\-version\fR
Show the xdg\-utils version information.
.SH "EXIT CODES"
.PP
An exit code of 0 indicates success while a non\-zero exit code indicates failure. The following failure codes can be returned:
.TP
\fB1\fR
Error in command line syntax.
.TP
\fB3\fR
A required tool could not be found.
.TP
\fB4\fR
The action failed.
.SH "EXAMPLES"
.PP
.nf
xdg\-screensaver suspend 0x1c00007
.fi
.sp
Causes the screensaver to be disabled till
\fBxdg\-screensaver resume 0x1c00007\fR
is called.
\fI0x1c00007\fR
must be the X Window ID of an existing window.
.SH "AUTHOR"
Bryce Harrington.
.br
<bryce@osdl.org>
|