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 ๐Ÿ•๐Ÿ‘‘
  • -digital or -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 an strftime(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 which xclock should 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 โ€” tells xclock to use the Xrender extension to draw an anti-aliased face. this is the default if xclock has 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 โ€” tells xclock to 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 of fonts.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 (class Width) โ€” 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 (class Height) โ€” 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 (class Interval) โ€” specifies the frequency in seconds at which the time should be redisplayed. ๐Ÿ”„
  • foreground (class Foreground) โ€” specifies the color for the tick marks. default depends on whether reverseVideo is specified. if reverseVideo is specified the default is lwhite, otherwise the default is black. ๐ŸŽจ
  • hands (class Foreground) โ€” specifies the color of the insides of the clock's hands. default depends on reverseVideo. if reverseVideo is specified the default is lwhite, otherwise the default is black. note: this resource is not used when Xrender is in effect. ๐Ÿ–๏ธ
  • highlight (class Foreground) โ€” specifies the color used to highlight the clock's hands. default depends on whether reverseVideo is specified. if reverseVideo is specified the default is lwhite, otherwise the default is black. note: this resource is not used when Xrender is in effect. โœจ
  • analog (class Boolean) โ€” specifies whether or not an analog clock should be used instead of a digital one. default is True. ๐Ÿ•
  • twentyfour (class Boolean) โ€” specifies whether or not a digital clock should display the time in twenty-four hour format. default is True. ๐Ÿ•›
  • chime (class Boolean) โ€” specifies whether or not a bell should be rung on the hour and half hour. ๐Ÿ””
  • padding (class Margin) โ€” specifies the amount of internal padding in pixels to be used. default is 8. ๐ŸŽ€
  • font (class Font) โ€” 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 (class Boolean) โ€” specifies whether or not the Xrender extension should be used for the display. default is True if xclock has been compiled with Xrender support. โœจ

When Xrender is in effect, the following additional resources are understood:

  • face (class FaceName) โ€” 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 of fonts.conf(5). ๐Ÿ‘‘
  • sharp (class Boolean) โ€” specifies if sharp edges should be used when rendering the clock. default is False. ๐Ÿ”ช
  • buffer (class Boolean) โ€” 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 (class Foreground) โ€” the color of the hour hand. ๐Ÿ•
  • minuteColor (class Foreground) โ€” the color of the minute hand. ๐Ÿ•‘
  • secondColor (class Foreground) โ€” the color of the second hand. ๐Ÿ•’
  • majorColor (class Foreground) โ€” the color of the major scale ticks (i.e. each five minutes). ๐ŸŽฏ
  • minorColor (class Foreground) โ€” 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 the RESOURCE_MANAGER property. ๐Ÿ“

๐Ÿ“ FILES ๐Ÿ“

  • /usr/share/X11/app-defaults/XClock โ€” specifies required resources. ๐Ÿ“‚

๐ŸŒธ SEE ALSO ๐ŸŒธ

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


๐Ÿ™ˆ BUGS ๐Ÿ™ˆ

  • xclock believes 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