XARCLOCK(1)
π XARCLOCK(1) π
okay bestie, come sit with me because this one is SO fun. we're talking about xarclock, a lil program from the X Version 11 era that is basically an extended xclock(1). it's giving clock but with β¨opinionsβ¨. it's an analog or digital clock, it can go forwards or backwards, and it comes with a whole glow-up over the original. let's get into it π
πΈ NAME πΈ
xarclock β the extended xclock(1), no cap. same energy, more features. π
β¨ SYNOPSIS β¨
xarclock [-roman] [-arabic] [-south] [-north] [-analog] [-digital]
[-chime] pixels] [-fg color] [-bg color] [-hd color] [-hl color] [-bd
color] [-fn fontname] [-help] [-padding pixels] [-rv] [-update seconds]
[-display displayname] [-geometry geom]
(yeah the -chime] pixels] bit is exactly how it's written, i'm not touching it, i don't make the rules π)
π¦ DESCRIPTION π¦
so xarclock displays the time, analog or digital, reverse or normal form. it keeps updating the time continuously, at a frequency that you get to pick. iconic, honestly.
it's based on the program xlock(1) that ships along with the X11 release, and honestly it's nothing more than a wrapper around the Athena Clock widget. a very cute wrapper though.
but here's the main character moment: this program is an extension of the standard X clock widget. the new features are:
- configurable direction of rotation π
- font support in analog mode π€
periodt. π
π OPTIONS π
Xarclock accepts all of the standard X Toolkit command line options along with these extra ones:
-romanβ says you want roman digits on your analog clock. very classic, very demure.-arabicβ says you want arabic digits on the analog clock. this is the default β¨-southβ picks the direction the clock turns: on the southern half of the earth, the 3 (early afternoon) is on the left side. this is the default π-northβ says the clock will behave likexclock(1). going back to the classics, respect.-analogβ indicates a conventional 12 hour clock face with tick marks and hands. this is the default π-digital(or-d) β indicates a 24 hour digital clock. numbers girlies rise π-chimeβ indicates the clock should chime once on the half hour and twice on the hour. π bestie it's going to be so loud-hd color(or-hands color) β the color of the hands on an analog clock. default isblack.-hl color(or-highlight color) β the color of the edges of the hands on an analog clock. this is only useful on color displays. default isblack.-fn fontnameβ sets the name of the used fonts on the analog clock to fontname. π-helpβ indicates a brief summary of the allowed options should be printed on the standard error.-padding pixelsβ the width in pixels of the padding between the window border and the clock text or picture. default is10on a digital clock and8on an analog clock.-update secondsβ the frequency in seconds at whichxclockshould update its display. if the clock is obscured and then exposed, it gets updated immediately. a value of less than 30 seconds will enable a second hand on an analog clock. default is60seconds.
π X DEFAULTS π
this program uses the Athena Clock widget, so it understands all of the core resource names and classes, plus these:
width(classWidth) β the width of the clock. default for analog clocks is164pixels; default for digital clocks is whatever is needed to hold the clock when displayed in the chosen font.height(classHeight) β the height of the clock. default for analog clocks is164pixels; default for digital clocks is whatever is needed to hold the clock when displayed in the chosen font.update(classInterval) β the frequency in seconds at which the time should be redisplayed.foreground(classForeground) β the color for the tic marks. the default depends on whetherreverseVideois specified: ifreverseVideois specified the default islwhite, otherwise the default isblack.hands(classForeground) β the color of the insides of the clock's hands. the default depends on whetherreverseVideois specified: ifreverseVideois specified the default islwhite, otherwise the default isblack.highlight(classForeground) β the color used to highlight the clock's hands. the default depends on whetherreverseVideois specified: ifreverseVideois specified the default islwhite, otherwise the default isblack.analog(classBoolean) β whether or not an analog clock should be used instead of a digital one. default isTrue.roman(classBoolean) β whether roman or arabic digits should be used on the analog clock. default isTrue.north(classBoolean) β whether or not reverse direction of rotation of hands of the analog clock should be used. default isFalse.chime(classBoolean) β whether or not a bell should be rung on the hour and half hour.padding(classMargin) β the amount of internal padding in pixels to be used. default is8.font(classFont) β the font to be used for the digital clock. β οΈ note that variable width fonts currently will not always display correctly.
π§ WIDGETS π§
so if you wanna specify resources, it lowkey helps to know the hierarchy of the widgets that compose xclock. in the notation below, indentation indicates hierarchical structure. the widget class name comes first, followed by the widget instance name. iykyk.
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/X11R6/lib/X11/app-defaults/XClockβ specifies required resources.
π COPYRIGHT π
original code is copyrighted by Digital Equipment Corporation and the Massachusetts Institute of Technology. the modifications made by Jaime Garcia-Ghirelli (jaime@inforamp.net) remain in the public domain.
this manual page is a mixture of recycled xclock(1) stuff and new stuff by Martin Schulze (Martin.Schulze@linux.de).
β SEE ALSO β
X(1), xclock(1), xrdb(1), time(3C), Athena Clock widget.
okay that's the whole thing bestie, you're officially a xarclock expert, go forth and rotate your clock the wrong way on purpose π
π°οΈ
this page came to you from X11, dated 29 May, 1996 β yeah it's vintage, and vintage is a vibe, no notes. mwah. π
π¦ where this page comes from
- debian bookworm: xarclock 1.0-19 Β· X/MIT AND MIT-variant
- debian trixie: xarclock 1.0-20 Β· X/MIT AND MIT-variant
- ubuntu jammy: xarclock 1.0-17 Β· X/MIT AND MIT-variant
- ubuntu noble: xarclock 1.0-19build2 Β· X/MIT AND MIT-variant
- ubuntu questing: xarclock 1.0-20
- ubuntu resolute: xarclock 1.0-22 Β· X/MIT AND MIT-variant
- ubuntu stonking: xarclock 1.0-22 Β· X/MIT AND MIT-variant
- Copyright (c) 1995 Martin Schulze <Martin.Schulze@Linux.DE>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms