From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20394 invoked from network); 16 Dec 1998 15:45:34 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 16 Dec 1998 15:45:34 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id KAA11215; Wed, 16 Dec 1998 10:43:14 -0500 (EST) Resent-Date: Wed, 16 Dec 1998 10:43:04 -0500 (EST) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="l2MCXKLpc4" Content-Transfer-Encoding: 7bit Message-ID: <13943.54473.60659.146669@hpfcapw.fc.hp.com> Date: Wed, 16 Dec 1998 08:42:01 -0700 (MST) From: apw@fc.hp.com (Anthony Whitehouse) To: zsh-users@math.gatech.edu Subject: Re: Tracking idletimes Newsgroups: lists.projects.zsh In-Reply-To: References: <19981215235912.25281@athenaeum.demon.co.uk> X-Mailer: VM 6.62 under 20.4 "Emerald" XEmacs Lucid Resent-Message-ID: <"c_jIO.0.pk2.7KzTs"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1993 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu --l2MCXKLpc4 Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit What I do is have a program running which tells me to get up and stretch every 60 minutes. The trick is that it uses an Xdialog box with an ok button. The thirty minutes starts after ok is pressed. When I get in to work or whatever, I press ok, and my 60 minutes starts over. I know you're looking for something more complex, but this is simple, and works for me. --l2MCXKLpc4 Content-Type: text/plain Content-Disposition: inline; filename="xreminder" Content-Transfer-Encoding: 7bit #!/bin/perl $filename = '$HOME/eye_reminder'; $sleeptime = 60*60; # 60 minutes sleeptime $bitmap = '$HOME/public_html/eye.xbm'; while(1){ $pid = fork; if($pid == 0){ # if child exec("/usr/bin/X11/xdialog -geometry +450+400 -p $bitmap -f $filename -fg red -bg lightgrey") # start the dialog box } else { # if parent wait; # wait for the dialog box to finish sleep($sleeptime); } } --l2MCXKLpc4 Content-Type: text/plain; charset=us-ascii Content-Description: message body and .signature Content-Transfer-Encoding: 7bit Anthony -- Anthony P. Whitehouse These opinions do not necessarily represent those of my employer Mailto:Anthony_Whitehouse@hp.com --or-- Mailto:A.Whitehouse@computer.org --l2MCXKLpc4--