Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a command-line switch to launch GIMP and open the 'Acquire screenshot' dialog directly, rather than going through the menu?

share|improve this question

If it is a command line screenshot you are interested in
ImageMagick has a very good import command that can be used for screen capture.

share|improve this answer
Thanks for the answer. I'd like to open it directly in GIMP since then I can easily crop/adjust it. – Robert Munteanu Aug 16 '09 at 20:17
xwd >/tmp/snap ;  gimp /tmp/snap

This uses the xwd utility to let you grab an image of a window then opens it immediately in Gimp for editing, acting as if it has been snapped directly into Gimp. Read the man file for xwd for various options you can add to this line to alter its behavior to what you prefer. If you don't have xwd (an ancient and pretty common screengrab utility) then use scrot or ImageMagick's "import" to grab the screenshot to a file, and open it in Gimp the same way.

You could make a small script with this line and invoke it with a hotkey (e.g. PrintScreen key) for ease of use. There are issues with using the PrintScreen key though. Read for background info on why PrintScreen key doesn't work properly in many distros and how to very easily fix it.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .