[Back to TkGoodStuff] TkGoodStuff Clock

TkGoodStuff Clock

Description

The Clock client is an analog and digital alarm clock and date display. It can display any combination of an analog clock, the (digital) time, and the date. In combinations, you can choose a horizontal or a vertical orientation.

The alarm utility is used by selecting ALARM from the popup menu and following the simple instructions. When set, a little "A" appears in the top left corner of the analog clock frame, if you are using the analog clock; the color of the font changes if you are using only the digital clock. The alarm itself is a beep and a dialog box containing the message, if any, that you typed in when setting the alarm.

The clock stays somewhat accurate (as to when it posts the new minute) by checking every 60 seconds not only for the time but also for how far off its internal counter has gotten (because of any processing between counting seconds).

Clicking mouse button 3 will replace the digital time display with the date and vice versa (useful if you are displaying only one and want to see the other).

The Clock also serves as the standard clicking-point for the tkgoodstuff popup menu (hold down mouse button 1).

Invocation and Variables

To invoke the Clock, include in your ~/.tkgoodstuffrc:
Client Clock
To set the variable XXXX to the value YYYY, in your ~/.tkgoodstuffrc, include the line:
set XXXX YYYY
Here are the variables relating to Clock and their default values:

Variable Function Possible Values Default
ClockOrient Main direction in which to stack elements vertical/horizontal vertical
Clock_analog Display analog clock? 1/0 1
Clock_show What digital elements to display timeonly/dateonly/both/neither both
ClockForeground Color of font (standard) chartreuse1
ClockBackground Color of background (standard) #402540
ClockBigFont Font of time, or of date if Clock_show is dateonly (standard) Times Bold 24
ClockSmallFont Font of date if Clock_show is both, or if Clock_analog is 1 (standard) Times Bold 14
Alarm_nobeep No beep for the alarm? 1/0 0
Alarm_flagfont Font of the little "A" on the clock face (standard) Helvetica Bold 14
Alarm_Analogflagcolor Color of the little "A" (standard) $ClockForeground
Alarm_NoAnalogflagcolor Color of clock font when alarm active if not using analog clock (standard) cyan
Alarm_timefont Font of the alarm-time display in the alarm-setting window (standard) Lucida Typewriter Bold 14
Analog_minsize The analog clock will be no smaller than this many pixels in each direction---though it may grow to occupy the space made by the rest of the panel. (any integer) 30
Analog_expand_to_square Grow to fill the biggest available dimension, or stay within the space we're given? (Fiddle with this if the size of the clock is smaller or bigger than you wanted---there are two "natural" ways for the clock to infer its size from its neighbors.) 1/0 1
Analog_bezel Draw a ring around the clock? 1/0 1
Analog_hubcolor Color of center hub (standard) red
Analog_facecolor Color of clock face (standard) lightblue
Analog_minutecolor Color of minute hand (standard) black
Analog_hubcolor Color of center hub (standard) red
Analog_hourcolor Color of hour hand (standard) black
Analog_bezelcolor Color of ring around clock (standard) red
Analog_tickcolor Color of minor tick marks (standard) red
Analog_bigtickcolor Color of the four major tick marks (standard) black

Sep 14, 1995. Mark Crimmins markcrim@umich.edu

[Back to TkGoodStuff]