public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Run script when X is idle for some time?
@ 2006-10-18 18:32 Qiangning Hong
  2006-10-18 19:30 ` Willie Wong
  2006-10-20 11:58 ` Robert Svoboda
  0 siblings, 2 replies; 3+ messages in thread
From: Qiangning Hong @ 2006-10-18 18:32 UTC (permalink / raw
  To: gentoo-user

I'd like to run a script after X is idle for some time (e.g. 5
minute), just like what gaim do (it set my status to "away" if I
haven't touch anything for some time).  How can I do?  FYI, I have
some Shell/C/Python programming skill.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Run script when X is idle for some time?
  2006-10-18 18:32 [gentoo-user] Run script when X is idle for some time? Qiangning Hong
@ 2006-10-18 19:30 ` Willie Wong
  2006-10-20 11:58 ` Robert Svoboda
  1 sibling, 0 replies; 3+ messages in thread
From: Willie Wong @ 2006-10-18 19:30 UTC (permalink / raw
  To: gentoo-user

On Thu, Oct 19, 2006 at 02:32:35AM +0800, Qiangning Hong wrote:
> I'd like to run a script after X is idle for some time (e.g. 5
> minute), just like what gaim do (it set my status to "away" if I
> haven't touch anything for some time).  How can I do?  FYI, I have
> some Shell/C/Python programming skill.

I might be wrong, but I think Gaim uses the xscreensaver extension 
from libXScrnSaver. There is a PyXSS module which can extract 
information about Xscreensaver including idle time. 

If the idle time that you have is the same as your xscreensaver 
blanking time, then you can just use the 'xscreensaver-command -watch' 
command (look at man xscreensaver-command for more info). I use it 
with festival to have my computer greet me in the morning when I unlock
the screen. 

W
-- 
Willie W. Wong                                      wwong@math.princeton.edu
408 Fine Hall,  Department of Mathematics,  Princeton University,  Princeton
A mathematician's reputation rests on the number of bad proofs he has given.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Run script when X is idle for some time?
  2006-10-18 18:32 [gentoo-user] Run script when X is idle for some time? Qiangning Hong
  2006-10-18 19:30 ` Willie Wong
@ 2006-10-20 11:58 ` Robert Svoboda
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Svoboda @ 2006-10-20 11:58 UTC (permalink / raw
  To: gentoo-user

* Qiangning Hong <hongqn@gmail.com> [2006-10-19 20:07]:
> I'd like to run a script after X is idle for some time (e.g. 5
> minute), just like what gaim do (it set my status to "away" if I
> haven't touch anything for some time).  How can I do?  FYI, I have
> some Shell/C/Python programming skill.

It's been a long time I tried this, but I remember that there is
program called xautolock which can be used to do what you
want. Particularly its -notifier option.

HTH

-- 
Robert Svoboda
-- 
gentoo-user@gentoo.org mailing list



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

end of thread, other threads:[~2006-10-20 12:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-18 18:32 [gentoo-user] Run script when X is idle for some time? Qiangning Hong
2006-10-18 19:30 ` Willie Wong
2006-10-20 11:58 ` Robert Svoboda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox