From owner-freebsd-questions@FreeBSD.ORG Sun Aug 22 08:26:04 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 7B0FD106566B for ; Sun, 22 Aug 2010 08:26:04 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3A67E8FC14 for ; Sun, 22 Aug 2010 08:26:04 +0000 (UTC) Received: from r55.edvax.de (port-92-195-116-86.dynamic.qsc.de [92.195.116.86]) by mx02.qsc.de (Postfix) with ESMTP id 4258B1E3E2; Sun, 22 Aug 2010 10:26:03 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o7M8Q24W001711; Sun, 22 Aug 2010 10:26:02 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 22 Aug 2010 10:26:02 +0200 From: Polytropon To: "C. P. Ghost" Message-Id: <20100822102602.485640ea.freebsd@edvax.de> In-Reply-To: References: <20100821055224.ec9f0d12.freebsd@edvax.de> <20100821231930.GB52873@thought.org> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: 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 Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2010 08:26:04 -0000 On Sun, 22 Aug 2010 02:51:52 +0200, "C. P. Ghost" 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. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...