> I have Gaim set to go autoaway after 2 minutes of inactivity, and my > xscreensaver to go on after 3 minutes (I just like it like that). > > I also have a camera and the motion package installed, so I trigger > an action like create a .jpg whenever anything moves in front of the > camera. > > I'd like to write a script so that whenever such a file is created, > the "xscreensaver inactivity" timer is reset, so that when I'm > sitting in my chair reading a web page not moving the mouse, Gaim > won't go autoaway nor will xscreensaver activate.
The following command resets the XScreensaver inactivity countdown (as if there has just been some user activity, e.g., moving the mouse): $ xscreensaver-command -deactivate Ideally, just stick this in the script that makes the JPEG files triggered by camera motion: $ xscreensaver-command -deactivate >/dev/null 2>&1 Or, put something that runs in cron every minute that checks the age of files in the JPEG directory and runs the above command if any of them are sufficiently new. Hope this helps, Lucas -- Lucas Bergman <[EMAIL PROTECTED]> Tired of getting duplicate copies of mailing list messages? I respect the 'mail-followup-to' header field: http://cr.yp.to/proto/replyto.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]