fdclock for pentium2

Eeri Kask Eeri.Kask at inf.tu-dresden.de
Sat Nov 24 03:57:09 PST 2007


fdclock, this very beautiful desktop clock, if run, unfortunately drowns
a pentium2 cpu into cairo computations, so here is a small patch
increasing the tick interval from 1/10 sec to 1 sec.  :-)
I put this patch here for anyone interested to try out, and on my hard
disk it could get lost easily.

Attached are


Put these somewhere and then to apply run this:


cvs -d :pserver:anoncvs at anoncvs.freedesktop.org:/cvs/xapps co fdclock

cd fdclock
patch -b < ../fdclock.c.diff
patch -b < ../fdhand.c.diff


cp fdclock ../fdclock.seconds
cd ..
rm -rf fdclock

./fdclock.seconds -sa -g '' -d ''  &


If xcompmgr is running in the background then try '-o' or '-t' as fun.


    Eeri Kask

P.S. Here are two 'hidden' features:  if geometry string is '\0' then a
fullscreen clock is created (quadratic and centered if -a given);  if
display string is '\0' then the fdclock window is "override redirected",
effectively bypassing the window manager (e.g. escaping twm reparenting).

P.P.S. In minute mode (without -s) the clock is now updated every 5
seconds;  i.e. the update may drift at worst from -3 sec to +3 sec (plus
the precision of usleep()) in respect to the exact minute given by
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdclock.c.diff
Type: text/x-patch
Size: 1660 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20071124/d67cf396/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdhand.c.diff
Type: text/x-patch
Size: 718 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20071124/d67cf396/attachment-0001.bin>

More information about the xorg mailing list