Screenshots with X11

For Gnome desktop users, there is the screenshot application available under Applications / Accessories / Take Screenshot. Also, by default, this is usually bound to the PrintScreen key (to capture the whole desktop) and to Alt+PrintScreen (to capture the current window).

Otherwise, the basic command is "import", or you can use "xwd".

To select an X window or an area of the screen with the mouse and save it in the JPG image format to a file entitled window.jpg, use:

import window.jpg

To select an X window or an area of the screen with the mouse and save it in the Encapsulated Post script format to include in another document, use:

import figure.eps

To capture the entire X server screen in the JPEG image format in a file entitled root.jpg, without using the mouse, use:

import -window root root.jpg

To capture the 512x256 area at the upper right corner of the X server screen in the PNG image forma t in a well-com-pressed file entitled corner.png, without using the mouse, use:

import -window root -crop 512x256-0+0 -quality 90 corner.png