I'm not sure if there's an easy way to do this.
You could write a little script that checks if the user has been idle for a 
certain amount of time, if so run your program. Then have cron run this program 
every minute or something?

I think "who -Hu" will list all logged in users and how long they've been idle 
for.
I'm not sure if this is the right type of idle though, and as I have only the 
one user I can't test it because to run the command I'm never idle.

Hope that helps a little,
Joe
Sent via BlackBerry® from Orange

-----Original Message-----
From: Bill Baker <[email protected]>
Sender: [email protected]
Date: Tue, 08 May 2012 21:14:33 
To: UK Ubuntu Talk<[email protected]>
Reply-To: [email protected], UK Ubuntu Talk <[email protected]>
Subject: [ubuntu-uk] Cron task?

I'm using Feh [a cli image viewer] trying to replicate the old "Pictures
Folder" screen saver. By using "feh -rzZFYD7 /home/[me]/Pictures"
I obtain 99% of the functionality [including directory recursion - 
but have to fire it manually.
Is there anyway to set a cron job to start it automatically after x
amount of time of idle kbd/mouse.

All I want is to go get a cup of coffee and get back to find the
machine displaying random samples of my photos.... why so hard :(

-- 
Regards,
Bill B. [SuperEngineer]

------------------------------
-Registered Linux User 523667-
-Registered Ubuntu User 32366-
-----Free  as in Freedom------



-- 
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
-- 
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

Reply via email to