Sometimes I do some things that even I can’t explain why I did ’em. Did this one in one of those times as well. This is a simple script to monitor motion in front of your PC, auto-lock it when you are away and auto-unlock it when you come back. Did it just because I was really bogged down by the shitload of work that I’ve been doing for the past few weeks (and even weekends as well), so wanted to take a break for a few minutes, and just chanced over my own “Home Security Using a Webcam and Twitter” post, so thought of doing something related to motion detection again.