Date: Sun, 22 Aug 2010 02:55:26 +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: <AANLkTimesAs%2B=FtxiGupeehYZN2xg=1LuNEN4VdXDAz4@mail.gmail.com> In-Reply-To: <AANLkTim0k3UJ4kZ7KaVp5Qpn4YprZ4O7JVTcLt9aGADJ@mail.gmail.com> References: <20100821055224.ec9f0d12.freebsd@edvax.de> <20100821231930.GB52873@thought.org> <AANLkTim0k3UJ4kZ7KaVp5Qpn4YprZ4O7JVTcLt9aGADJ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 22, 2010 at 2:51 AM, C. P. Ghost <cpghost@cordula.ws> wrote: > 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: >>> >>> =A0 =A0 =A0 []=3D=3D=3D=3D=3D=3D=3D=3D=3D The clock =3D=3D=3D=3D=3D=3D= =3D=3D=3DX >>> =A0 =A0 =A0 | =A0 ____ =A0 =A0 =A0____ =A0 =A0 =A0____ =A0 | >>> =A0 =A0 =A0 | =A0/ =A0| \ =A0 =A0/ \ =A0\ =A0 =A0/ =A0 /\ =A0| >>> =A0 =A0 =A0 | | =A0 +- | =A0| =A0-+ =A0| =A0| =A0 + =A0| | >>> =A0 =A0 =A0 | =A0\____/ =A0 =A0\____/ =A0 =A0\__|_/ =A0| >>> =A0 =A0 =A0 | =A0 BLAH =A0 =A0 =A0MEOW =A0 =A0DOGFOOD! | >>> =A0 =A0 =A0 +------------------------------+ >>> >>> 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? >> >> >> =A0 =A0 =A0 =A0how about using multiple instantiations of xclock? =A0 = =A0i used to have a >> =A0 =A0 =A0 =A0script with TZ=3D zulu, TZ=3Dmoscow, TZ=3Dtokyo. > > Yes, you can do that and it works like a charm: > > =A0#!/bin/sh > =A0# display multiple xclock(1)s side by side > =A0for TIMEZONE in ZONE1 ZONE2 ZONE3 ... > =A0do > =A0 =A0 =A0env TZ=3D$TIMEZONE xclock Obviously, the trailing '&' is missing: env TZ=3D$TIMEZONE xclock & or you'd get only the first xclock > =A0done > > (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: > > =A0env TZ=3D$TIMEZONE xclock -geometry "${WIDTH}x${HEIGHT}+${XOFF}+${YOFF= }" Here too, don't forget the trailing '&' > 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. --=20 Cordula's Web. http://www.cordula.ws/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimesAs%2B=FtxiGupeehYZN2xg=1LuNEN4VdXDAz4>