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  ]  [
11       -twelve  |  -twentyfour  | -utime ] [ -padding number ] [ -norender ] [
12       -render ] [ -sharp ] [ -face pattern ]
13

DESCRIPTION

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

OPTIONS

20       Xclock accepts all of the standard X Toolkit command line options along
21       with the additional options listed below:
22
23       -help   This  option  indicates that a brief summary of the allowed op‐
24               tions should be printed on the standard error.
25
26       -analog This option indicates that a conventional 12  hour  clock  face
27               with tick marks and hands should be used.  This is the default.
28
29       -digital or -d
30               This  option  indicates  that a 24 hour digital clock should be
31               used.
32
33       -brief  This option indicates that the digital clock should  only  dis‐
34               play  the hours and minutes fields.  The default is to show the
35               full time and date information.
36
37       -utime  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.  This is  only  effective  for  the
47               brief display.
48
49       -twentyfour
50               This  option  indicates that a digital clock should display the
51               time in twenty-four hour format.  This is  only  effective  for
52               the brief display.  This is the default when a digital clock is
53               used.
54
55       -chime  This option indicates that the clock should chime once  on  the
56               half hour and twice on the hour.
57
58       -hands color (or -hd color)
59               This  option  specifies  the  color  of  the hands on an analog
60               clock.  The default is black.  This option is  effectively  ig‐
61               nored when Xrender is in use.
62
63       -highlight color (or -hl color)
64               This option specifies the color of the edges of the hands on an
65               analog clock, and is only useful on color  displays.   The  de‐
66               fault  is black.  This option is effectively ignored when Xren‐
67               der is in use.
68
69       -update seconds
70               This option specifies the frequency in seconds at which  xclock
71               should  update  its display.  If the clock is obscured and then
72               exposed, it will be updated immediately.  A value of 30 seconds
73               or  less will enable a second hand on an analog clock.  The de‐
74               fault is 60 seconds.
75
76       -padding number
77               This option specifies the width in pixels of  the  padding  be‐
78               tween the window border and clock text or picture.  The default
79               is 10 on a digital clock and 8 on an analog clock.
80
81       -render This option tells xclock to use the Xrender extension  to  draw
82               an  anti-aliased  face.  This is the default if xclock has been
83               compiled with Xrender support.  Note that the  color  selection
84               options  and  resources  used  when Xrender is in effect differ
85               from the standard options.
86
87       -norender
88               This option turns off the use of Xrender to draw the clock.
89
90       -sharp  This option tells xclock to use sharper edges when drawn  using
91               the Xrender extension.
92
93       -face pattern
94               This  option specifies the font to use in digital mode when the
95               Xrender extension is used.  Patterns are  specified  using  the
96               fontconfig  face  format described in the Font Names section of
97               fonts.conf(5).
98

X DEFAULTS

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

WIDGETS

204       In  order  to  specify resources, it is useful to know the hierarchy of
205       the widgets which compose xclock.  In the notation  below,  indentation
206       indicates  hierarchical  structure.   The  widget  class  name is given
207       first, followed by the widget instance name.
208
209       XClock  xclock
210               Clock  clock
211
212

ENVIRONMENT

214       DISPLAY to get the default host and display number.
215
216       XENVIRONMENT
217               to get the name of a resource file that  overrides  the  global
218               resources stored in the RESOURCE_MANAGER property.
219

FILES

221       /usr/share/X11/app-defaults/XClock
222              specifies required resources
223

SEE ALSO

225       X(7), xrdb(1), time(3), fonts.conf (5).
226

BUGS

228       Xclock believes the system clock.
229
230       When in digital mode, the string should be centered automatically.
231

AUTHORS

233       Tony Della Fera (MIT-Athena, DEC)
234       Dave Mankins (MIT-Athena, BBN)
235       Ed Moy (UC Berkeley)
236
237
238
239
240X Version 11                     xclock 1.1.1                        XCLOCK(1)
Impressum