xosd-clock: a minimalistic clock for X11

WARNING: This project is no longer maintained. See xstatbar for a maintained replacement.


xosd-clock is a simple, text-only clock for X11 that uses the XOSD library to render the current date/time onto the X11 root window. The format used is any format accepted by strftime(3).


Not many :-)
You can specify the format used to display the time (any string acceptable in strftime(3) will do) and how often to update the display. Additionally it supports basic positioning (x/y offsets and alignment), color/font specification, and shadowing.


Click here to see a simple screenshot (warning: the file is big... scaling it down distorts the clock).
Note that the clock is in the upper-right corner of the screen, in cyan.
That clock is generated by the following command in my .xinitrc file
      /usr/local/bin/xosd-clock -x -1 -y 0 -c cyan -s 1 -b black &
Shameless plug...
In this screenshot, you'll notice my xosd-systat program in the top-left of the screen and my xosd-battery program in the lower-right corner.


First, make sure you have the XOSD library installed on your system. Most operating systems have easily installable package for this.

Then download the file below and simply
  1. tar xvzf xosd-clock.tar.gz
  2. cd xosd-clock
  3. make install
Type make uninstall, or simply remove the program and man-page, which are by default installed as
See the man page here: xosd-clock(1).


Here: xosd-clock.tar.gz.
Copyright (c) 2004 Ryan Flannery <ryan.flannery@gmail.com>