Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can do that with a script, here's mine. It reminds me every 15 minutes. It speaks it via speaker, then captures it and logs it and time.

   #/bin/bash
   while sleep 900; do
     DATE=`date`
     echo "Hello, what are you doing?" | espeak
     DOING=`zenity -entry --text="what are you doing?"`
     echo $DATE, $DOING >> ~/data/doing.txt
   done


Is it possible to add to this kind of script the monitoring of idle time ? With a reset when back from an idle time longer than the pause.


Yes, there are commands you can use to monitor keystrokes and mouse movement from command line and I'm sure you can use that to track the idle time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: