If you have ImageMagick installed, then this command will do a full screen capture after a 5 second delay
Code:
sleep 5; import -window root ~/Desktop/snapshot.png
and this command will capture a single window selected with a mouse click
Code:
import -window $(xwininfo | awk '/Window id/{printf "%d", $4}') ~/Desktop/wsnapshot.png