Customizable wall clock for several time zones

Polytropon freebsd at
Sun Aug 22 08:26:04 UTC 2010

On Sun, 22 Aug 2010 02:51:52 +0200, "C. P. Ghost" <cpghost at> wrote:
> Yes, you can do that and it works like a charm:
>   #!/bin/sh
>   # display multiple xclock(1)s side by side
>   for TIMEZONE in ZONE1 ZONE2 ZONE3 ...
>   do
>       env TZ=$TIMEZONE xclock
>   done
> (replace ZONE1, ZONE2, ZONE3 with real time zones
> from /usr/share/zoneinfo)

I already thought about that solution, and using -title should
be possible (as it is with oclock) to "simulate" a caption for
that clock.

Basically, intclock is quite fine, but I prefer round clocks,
all controllable as ONE window; I already thought about merging
intclock with xclock (and looking at oclock), but going with
multiple xclocks will be fine, too.

> You could even set the xclock(s) nicely side by side by using
> the -geometry flag as in:
>   env TZ=$TIMEZONE xclock -geometry "${WIDTH}x${HEIGHT}+${XOFF}+${YOFF}"
> I suggest to keep WIDTH, HEIGHT and YOFF constant, and
> to increment XOFF by $WIDTH plus some small constant for
> every new timezone (use 'expr' to do arithmetic). This way,
> you get them all arrayed side by side.

Right, I've been playing with -geometry for many years now in
order to place certain little windows (without titlebar and all
the stuff) into the lower left corner of my display: xbiff,
xclock, xlogo, xload, xmbmon, and finally an xterm, so they are
nicely placed.

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list