X Windows Digital Clock

Copying xdgtclk

Introduction

The purpose of this digital clock is to tell time while minimizing resources and real estate on the screen. If the seconds toggle is turned off, the window icon is updated each minute. Otherwise, the window icon is updated each second. The window itself is updated each second.

The window icon fits conveniently in the corner of the desktop without being intrusive. The window icon responds to keyboard commands, when the mouse touches it. Likewise, the window itself responds to keyboard commands, when the mouse touches it. See below for more information on the keyboard commands.

How To Run

To start xdgtclk in X Windows, run the command:

      xdgtclk &

Toggle Seconds

Press s to toggle the seconds display.

Toggle Time

Press t to toggle the time mode.

The time modes are:

Reset Count

Press r to reset the time in relative time mode.

Termination

Press Escape or q to quit.

Daylight Saving Time

xdgtclk uses the TZ variable to determine if daylight saving time is in effect. See the man page for tzset.

Example of setting TZ:

      TZ=PST8PDT

In this example TZ is set for Pacific Time.

Display

xdgtclk shows the following display:

Window Icon

xdgtclk shows the following display when the window is minimized:

Performance

xdgtclk sleeps every second to conserve resources on your system.

Font Size

To change the font size, edit xdgtclk.mak. Change the value of the FONT compile variable.

You may also need to redefine the geometry of the screen in the source program xdgtclk.c.

The default font is the Debian font 6x12.