Date: Sun, 22 Aug 2010 02:51:52 +0200 From: "C. P. Ghost" <cpghost@cordula.ws> To: Gary Kline <kline@thought.org> Cc: Polytropon <freebsd@edvax.de>, FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Customizable wall clock for several time zones Message-ID: <AANLkTim0k3UJ4kZ7KaVp5Qpn4YprZ4O7JVTcLt9aGADJ@mail.gmail.com> In-Reply-To: <20100821231930.GB52873@thought.org> References: <20100821055224.ec9f0d12.freebsd@edvax.de> <20100821231930.GB52873@thought.org>
index | next in thread | previous in thread | raw e-mail
On Sun, Aug 22, 2010 at 1:19 AM, Gary Kline <kline@thought.org> wrote:
> On Sat, Aug 21, 2010 at 05:52:24AM +0200, Polytropon wrote:
>> I'm searching for a round-clock style clock application for X,
>> and I would prefer a standalone program (not integrated with
>> KDE, Gnome, or else). It should be possible to define several
>> timezones and attach a label to each clock (which doesn't have
>> to contain the name of the time zone, but an arbitrary string).
>>
>> It should look something like this:
>>
>> []========= The clock =========X
>> | ____ ____ ____ |
>> | / | \ / \ \ / /\ |
>> | | +- | | -+ | | + | |
>> | \____/ \____/ \__|_/ |
>> | BLAH MEOW DOGFOOD! |
>> +------------------------------+
>>
>> Just as bankers and dynamical long-legged success-oriented
>> group-dependent program managers use them. :-)
>>
>> In the ports, I found intclock, but it doesn't have round clocks,
>> and additionally, it allows to add UTC, and it is shown, but upon
>> program restart, it complains that "Timezone UTC not defined.".
>>
>> There is no need for a GUI configuration tool if the use of a
>> configuration file is documented, and then just contains the
>> TZ name and the label per clock, as simple as possible.
>>
>> Does such a program already exist?
>
>
> how about using multiple instantiations of xclock? i used to have a
> script with TZ= zulu, TZ=moscow, TZ=tokyo.
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)
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.
-cpghost.
--
Cordula's Web. http://www.cordula.ws/
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim0k3UJ4kZ7KaVp5Qpn4YprZ4O7JVTcLt9aGADJ>
