Difference between revisions of "Take a screenshot"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 4: Line 4:
 
* use the command import to take the screenshot:
 
* use the command import to take the screenshot:
 
  import -window root desktop.jpg
 
  import -window root desktop.jpg
 
+
* to find out the ID of a window, call
 
  xprop
 
  xprop
: find out the ID of the window you click on. Needed e.g. for the import tool.
+
: and click on the window

Revision as of 06:49, 5 August 2014

To take a screenshot via command line and save it as desktop.jpg:

  • install imagemagick, e.g. for Ubuntu Linux:
apt-get install imagemagick
  • use the command import to take the screenshot:
import -window root desktop.jpg
  • to find out the ID of a window, call
xprop
and click on the window