scrot is a screen capture utility using the imlib2 library to aquire
and save images. scrot has a few options, detailed below. Specify
[file] as the filename to save the screenshot to.

One last option is to find an X app which just takes a screenshot when clicked (no prompts, dialogue boxes etc), assign it to a hotkey combination and use xdotool to simulate that keypress from the command line??