From owner-freebsd-questions@FreeBSD.ORG Sun Aug 22 00:51:54 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84A5810656A8 for ; Sun, 22 Aug 2010 00:51:54 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4952B8FC1B for ; Sun, 22 Aug 2010 00:51:54 +0000 (UTC) Received: by qwg5 with SMTP id 5so4685170qwg.13 for ; Sat, 21 Aug 2010 17:51:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.188.149 with SMTP id da21mr2422810qcb.84.1282438313337; Sat, 21 Aug 2010 17:51:53 -0700 (PDT) Received: by 10.229.95.145 with HTTP; Sat, 21 Aug 2010 17:51:52 -0700 (PDT) X-Originating-IP: [93.203.48.179] In-Reply-To: <20100821231930.GB52873@thought.org> References: <20100821055224.ec9f0d12.freebsd@edvax.de> <20100821231930.GB52873@thought.org> Date: Sun, 22 Aug 2010 02:51:52 +0200 Message-ID: From: "C. P. Ghost" To: Gary Kline Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Polytropon , FreeBSD Questions Subject: Re: Customizable wall clock for several time zones X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2010 00:51:54 -0000 On Sun, Aug 22, 2010 at 1:19 AM, Gary Kline 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 =A0= i 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: #!/bin/sh # display multiple xclock(1)s side by side for TIMEZONE in ZONE1 ZONE2 ZONE3 ... do env TZ=3D$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=3D$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. --=20 Cordula's Web. http://www.cordula.ws/