Build separately from libraries.
[xtoys] / xwait.1
... / ...
CommitLineData
1.\" -*-nroff-*-
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.
9.TH xwait 1 "15 November 1998" "Edgeware tools"
10.SH NAME
11xwait \- wait until prodded by another X client
12.SH SYNOPSIS
13.ll +5i
14.B xwait
15.RB [ \-f ]
16.RB [ \-d
17.IR display ]
18.RB [ \-a
19.IR atom ]
20.RB [ \-m
21.IR msg ]
22.RI [ \c
23.IB atom : msg , msg \c
24\&...]
25.ll -5i
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
39The properties, and the values to listen for, can be configured at the
40command line. When
41.B xwait
42exits, it removes the properties from the root window.
43.SS Options
44.TP 5
45.B \-f, \-\-force
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
51.BI "\-d, \-\-display " display
52Attempt to connect to
53.I display
54rather than the display named in the usual environment variable.
55.TP 5
56.BI "\-a, \-\-atom " atom
57Sets
58.B xwait
59to listen for the property named
60.IR atom .
61Use of this option is deprecated.
62.TP 5
63.BI "\-m, \-\-msg " msg
64Sets
65.B xwait
66to wait for the given property to be set to
67.IR msg .
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
88.BR XWAIT_MESSAGE .
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.
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).