From: Willie Wong <wwong@princeton.edu>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Run script when X is idle for some time?
Date: Wed, 18 Oct 2006 15:30:08 -0400 [thread overview]
Message-ID: <20061018193008.GB15031@math.princeton.edu> (raw)
In-Reply-To: <b64ef0ce0610181132w3ebddcc5q58b3fa0a9692b019@mail.gmail.com>
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
next prev parent reply other threads:[~2006-10-18 19:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2006-10-20 11:58 ` Robert Svoboda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061018193008.GB15031@math.princeton.edu \
--to=wwong@princeton.edu \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox