wmshutdown: Destroy dialog window before shutting down. This is especially useful...
[dockapps.git] / wmclock / wmclock.1.in
blob93fd077268b37fdb1521f215f7e2770f824e4e74
1 .\" wmclock.man: manual page for wmclock -*- nroff -*-
2 .\" created 1999-Apr-09 jmk
3 .\"
4 .\" by Jim Knoble <jmknoble@pobox.com>
5 .\" Copyright (C) 1999 Jim Knoble
6 .\" Based on asclock.man by Dan Weeks.
7 .\"
8 .\" Disclaimer:
9 .\"
10 .\" The software is provided "as is", without warranty of any kind,
11 .\" express or implied, including but not limited to the warranties of
12 .\" merchantability, fitness for a particular purpose and
13 .\" noninfringement. In no event shall the author(s) be liable for any
14 .\" claim, damages or other liability, whether in an action of
15 .\" contract, tort or otherwise, arising from, out of or in connection
16 .\" with the software or the use or other dealings in the software.
17 .\"
18 .de TQ
19 .br
20 .ns
21 .TP \\$1
23 .\" ----------------------------------------------------------------
24 .TH wmclock 1 @DATE@ "Version @VERSION@"
25 .\" ----------------------------------------------------------------
26 .SH NAME
27 wmclock \- A dockable clock for the Window Maker window manager
28 .\" ----------------------------------------------------------------
29 .SH SYNOPSIS
30 .HP
31 \fBwmclock\fP [{\-12|\-24|\-year}] [\-noblink] [\-version] [\-exe \fIprogram\fP]
32 [\-led \fIcolor\fP] [\-monthxpm \fIfilename\fP] [\-weekdayxpm
33 \fIfilename\fP]
34 .\" ----------------------------------------------------------------
35 .SH DESCRIPTION
36 .PP
37 .B Wmclock
38 is an applet which displays the date and time in a dockable tile in the
39 same style as the clock from the NEXTSTEP(tm) operating system.
40 .B Wmclock
41 is specially designed for the Window Maker window manager, by Alfredo
42 Kojima, and features multiple language support, twenty-four-hour and
43 twelve-hour (am/pm) time display, and, optionally, can run a
44 user-specified program on a mouse click.
45 .B Wmclock
46 is derived from
47 .BR asclock ,
48 a similar clock for the AfterStep window manager.
49 .\" ----------------------------------------------------------------
50 .SH OPTIONS
51 .TP
52 \fB\-12\fR or \fB\-24\fR
53 Display the time in either twelve-hour format (with am/pm) or
54 twenty-four-hour format.  Defaults to twenty-four-hour display.
55 .TP
56 \fB\-year\fR
57 Display the current year in the LED display instead of the time.
58 .TP
59 \fB\-noblink\fR
60 The separator between the hours and minutes in the time display blinks
61 by default.  This option turns off the blinking and displays a steadily
62 lit separator instead.
63 .TP
64 \fB\-interval\fI n\fR
65 Set the blink cycle to
66 .I n
67 seconds.  The default is 2 (1 second on, 1 second off).
68 .TP
69 \fB\-version\fB
70 Displays the version of Wmclock.
71 .TP
72 \fB\-exe\fR \fIcommand\fR
73 Run
74 .I command
75 in the background when a mouse button is pressed over
76 .BR wmclock .
77 See below for details.
78 .TP
79 \fB\-led\fR \fIcolor\fR
80 Use
81 .I color
82 as the foreground color of the LED display.
83 .I Color
84 may be either a named color from the rgb.txt database (for example,
85 `red' or `chartreuse') or a numeric color specification in any of the usual
86 X11 formats (for example, `#ff0000' or `rgb:7f/ff/00').  See the
87 .BR X (1)
88 man page for more information.
89 .TP
90 \fB\-monthxpm\fR \fIfilename\fR
91 Get month abbreviations from
92 .IR filename ,
93 which is expected to be in the XPM format.  See below for details.
94 .TP
95 \fB\-weekdayxpm\fR \fIfilename\fR
96 Get weekday abbreviations from
97 .IR filename ,
98 which is expected to be in the XPM format.  See below for details.
99 .\" ----------------------------------------------------------------
100 .SH INVOCATION AND EXAMPLES
102 The simplest way to start
103 .B wmclock
108 wmclock
111 .B Wmclock
112 displays in its own appicon, which you can place in Window Maker's dock
113 by holding down the [Alt] or [Meta] key and dragging
114 .B wmclock
115 to the dock with the primary mouse button (usually the left one).
117 For a more complicated example:
121 wmclock \-12 \-led gold \-exe /usr/GNUstep/Apps/WPrefs.app/WPrefs
124 This displays 12-hour time in an amber-colored LED display, and starts
125 Window Maker's preferences utility when you click on
126 .BR wmclock .
127 .\" ----------------------------------------------------------------
128 .SH DETAILS
129 .SS Running Commands
131 When you use
132 .B wmclock
133 with the
134 .B \-exe
135 option,
136 .B wmclock
137 will run the command you specify whenever you press a mouse button
138 while the mouse cursor is over
139 .BR wmclock .
140 .B Wmclock
141 uses the
142 .BR system (3)
143 function from the C library (and ultimately
144 .BR /bin/sh )
145 to run the command; hence, the command must be in Bourne-shell syntax.
146 .SS Using Alternate Month and Weekday Abbreviations
148 You can use the
149 .B \-monthxpm
151 .B \-weekdayxpm
152 options to convince
153 .B wmclock
154 to display month and day-of-week abbreviations in a language besides
155 the one it was compiled with, or to display them in a language that
156 .B wmclock
157 does not yet support.  The files you specify must be in the XPM format,
158 and they must follow the same strict size and placement as the month
159 and weekday XPMs that come in the
160 .B wmclock
161 source package.  Each weekday abbreviation must be 21 pixels wide and 6
162 pixels high; each month abbreviation must be 22 pixels wide and 6
163 pixels high.  The month abbreviations must be arranged vertically,
164 beginning with January at the top and continuing down to December at
165 the bottom.  The weekday abbreviations must also be arranged
166 vertically, beginning with Monday at the top and continuing to Sunday
167 at the bottom.
169 You can find XPM files for a variety of languages in:
172 .BR "@prefix@/share/wmclock"
175 For example, to have a French display, you could use the following
176 command line:
180 wmclock \-monthxpm @prefix@/share/wmclock/lang.french/month.xpm \-weekdayxpm @prefix@/share/wmclock/lang.french/weekday.xpm
183 .SS Obsolete Options
185 In order to maintain command-line compatibility (mostly) with
186 .BR asclock ,
187 .B wmclock
188 accepts a few options on the command line without complaining, even
189 though they don't have any effect.  The options which
190 .B wmclock
191 accepts in this manner are
192 .B \-shape
194 .BR \-iconic .
195 Some dockable versions of
196 .B asclock
197 required one or both of these options to become properly dockable.
198 However, Since
199 .B wmclock
200 is designed for Window Maker's dock, it already displays in a shaped
201 window in its own dockable appicon.
202 .\" ----------------------------------------------------------------
203 .SH BUGS
205 .B Wmclock
206 shouldn't run a command on a single click; should use a double click
207 instead.
209 .B Wmclock
210 should use Alfredo Kojima's libdockapp library instead of inventing its
211 own wheel.
212 .\" ----------------------------------------------------------------
213 .SH SEE ALSO
215 X(1), asclock(1x), wmaker(1x), system(3)
216 .\" ----------------------------------------------------------------
217 .SH COPYRIGHT AND LICENSE
219 Copyright (C) 1999 by Jim Knoble <jmknoble@pobox.com>.  Significant
220 portions of
221 .B wmclock
222 are directly derived from
223 .B asclock
224 by Beat Christen, who, along with
225 .BR asclock 's
226 other authors, owns the copyright to those portions of
227 .BR wmclock .
229 .B Wmclock
230 is licensed under the GNU General Public License, version 2, or (at
231 your option) any later version.  See <http://www.gnu.org/> for more
232 information.
233 .SH AUTHORS
235 Jim Knoble <jmknoble@pobox.com>
237 Beat Christen <spiff@longstreet.ch>, author of \fBasclock\fI
238 .\" ----------------------------------------------------------------
239 .SH DISCLAIMER
241 The software is provided ``as is'', without warranty of any kind,
242 express or implied, including but not limited to the warranties of
243 merchantability, fitness for a particular purpose and noninfringement.
244 In no event shall the author(s) be liable for any claim, damages or
245 other liability, whether in an action of contract, tort or otherwise,
246 arising from, out of or in connection with the software or the use or
247 other dealings in the software.
249 Your mileage may vary.  Eat your vegetables.