Date: Sun, 22 Aug 2010 10:26:02 +0200 From: Polytropon <freebsd@edvax.de> To: "C. P. Ghost" <cpghost@cordula.ws> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Customizable wall clock for several time zones Message-ID: <20100822102602.485640ea.freebsd@edvax.de> 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, 22 Aug 2010 02:51:52 +0200, "C. P. Ghost" <cpghost@cordula.ws> 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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100822102602.485640ea.freebsd>