Make flags be unsigned.
[xtoys] / xwait.1
CommitLineData
b6eb57e6 1.\" -*-nroff-*-
e571b0f1 2.de hP
3.IP
4\h'-\w'\fB\\$1\ \fP'u'\fB\\$1\ \fP\c
5..
6.ie t .ds o \(bu
7.el .ds o o
8.
ec19d7af 9.TH xwait 1 "15 November 1998" "Straylight/Edgeware" "xtoys"
90b2c5d4 10.SH NAME
11xwait \- wait until prodded by another X client
12.SH SYNOPSIS
25c93171 13.ll +5i
90b2c5d4 14.B xwait
162913e9 15.RB [ \-f ]
90b2c5d4 16.RB [ \-d
17.IR display ]
18.RB [ \-a
19.IR atom ]
20.RB [ \-m
e571b0f1 21.IR msg ]
25c93171 22.RI [ \c
23.IB atom : msg , msg \c
24\&...]
25.ll -5i
90b2c5d4 26.SH DESCRIPTION
27The
28.B xwait
29program waits until it notices that a particular property on the X root
30window has been assigned a particular value, at which point the program
31exits. The property can be set using the
32.BR xtell (1)
33and
34.BR xshutdown (1)
35programs. It's mostly useful for putting at the end of a user's
36.B .xinitrc
37file, so that it can be triggered to end the session.
38.PP
25c93171 39The properties, and the values to listen for, can be configured at the
40command line. When
90b2c5d4 41.B xwait
25c93171 42exits, it removes the properties from the root window.
e571b0f1 43.SS Options
90b2c5d4 44.TP 5
f3b35b6b 45.B \-f, \-\-force
90b2c5d4 46Force
47.B xwait
48to start up, even though there may be an existing process already
49listening for the particular atom in question.
50.TP 5
f3b35b6b 51.BI "\-d, \-\-display " display
90b2c5d4 52Attempt to connect to
53.I display
54rather than the display named in the usual environment variable.
55.TP 5
f3b35b6b 56.BI "\-a, \-\-atom " atom
90b2c5d4 57Sets
58.B xwait
59to listen for the property named
60.IR atom .
25c93171 61Use of this option is deprecated.
90b2c5d4 62.TP 5
e571b0f1 63.BI "\-m, \-\-msg " msg
90b2c5d4 64Sets
65.B xwait
66to wait for the given property to be set to
e571b0f1 67.IR msg .
25c93171 68Use of this option is deprecated.
69.SS "Argument format"
70The
71.B \-a
72and
73.B \-m
74options are deprecated, though retained for compatibility reasons.
75It's recommended that you use the non-option specification instead.
76.PP
77Each argument specifies an atom name and a list of message strings to
78listen to. Multiple properties may be listened for, and multiple
79messages may be accepted for each property. If no messages are
80specified then all values are considered to be acceptable. The program
81exits when any property is set to an acceptable value.
82.PP
83If no atoms are given on the command line,
84.B xwait
85will wait for
86.B XWAIT_PROPERTY
87to be set to
90b2c5d4 88.BR XWAIT_MESSAGE .
e571b0f1 89.SS "Output format"
90When a message is eventually received,
91.B xwait
92prints information about it to standard output:
93.hP \*o
94If more than one property (atom) was specified, the property name is
95printed.
96.hP \*o
97If more than one message is recognized for the property, the message
98string is printed; if a property name was printed, the two are separated
99by a colon and a single space character.
100.PP
101.B xwait
102then exits with return code 0.
90b2c5d4 103.SH AUTHOR
104Mark Wooding (mdw@nsict.org).
105.SH BUGS
106None currently known.
107.SH SEE ALSO
108.BR xtell (1),
109and
110.BR xshutdown (1).