man-pages/man1/xdg-screensaver.1.html
2021-03-31 01:06:50 +01:00

230 lines
4.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of XDG-SCREENSAVER</TITLE>
</HEAD><BODY>
<H1>XDG-SCREENSAVER</H1>
Section: xdg-screensaver Manual (1)<BR>Updated: 01/11/2021<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
xdg-screensaver - command line tool for controlling the screensaver
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<DL COMPACT>
<DT id="1">
<B>xdg-screensaver</B> <B>suspend&nbsp;</B><B></B><I>WindowID</I>
<DT id="2">
<B>xdg-screensaver</B> <B>resume&nbsp;</B><B></B><I>WindowID</I>
<DT id="3">
<B>xdg-screensaver</B> {<B>activate</B> | <B>lock</B> | <B>reset</B> | <B>status</B>}
<DT id="4">
<B>xdg-screensaver</B> {<B>--help</B> | <B>--manual</B> | <B>--version</B>}
</DL>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<DD>xdg-screensaver provides commands to control the screensaver.
<P>
xdg-screensaver is for use inside a desktop session only. It is not recommended to use xdg-screensaver as root.
<A NAME="lbAE">&nbsp;</A>
<H2>COMMANDS</H2>
<P>
<B>suspend </B><B></B><I>WindowID</I>
<DL COMPACT><DT id="5"><DD>
Suspends the screensaver and monitor power management.
<I>WindowID</I>
must be the X Window ID of an existing window of the calling application. The window must remain in existence for the duration of the suspension.
<P>
WindowID can be represented as either a decimal number or as a hexadecimal number consisting of the prefix
<I>0x</I>
followed by one or more hexadecimal digits.
<P>
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
</DL>
<P>
<B>resume </B><B></B><I>WindowID</I>
<DL COMPACT><DT id="6"><DD>
Resume the screensaver and monitor power management after being suspended.
<I>WindowID</I>
must be the same X Window ID that was passed to a previous call of
<B>xdg-screensaver suspend</B>
</DL>
<P>
<B>activate</B>
<DL COMPACT><DT id="7"><DD>
Turns the screensaver on immediately. This may result in the screen getting locked, depending on existing system policies.
</DL>
<P>
<B>lock</B>
<DL COMPACT><DT id="8"><DD>
Lock the screen immediately.
</DL>
<P>
<B>reset</B>
<DL COMPACT><DT id="9"><DD>
Turns the screensaver off immediately. If the screen was locked the user may be asked to authenticate first.
</DL>
<P>
<B>status</B>
<DL COMPACT><DT id="10"><DD>
Prints
<I>enabled</I>
to stdout if the screensaver is enabled to turn on after a period of inactivity and prints
<I>disabled</I>
if the screensaver is not enabled.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
<B>--help</B>
<DL COMPACT><DT id="11"><DD>
Show command synopsis.
</DL>
<P>
<B>--manual</B>
<DL COMPACT><DT id="12"><DD>
Show this manual page.
</DL>
<P>
<B>--version</B>
<DL COMPACT><DT id="13"><DD>
Show the xdg-utils version information.
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>EXIT CODES</H2>
<P>
An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned:
<P>
<B>1</B>
<DL COMPACT><DT id="14"><DD>
Error in command line syntax.
</DL>
<P>
<B>3</B>
<DL COMPACT><DT id="15"><DD>
A required tool could not be found.
</DL>
<P>
<B>4</B>
<DL COMPACT><DT id="16"><DD>
The action failed.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>EXAMPLES</H2>
<P>
<DL COMPACT><DT id="17"><DD>
<PRE>
xdg-screensaver suspend 0x1c00007
</PRE>
</DL>
<P>
Causes the screensaver to be disabled till
<B>xdg-screensaver resume 0x1c00007</B>
is called.
<I>0x1c00007</I>
must be the X Window ID of an existing window.
<A NAME="lbAI">&nbsp;</A>
<H2>AUTHOR</H2>
<P>
<B>Bryce Harrington</B>
<DL COMPACT><DT id="18"><DD>
Author.
</DL>
<A NAME="lbAJ">&nbsp;</A>
<H2>COPYRIGHT</H2>
<BR>
Copyright &#169; 2006
<BR>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="19"><A HREF="#lbAB">NAME</A><DD>
<DT id="20"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="21"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="22"><A HREF="#lbAE">COMMANDS</A><DD>
<DT id="23"><A HREF="#lbAF">OPTIONS</A><DD>
<DT id="24"><A HREF="#lbAG">EXIT CODES</A><DD>
<DT id="25"><A HREF="#lbAH">EXAMPLES</A><DD>
<DT id="26"><A HREF="#lbAI">AUTHOR</A><DD>
<DT id="27"><A HREF="#lbAJ">COPYRIGHT</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:30 GMT, March 31, 2021
</BODY>
</HTML>