Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 an equivalent of the Window's Print Screen + Paste (or better yet the Mac OS Cmd+Shift+4, Space) in gnome?

share|improve this question
up vote 5 down vote accepted

Gnome should have screenshot abilities built already in.

Save screenshot

However, the default trigger is the Print key, which your keyboard may lack. You can remap this shortcut with gnome-keybinding-properties.


share|improve this answer
By default, "Take a screenshot of a window" is Ctrl-Print. This combination failed to work reliably for me, however, so I changed it. – badp Nov 3 '10 at 10:08
Didn't work for me either, thanks for the tip! – Abdullah Jibaly Nov 3 '10 at 19:55
If you use gnome-screenshot --interactive you can select the option to select an area instead of the whole screen or window. – Gert Jan 6 '11 at 21:17
Even better is gnome-screenshot -a (which instead of openning the choosing window, goes for select an area immediately). I'm struggling to make this default though. – Augustin Riedinger Mar 21 at 17:36

There are tons. I personally use import, from ImageMagick. It has the ability to capture the whole screen, a given window, or to let you select an area of the screen and just capture that

Whole screen

$ import -window root /path/to/output.png

Individual window

First you need to find out the X window ID:

$ xdpyinfo | grep focus
focus:  window 0x3000006, revert to Parent

Then you can run import:

$ import -window 0x3000006 /path/to/output.png

Specific area

$ import /path/to/output.png

import will let you draw an area with the mouse to capture:

Screenshot of drawing a capture area

You can use xbindkeys to bind those commands to the Print Screen key; I use a script called screenshot, so my configuration looks like:

"screenshot root"
m:0x0 + c:107

"screenshot window"
m:0x8 + c:107
share|improve this answer
Strangely enough, xdpyinfo | grep focus returns a window ID different by a unit by the expected one (found with wmctrl and the human knowledge of what window has the focus). – enzotib Feb 3 '12 at 11:08
xdpyinfo | grep focus doesn't work because what if i want to capture other GUI windows instead of current terminal window. – 林果皞 Jan 29 '15 at 9:14

Shift+PrtScrn will do the job. A dialog appears on screen allowing you to select any part of it.

share|improve this answer

Just wrote this small interface to xwd, to make it wait the provided number of seconds before it takes the dump. It seems to work.

dumptime () {
  (sleep $1; xwd -root | convert - `date +%I.%M.%S`.png) &

Also, there are scrot and gnome-screenshot.

The ImageMagick import solution in Mr. Mrozek's answer has a famous "black box" bug on -window root - not everyone gets it, but I do.

According to this, gnome-screenshot is based on ImageMagick - but it is not a wrapper; I just browsed the code, and it is a big C application.

share|improve this answer

Hit print screen and if gnome is setup correctly, a screenshot utility will pop up.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.