Idle Monitor is a FREE programs which will monitor your computer idle time based on the mouse movements. It can shutdown your computer if left attended for X minutes which you can specify.
Other than shutdown, Idle monitor can either run some specified program when your computer becomes idle.
You can set the idle time in minutes, and specify the program which you want to run if your computer is idle for x minutes.