Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there any way to monitor if a X session is inactive for i.e 10 minutes? And I would execute a command when it happens, like a screensaver, but it's not a screensaver in this case.

share|improve this question
add comment

1 Answer

For gnome-screensaver, check out this page. He has a python script which hooks up to the screensaver events to run commands.

Also xscreensaver has an option you can use in a script to react to screensaver events (look for -watch option)

Set the screensaver to do nothing on activation if you don't actually want the screensaver to kick in, and you're done.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.