DCLOCK(1)
π dclock(1) β General Commands Manual π
okay so this is the page for dclock from the General Commands Manual, and bestie, it's a whole vibe β let's get into it π
β¨ NAME β¨
dclock β digital clock for X πΈ
β¨ SYNOPSIS β¨
dclock [-toolkitoption ...] [-option ...]
β¨ DESCRIPTION β¨
So like, the dclock program displays the time in digital format only. No hands, no ticking face, just digits, iconic behavior π. The time gets updated either on a per-second basis or on a per-minute basis, depending on what you want.
And here's the thing: this program is literally nothing more than a wrapper around the dclock widget, and it's not associated with any particular widget set. That's it. That's the whole program. Simple, chic, slay π .
When the clock is running, you can change attributes by just typing β no menus, no mouse required, just keys, we love a keyboard moment:
rβ Toggles Reverse Video.sβ Toggles the seconds display.bβ Toggles the bell attribute.jβ Toggles the jump/scroll attribute.fβ Toggles the fade attribute.dβ Toggles the date format.uβ Toggles the location of date (top/bottom).mβ Toggles the military time format.aβ Toggles the alarm clock.tβ Toggles the tails attribute.:β Toggles the blinking colon./β Increases the tilt of the numbers.\β Decreases the tilt of the numbers.+β Increases the thickness of the numbers.-β Decreases the thickness of the numbers.>β Increases the spacing between numbers.<β Decreases the spacing between numbers.qβ quits the program.
mouse girlies, this part is for you π±οΈβ¨ The third mouse button puts the clock in the mode where the alarm clock can be set. And listen β the alarm must be set in 24-hour format to distinguish between am and pm time. No 12-hour chaos allowed, periodt.
Digits can be changed by selecting the digit with the left or middle mouse button. The Left button advances the time, while the Middle button moves the time backwards. And if you use the left or middle button over the text at the bottom of the clock, that toggles the alarm from actually being set (or, you can just use the a key instead, lowkey easier).
β¨ OPTIONS β¨
Dclock accepts all of the standard X Toolkit command line options along with the additional options listed below, and yes, we're going through every single one, no skipping π«Ά:
-helpβ This option indicates that a brief summary of the allowed options should be printed on the standard error.-bell,-nobellβ This option, if enabled, indicates that the bell will beep once on the half hour and twice on the hour. notification sound but make it punctual π-bellFile filenameβ This specifies a sound file to use to play the dclock hourly chime. If unspecified, or the string"NULL"is used, the system beep is used instead. The sound file format must be understood by the executable specified by optionaudioPlay. The"NULL"value is a means to override a system-level setting to disable external sound playing.-miltime,-nomiltimeβ This option, if enabled, causes the clock to display the time in 24 hour (military) time format.-utc,-noutcβ This option causes the clock to display the UTC (GMT) time rather than the default local time. π-tails,-notailsβ This option places [or removes]"tails"on the digits 6 and 9. (iykyk, it's a whole typography thing)-scroll,-noscrollβ When the time changes, the digits scroll from the previous digit to the next digit. The-noscrolloption turns the behavior off.-blink,-noblinkβ The colon separating hours from minutes blinks on and off once per second. With the-noblinkoption, it remains on permanently.-persist,-nopersistβ This option determines whether or not the clock display remains in the reverse video state after the alarm goes off.-fade,-nofadeβ This option, when enabled, causes the display to fade from one digit to the next instead of jumping or scrolling. If fade is specified, the scroll attribute will be automatically disabled. the way that fade just takes overβ¦ obsessed β¨-fadeRate nβ The fadeRate attribute takes an integer value which specifies the number of milliseconds to wait between iterations when fading from one digit to the next. A larger value will make the fade slower and more pronounced. The default is50.-audioPlay filenameβ Specifies an executable to use to play audio files for the bell and alarm. The default is none, which falls back to using the system bell for both the dclock bell and alarm.-date "format"β The date is printed under the time in the specified font. The string displayed is in the"format"argument. The format corresponds to the system callstrftime()(seestrftime(3)).
dclock -date "Today is %A"
Useful examples of strftime() formatting:
%Aβ Full weekday name%aβ Three-char weekday name (Sun,Mon,Tue...)%Bβ Full month name%bβ Three-char month name (Jan,Feb,Mar...)%dβ The date (numerical day number of the month)%Yβ Full year (4 digits)%yβ 2-digit year number
-dateupβ By default, the date string is at the bottom of the display. This option starts it at the top, instead. flip it, reverse it, top-tier placement π-alarm,-noalarmβ The alarm is turned on or off. Alarm rings bell and toggles reverse video.-alarmTime HH:MMβ If alarm is set, it goes off at time specified in 24-hour format. β°-alarmFile filenameβ This specifies a sound file to use to play the dclock alarm. If unspecified, or the string"NULL"is used, the system beep is used instead. The sound file format must be understood by the executable specified by optionaudioPlay. The"NULL"string is a means to override a system-level setting to disable external sound playing.-secondsβ This option will update the clock every second and display the time including the seconds.-slope valueβ Sets the angle of the digits according to the (floating-point) slope value value.-thickness width_factorβ Sets the segment thickness as a (floating-point) ratio to digit width.-spacing space_factorβ Sets the digit spacing as a (floating-point) ratio to digit width.-smallsize space_factorβ Sets the seconds digit size as a (floating-point) ratio to the digit size of the minutes and hours digits.-second_gap space_factorβ Sets the spacing of the seconds digits from the other digits as a (floating-point) ratio to digit width.-bg colorβ This option specifies the color to use for the background of the window. The default isdarkslategray.-bd colorβ This option specifies the color to use for the border of the window. The default isblack.-bw numberβ This option specifies the width in pixels of the border surrounding the window.-fg colorβ This option specifies the color to use for displaying text and digit segments. The default ischartreuse. π-led_off colorβ This option specifies the color to use for displaying digit segments when turned off. The default isdarkgreen.-fn fontβ This option specifies the font to be used for displaying normal text. The default isFixed.-geometry geometryβ This option specifies the preferred size and position of the clock window.-display host:displayβ This option specifies the X server to contact.-xrm resourcestringβ This option specifies a resource string to be used. This is especially useful for setting resources that do not have separate command line options. secret menu energy π
π X DEFAULTS π
okay so bestie, dclock gets the whole X resource system β it speaks every core resource name and class, and then it's got its own lil extended menu on top. here's the tea:
geometry(classGeometry) β sets the width and height, and if you wanna get fancy, the preferred position of the clock too. β¨foreground(classForeground) β the color for the digits. and if you set the class instead? it recolors literally everything that would normally be drawn in the foreground color. default is`chartreuse`π (iconic choice, no notes).background(classBackground) β the background color, and by default it's`DarkSlateGray`.led_off(classForeground) β the color of the digit segments when they're "off". you can set it to match the background, or you can set it to something just a teensy bit different from the background β matching the segment colors β so you get just a lil hint of color peeking through. default`DarkGreen`plays so nicely with the default segment color of`chartreuse`. match made in heaven fr fr π«Άbell(classBoolean) β whether a bell gets rung on the hour and the half hour. πfont(classFont) β the font used for the date.militaryTime(classBoolean) β whether to use military (24hr) time format.utcTime(classBoolean) β whether to use UTC (GMT) time instead of local time.reverseVideo(classReverseVideo) β flips the foreground and background colors. πscroll(classBoolean) β whether the digits should scroll or not.fade(classBoolean) β whether the digits should fade or not.fadeRate(classTime) β how many milliseconds of delay sit between each iteration of fading.seconds(classBoolean) β whether the seconds get displayed or not.tails(classBoolean) β whether tails get put on the digits6and9. πdate(classString) β the date format to use. this format corresponds to the system callstrftime()(peepstrftime(3)).dateUp(classBoolean) β whether the date shows up at the top or at the bottom.blink(classBoolean) β whether the colon separating hours from minutes blinks on and off once per second, or just stays on permanently. β¨alarm(classBoolean) β whether the alarm should go off at the specified time (alarmTime).alarmTime(classString) β the time the alarm goes off, ifalarmis set. β°alarmPersist(classBoolean) β whether the alarm stays in reverse video after it goes off, or goes back to normal video.angle(classFloat) β defines the slope of the digits (default6).smallRatio(classFloat) β defines the size of the seconds digits compared to the minutes digits (default2/3).secondGap(classFloat) β defines how much space sits between the minutes digits and the seconds digits (default0.3).widthFactor(classFloat) β determines the width of segments as a ratio to digit width (default0.13).spaceFactor(classFloat) β determines the spacing between digits as a ratio to digit width (default0.09).bellFile(classString) β an audio file to play for the hourly bell (no default). πalarmFile(classString) β an audio file to play for the alarm (no default). β°audioPlay(classString) β an executable used to play the bell and alarm audio files, if they're specified. otherwise, the system bell is used. default is`/usr/bin/play`.
π ENVIRONMENT π
DISPLAYβ used to get the default host and display number. π₯οΈXENVIRONMENTβ used to get the name of a resource file that overrides the global resources stored in theRESOURCE_MANAGERproperty.
π SEE ALSO π
π BUGS π
Dclock believes the system clock. (trusting, bestie. too trusting.)
Scrolling from9to10O'Clock seems weird, but chances are you won't notice it.
Scrolling can take so long that dclock may lag behind system time by a fraction of a second and eventually skip a second to catch up. In modern times, it should be dealing with this by tracking seconds with a separate thread. π
π COPYRIGHT π
Copyright (c) 1988, Dan Heller. Revisions copyright (c) 1993 and 1999, Tim Edwards.
π AUTHOR π
- Original
dclockby Dan Heller (1988) <argv@sun.com> or <dheller@cory.berkeley.edu> - Fade & tails by Steve Reinhardt, <steven@fts.webo.dg.com>
- Derived geometry by Tim Edwards (1993) <tim@stravinsky.jhuapl.edu>
- Antialiasing, color fades, and audio play by Tim Edwards (1999) <tim@stravinsky.jhuapl.edu>
- Manual page in POD format by Ricardo Mones (2023) <mones@debian.org>
aaaand that's the whole page bestie!! π¦ this one's from X Version 11, dated 1 March 1988, and it's DCLOCK(1) β the manual page that's been serving clock looks since before either of us existed, periodt. go forth and make your desktop clock gorgeous π
β¨
π¦ where this page comes from
- debian trixie: dclock 2.2.2-15 Β· GPL-2.0-or-later
- ubuntu questing: dclock 2.2.2-16
- ubuntu resolute: dclock 2.2.2-16build1 Β· GPL-2.0-or-later
- ubuntu stonking: dclock 2.2.2-16build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms