zsh-users
 help / color / mirror / code / Atom feed
* Tracking idletimes
@ 1998-12-15 23:27 Gossamer
  1998-12-15 23:59 ` Phil Pennock
  0 siblings, 1 reply; 8+ messages in thread
From: Gossamer @ 1998-12-15 23:27 UTC (permalink / raw)
  To: zsh-users

Not quite on-topic but I can't think where else to ask!

I want to put together a daemon to track idletime, the sort of thing
that tells you to get up and stretch every half hour of worktime.

Trouble is, there's no way I can figure out to track "Last keypress in
any virtual terminal" (I don't and can't use X) and finger is reporting
invalid idletimes :(.

If I run a shellscript that calls other programs, the idletime for
that VT gets reset every time the secondary program is activated.  It
also seems to like to report Mutt as un-idle even when it is.

Any ideas?


bekj


-- 
: --Hacker-Neophile-Eclectic-Geek-Grrl-Gay-Disabled-Boychick--
: gossamer@tertius.net.au  http://www.tertius.net.au/~gossamer/
: Linux hackers are funny people: They count the time in
: patchlevels.  -- Gerd Knorr


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Tracking idletimes
@ 1998-12-16 18:26 Juergen Sell
  1998-12-16 23:56 ` Gossamer
  0 siblings, 1 reply; 8+ messages in thread
From: Juergen Sell @ 1998-12-16 18:26 UTC (permalink / raw)
  To: zsh-users

Hi,
why not have preexec touch a file and have a cron job looking at its timestamp?
This would be based on you using your shell - maybe not a very bad guess  
considering you do not use X.
HTH, Juergen


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1998-12-17  0:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-15 23:27 Tracking idletimes Gossamer
1998-12-15 23:59 ` Phil Pennock
1998-12-16  5:01   ` Gossamer
1998-12-16  9:53     ` Bart Schaefer
1998-12-16 15:42     ` Anthony Whitehouse
1998-12-16 23:57       ` Gossamer
1998-12-16 18:26 Juergen Sell
1998-12-16 23:56 ` Gossamer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).