wmclock: Add section to manpage about usage of translated XPM files.
[dockapps.git] / wmclock / wmclock.man.in
blob8d38c2da8f50957331338f437afda5cb0e7c4076
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 1x "@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\-version\fB
65 Displays the version of Wmclock.
66 .TP
67 \fB\-exe\fR \fIcommand\fR
68 Run
69 .I command
70 in the background when a mouse button is pressed over
71 .BR wmclock .
72 See below for details.
73 .TP
74 \fB\-led\fR \fIcolor\fR
75 Use
76 .I color
77 as the foreground color of the LED display.
78 .I Color
79 may be either a named color from the rgb.txt database (for example,
80 `red' or `chartreuse') or a numeric color specification in any of the usual
81 X11 formats (for example, `#ff0000' or `rgb:7f/ff/00').  See the
82 .BR X (1)
83 man page for more information.
84 .TP
85 \fB\-monthxpm\fR \fIfilename\fR
86 Get month abbreviations from
87 .IR filename ,
88 which is expected to be in the XPM format.  See below for details.
89 .TP
90 \fB\-weekdayxpm\fR \fIfilename\fR
91 Get weekday abbreviations from
92 .IR filename ,
93 which is expected to be in the XPM format.  See below for details.
94 .\" ----------------------------------------------------------------
95 .SH INVOCATION AND EXAMPLES
96 .PP
97 The simplest way to start
98 .B wmclock
99 is:
103 wmclock
106 .B Wmclock
107 displays in its own appicon, which you can place in Window Maker's dock
108 by holding down the [Alt] or [Meta] key and dragging
109 .B wmclock
110 to the dock with the primary mouse button (usually the left one).
112 For a more complicated example:
116 wmclock \-12 \-led gold \-exe /usr/GNUstep/Apps/WPrefs.app/WPrefs
119 This displays 12-hour time in an amber-colored LED display, and starts
120 Window Maker's preferences utility when you click on
121 .BR wmclock .
122 .\" ----------------------------------------------------------------
123 .SH DETAILS
124 .SS Running Commands
126 When you use
127 .B wmclock
128 with the 
129 .B \-exe
130 option,
131 .B wmclock
132 will run the command you specify whenever you press a mouse button
133 while the mouse cursor is over
134 .BR wmclock .
135 .B Wmclock
136 uses the
137 .BR system (3)
138 function from the C library (and ultimately 
139 .BR /bin/sh )
140 to run the command; hence, the command must be in Bourne-shell syntax.
141 .SS Using Alternate Month and Weekday Abbreviations
143 You can use the
144 .B \-monthxpm
146 .B \-weekdayxpm
147 options to convince
148 .B wmclock
149 to display month and day-of-week abbreviations in a language besides
150 the one it was compiled with, or to display them in a language that
151 .B wmclock
152 does not yet support.  The files you specify must be in the XPM format,
153 and they must follow the same strict size and placement as the month
154 and weekday XPMs that come in the
155 .B wmclock
156 source package.  Each weekday abbreviation must be 21 pixels wide and 6
157 pixels high; each month abbreviation must be 22 pixels wide and 6
158 pixels high.  The month abbreviations must be arranged vertically,
159 beginning with January at the top and continuing down to December at
160 the bottom.  The weekday abbreviations must also be arranged
161 vertically, beginning with Monday at the top and continuing to Sunday
162 at the bottom.
164 You can find XPM files for a variety of languages in:
167 .BR /usr/share/wmclock/
170 For example, to have a French display, you could use the following
171 command line:
175 wmclock \-monthxpm /usr/share/wmclock/lang.french/month.xpm \-weekdayxpm /usr/share/wmclock/lang.french/weekday.xpm
178 .SS Obsolete Options
180 In order to maintain command-line compatibility (mostly) with
181 .BR asclock ,
182 .B wmclock
183 accepts a few options on the command line without complaining, even
184 though they don't have any effect.  The options which
185 .B wmclock
186 accepts in this manner are
187 .B \-shape
189 .BR \-iconic .
190 Some dockable versions of
191 .B asclock
192 required one or both of these options to become properly dockable.
193 However, Since
194 .B wmclock
195 is designed for Window Maker's dock, it already displays in a shaped
196 window in its own dockable appicon.
197 .\" ----------------------------------------------------------------
198 .SH BUGS
200 .B Wmclock
201 shouldn't run a command on a single click; should use a double click
202 instead.
204 .B Wmclock
205 should use Alfredo Kojima's libdockapp library instead of inventing its
206 own wheel.
207 .\" ----------------------------------------------------------------
208 .SH SEE ALSO
210 X(1), asclock(1x), wmaker(1x), system(3)
211 .\" ----------------------------------------------------------------
212 .SH COPYRIGHT AND LICENSE
214 Copyright (C) 1999 by Jim Knoble <jmknoble@pobox.com>.  Significant
215 portions of
216 .B wmclock
217 are directly derived from
218 .B asclock
219 by Beat Christen, who, along with
220 .BR asclock 's
221 other authors, owns the copyright to those portions of
222 .BR wmclock .
224 .B Wmclock
225 is licensed under the GNU General Public License, version 2, or (at
226 your option) any later version.  See <http://www.gnu.org/> for more
227 information.
228 .SH AUTHORS
230 Jim Knoble <jmknoble@pobox.com>
232 Beat Christen <spiff@longstreet.ch>, author of \fBasclock\fI
233 .\" ----------------------------------------------------------------
234 .SH DISCLAIMER
236 The software is provided ``as is'', without warranty of any kind,
237 express or implied, including but not limited to the warranties of
238 merchantability, fitness for a particular purpose and noninfringement.
239 In no event shall the author(s) be liable for any claim, damages or
240 other liability, whether in an action of contract, tort or otherwise,
241 arising from, out of or in connection with the software or the use or
242 other dealings in the software.
244 Your mileage may vary.  Eat your vegetables.