XCLOCK(1)
โจ XCLOCK(1) โจ
okay bestie, let me put you on to xclock โ the iconic little analog/digital clock for X, from the General Commands Manual. she's been serving time (literally) since forever and she's still that girl ๐ฐ๏ธ๐
๐ธ SYNOPSIS ๐ธ
xclock [ -help ] [ -analog | -digital ] [ -brief ] [ -chime ] [ -hd color ] [ -hl color ] [ -update seconds ] [ -strftime format ] [ -twelve | -twentyfour | -utime ] [ -padding number ] [ -norender ] [ -render ] [ -sharp ] [ -face pattern ]
๐ DESCRIPTION ๐
The xclock program displays the time in analog or digital form. The time is continuously updated at a frequency which may be specified by the user. no cap, she just vibes on your screen keeping you on schedule โจ
๐ OPTIONS ๐
xclock accepts all of the standard X Toolkit command line options along with the additional options listed below โ it's giving versatile icon behavior ๐
-helpโ this one says "print a brief summary of the allowed options on the standard error." super chill, she's just reminding you what's what ๐-analogโ use a conventional 12 hour clock face with tick marks and hands. this is the default bestie! the classic, the icon, the moment ๐๐-digitalor-dโ use a 24 hour digital clock instead. for the girls who like their numbers plain and clear ๐ข-briefโ tells the digital clock to only display the hours and minutes fields. because sometimes you don't need the whole lore, just the main character energy ๐ the default is to show the full time and date information.-utimeโ this one makes the digital clock display seconds since the Epoch, in format'970012340 seconds since Epoch'instead of a standard 24-hour time. lowkey unhinged but we respect the commitment to Unix time ๐ฐ๏ธ๐-strftime formatโ lets you specify anstrftime(3)format string for the digital clock's display. customize her, make her yours โจ-twelveโ digital clock should display the time in twelve hour format. only effective for the brief display (iykyk) ๐-twentyfourโ digital clock should display the time in twenty-four hour format. only effective for the brief display. this is the default when a digital clock is used. she's organized like that ๐-chimeโ the clock should chime once on the half hour and twice on the hour. she's got a whole personality with that bell ๐โจ-hands color(or-hd color) โ specifies the color of the hands on an analog clock. default is black. note: this option is effectively ignored when Xrender is in use. ๐๏ธ๐ค-highlight color(or-hl color) โ specifies the color of the edges of the hands on an analog clock, and is only useful on color displays. default is black. also effectively ignored when Xrender is in use. โจ-update secondsโ specifies the frequency in seconds at whichxclockshould update its display. if the clock is obscured and then exposed, it will be updated immediately. a value of 30 seconds or less will enable a second hand on an analog clock. default is 60 seconds. โฑ๏ธ-padding numberโ specifies the width in pixels of the padding between the window border and clock text or picture. default is 10 on a digital clock and 8 on an analog clock. ๐-renderโ tellsxclockto use the Xrender extension to draw an anti-aliased face. this is the default ifxclockhas been compiled with Xrender support. note that the color selection options and resources used when Xrender is in effect differ from the standard options ๐จโจ-norenderโ turns off the use of Xrender to draw the clock. simplistic era ๐-sharpโ tellsxclockto use sharper edges when drawn using the Xrender extension. crisp edges, crisp vibes ๐ชโจ-face patternโ specifies the font to use in digital mode when the Xrender extension is used. patterns are specified using the fontconfig face format described in the Font Names section offonts.conf(5). font queen energy ๐๐ค
๐ฆ X DEFAULTS ๐ฆ
This program uses the Clock widget. it understands all of the core resource names and classes as well as the following, bestie:
width(classWidth) โ specifies the width of the clock. default for analog clocks is 164 pixels; the default for digital clocks is whatever is needed to hold the clock when displayed in the chosen font. ๐height(classHeight) โ specifies the height of the clock. default for analog clocks is 164 pixels; the default for digital clocks is whatever is needed to hold the clock when displayed in the chosen font. ๐update(classInterval) โ specifies the frequency in seconds at which the time should be redisplayed. ๐foreground(classForeground) โ specifies the color for the tick marks. default depends on whetherreverseVideois specified. ifreverseVideois specified the default islwhite, otherwise the default isblack. ๐จhands(classForeground) โ specifies the color of the insides of the clock's hands. default depends onreverseVideo. ifreverseVideois specified the default islwhite, otherwise the default isblack. note: this resource is not used when Xrender is in effect. ๐๏ธhighlight(classForeground) โ specifies the color used to highlight the clock's hands. default depends on whetherreverseVideois specified. ifreverseVideois specified the default islwhite, otherwise the default isblack. note: this resource is not used when Xrender is in effect. โจanalog(classBoolean) โ specifies whether or not an analog clock should be used instead of a digital one. default isTrue. ๐twentyfour(classBoolean) โ specifies whether or not a digital clock should display the time in twenty-four hour format. default isTrue. ๐chime(classBoolean) โ specifies whether or not a bell should be rung on the hour and half hour. ๐padding(classMargin) โ specifies the amount of internal padding in pixels to be used. default is 8. ๐font(classFont) โ specifies the font to be used for the digital clock. note that variable width fonts currently will not always display correctly. this font is only used when Xrender is not in effect. ๐คrender(classBoolean) โ specifies whether or not the Xrender extension should be used for the display. default isTrueifxclockhas been compiled with Xrender support. โจ
When Xrender is in effect, the following additional resources are understood:
face(classFaceName) โ specify the pattern for the font to be used for the digital clock when Xrender is used. patterns are specified using the fontconfig face format described in the Font Names section offonts.conf(5). ๐sharp(classBoolean) โ specifies if sharp edges should be used when rendering the clock. default isFalse. ๐ชbuffer(classBoolean) โ specifies that the updates of the image are drawn to a pixmap before copied into the window instead of drawing them into the window directly. ๐ผ๏ธ
The defaults of the following color resources depend on whether reverseVideo is specified. if reverseVideo is specified the default is lwhite, otherwise the default is black. let's go through them, bestie:
hourColor(classForeground) โ the color of the hour hand. ๐minuteColor(classForeground) โ the color of the minute hand. ๐secondColor(classForeground) โ the color of the second hand. ๐majorColor(classForeground) โ the color of the major scale ticks (i.e. each five minutes). ๐ฏminorColor(classForeground) โ the color of the minor scale ticks (between major ticks). โจ
๐ง WIDGETS ๐ง
In order to specify resources, it is useful to know the hierarchy of the widgets which compose xclock. In the notation below, indentation indicates hierarchical structure. The widget class name is given first, followed by the widget instance name. it's giving organized queen energy ๐
XClock xclock
Clock clock
๐ ENVIRONMENT ๐
DISPLAYโ to get the default host and display number. ๐XENVIRONMENTโ to get the name of a resource file that overrides the global resources stored in theRESOURCE_MANAGERproperty. ๐
๐ FILES ๐
/usr/share/X11/app-defaults/XClockโ specifies required resources. ๐
๐ธ SEE ALSO ๐ธ
X(7), xrdb(1), time(3), fonts.conf(5).
๐ BUGS ๐
xclockbelieves the system clock. she's trusting like that, no cap ๐ญ- When in digital mode, the string should be centered automatically. (it's a whole thing, bestie) ๐
๐ AUTHORS ๐
- Tony Della Fera (MIT-Athena, DEC)
- Dave Mankins (MIT-Athena, BBN)
- Ed Moy (UC Berkeley)
the legends themselves, we stan ๐ซถโจ
๐ this was served to you by X Version 11 and xclock 1.1.1 โ she's iconic, she's timeless, and she's literally just trying to tell you what time it is, bestie. periodt. ๐ฐ๏ธ๐๐ X Version 11 ยท xclock 1.1.1 ยท General Commands Manual ยท XCLOCK(1) ๐
๐ฆ where this page comes from
- alpine 3.24: xclock-doc 1.1.1-r0 ยท MIT
- epel 9: xclock 1.1.1-2.el9 ยท MIT
- fedora 43: xclock 1.1.1-11.fc43 ยท MIT-open-group AND SMLNJ AND MIT
- fedora 43: xclock 1.1.1-8.fc42 ยท MIT-open-group AND SMLNJ AND MIT
- fedora 44: xclock 1.1.1-11.fc44 ยท MIT-open-group AND SMLNJ AND MIT
- opensuse-leap 16.0: xclock 1.1.1-bp160.1.12 ยท X11
- opensuse-leap 16.0: xclock 1.1.1-bp160.1.12 ยท X11
- opensuse-leap 16.0: xclock 1.1.1-bp160.1.12 ยท X11
- opensuse-leap 16.0: xclock 1.1.1-bp160.1.12 ยท X11
- Copyright 1988, 1994, 1998 The Open Group
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms