1XCLOCK(1)                   General Commands Manual                  XCLOCK(1)
2
3
4

NAME

6       xclock - analog / digital clock for X
7

SYNOPSIS

9       xclock  [  -help ] [ -analog ] [ -digital ] [ -brief ] [ -chime ] [ -hd
10       color ] [ -hl color ] [ -update seconds ] [ -strftime format ] [  -pad‐
11       ding number ] [ -norender ] [ -render ] [ -sharp ] [ -face pattern ]
12

DESCRIPTION

14       The  xclock  program  displays the time in analog or digital form.  The
15       time is continuously updated at a frequency which may be  specified  by
16       the user.
17

OPTIONS

19       Xclock accepts all of the standard X Toolkit command line options along
20       with the additional options listed below:
21
22       -help   This option indicates that  a  brief  summary  of  the  allowed
23               options should be printed on the standard error.
24
25       -analog This  option  indicates  that a conventional 12 hour clock face
26               with tick marks and hands should be used.  This is the default.
27
28       -digital or -d
29               This option indicates that a 24 hour digital  clock  should  be
30               used.
31
32       -brief  This  option  indicates that the digital clock should only dis‐
33               play the hours and minutes fields.  The default is to show  the
34               full time and date information.
35
36       -utime or -d
37               This  option indicates that a digital clock should display sec‐
38               onds since the Epoch (in format '970012340 seconds since Epoch'
39               instead of a standard 24-hour time.
40
41       -strftime format
42               This option allows an strftime(3) format string to be specified
43               for the digital clock's display.
44
45       -twelve This option indicates that a digital clock should  display  the
46               time in twelve hour format.
47
48       -twentyfour
49               This  option  indicates that a digital clock should display the
50               time in twenty-four hour format.  This is the  default  when  a
51               digital clock is used.
52
53       -chime  This  option  indicates that the clock should chime once on the
54               half hour and twice on the hour.
55
56       -hands color (or -hd color)
57               This option specifies the color  of  the  hands  on  an  analog
58               clock.   The  default  is  black.   This  option is effectively
59               ignored when Xrender is in use.
60
61       -highlight color (or -hl color)
62               This option specifies the color of the edges of the hands on an
63               analog  clock,  and  is  only  useful  on  color displays.  The
64               default is black.  This  option  is  effectively  ignored  when
65               Xrender is in use.
66
67       -update seconds
68               This  option specifies the frequency in seconds at which xclock
69               should update its display.  If the clock is obscured  and  then
70               exposed, it will be updated immediately.  A value of 30 seconds
71               or less will enable a second hand  on  an  analog  clock.   The
72               default is 60 seconds.
73
74       -padding number
75               This  option  specifies  the  width  in  pixels  of the padding
76               between the window border  and  clock  text  or  picture.   The
77               default is 10 on a digital clock and 8 on an analog clock.
78
79       -render This  option  tells xclock to use the Xrender extension to draw
80               an anti-aliased face. This is the default if  xclock  has  been
81               compiled  with  Xrender support.  Note that the color selection
82               options and resources used when Xrender  is  in  effect  differ
83               from the standard options.
84
85       -norender
86               This option turns off the use of Xrender to draw the clock.
87
88       -sharp  This  option tells xclock to use sharper edges when drawn using
89               the Xrender extension.
90
91       -face pattern
92               This option specifies the font to use in digital mode when  the
93               Xrender extension is used.
94

X DEFAULTS

96       This  program  uses  the  Clock widget.  It understands all of the core
97       resource names and classes as well as:
98
99       width (class Width)
100               Specifies the width of  the  clock.   The  default  for  analog
101               clocks  is  164 pixels; the default for digital clocks is what‐
102               ever is needed to hold the clock when displayed in  the  chosen
103               font.
104
105       height (class Height)
106               Specifies  the  height  of  the  clock.  The default for analog
107               clocks is 164 pixels; the default for digital clocks  is  what‐
108               ever  is  needed to hold the clock when displayed in the chosen
109               font.
110
111       update (class Interval)
112               Specifies the frequency in seconds at which the time should  be
113               redisplayed.
114
115       foreground (class Foreground)
116               Specifies  the color for the tick marks. The default depends on
117               whether reverseVideo is specified.  If reverseVideo  is  speci‐
118               fied the default is lwhite, otherwise the default is black.
119
120
121       hands (class Foreground)
122               Specifies  the  color  of the insides of the clock's hands. The
123               default depends  on  whether  reverseVideo  is  specified.   If
124               reverseVideo  is specified the default is lwhite, otherwise the
125               default is black.  Note that this resource  is  not  used  when
126               Xrender is in effect.
127
128       highlight (class Foreground)
129               Specifies  the  color  used to highlight the clock's hands. The
130               default is
131                depends on whether reverseVideo is specified.  If reverseVideo
132               is  specified  the  default is lwhite, otherwise the default is
133               black.  Note that this resource is not used when Xrender is  in
134               effect.
135
136       analog (class Boolean)
137               Specifies whether or not an analog clock should be used instead
138               of a digital one.  The default is True.
139
140       twentyfour (class Boolean)
141               Specifies whether or not a digital  clock  should  display  the
142               time in twenty-four hour format.  The default is True.
143
144       chime (class Boolean)
145               Specifies  whether or not a bell should be rung on the hour and
146               half hour.
147
148       padding (class Margin)
149               Specifies the amount of internal padding in pixels to be  used.
150               The default is 8.
151
152       font (class Font)
153               Specifies the font to be used for the digital clock.  Note that
154               variable width fonts currently will  not  always  display  cor‐
155               rectly.  This font is only used when Xrender is not in effect.
156
157       render (class Boolean)
158               Specifies  whether  or not the Xrender extension should be used
159               for the display. The default is True if xclock  has  been  com‐
160               piled with Xrender support.
161
162       When  Xrender  is  in  effect,  the  following additional resources are
163       understood:
164
165       face (class FaceName)
166               Specify the pattern for the font to be  used  for  the  digital
167               clock when Xrender is used.
168
169       sharp (class Boolean)
170               Specifies  if  sharp  edges  should  be used when rendering the
171               clock.  The default is False.
172
173       buffer (class Boolean)
174               Specifies that the updates of the image are drawn to  a  pixmap
175               before  copied  into  the  window instead drawing them into the
176               window directly.
177
178       The defaults of the following color resources depend on whether  rever‐
179       seVideo  is  specified.   If  reverseVideo  is specified the default is
180       lwhite, otherwise the default is black.
181
182       hourColor (class Foreground)
183               The color of the hour hand.
184
185       minuteColor (class Foreground)
186               The color of the minute hand.
187
188       secondColor (class Foreground)
189               The color of the second hand.
190
191       majorColor (class Foreground)
192               The color of the major scale ticks (i. e. each five minutes).
193
194       minorColor (class Foreground)
195               The color of the minor scale ticks (between major ticks).
196

WIDGETS

198       In order to specify resources, it is useful to know  the  hierarchy  of
199       the  widgets  which compose xclock.  In the notation below, indentation
200       indicates hierarchical structure.   The  widget  class  name  is  given
201       first, followed by the widget instance name.
202
203       XClock  xclock
204            Clock  clock
205
206

ENVIRONMENT

208       DISPLAY to get the default host and display number.
209
210       XENVIRONMENT
211               to  get  the  name of a resource file that overrides the global
212               resources stored in the RESOURCE_MANAGER property.
213

FILES

215       /usr/share/X11/app-defaults/XClock
216              specifies required resources
217

SEE ALSO

219       X(7), xrdb(1), time(3C)
220

BUGS

222       Xclock believes the system clock.
223
224       When in digital mode, the string should be centered automatically.
225

AUTHORS

227       Tony Della Fera (MIT-Athena, DEC)
228       Dave Mankins (MIT-Athena, BBN)
229       Ed Moy (UC Berkeley)
230
231
232
233
234X Version 11                     xclock 1.0.2                        XCLOCK(1)
Impressum