Skip to content

Instantly share code, notes, and snippets.

@cirocosta
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cirocosta/9858356 to your computer and use it in GitHub Desktop.
Save cirocosta/9858356 to your computer and use it in GitHub Desktop.
How to take a screenshot of a particular region w/ Linux

From this great answer:

For the whole screen

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

For a selected window

$ WINDOW=$(xdpyinfo | grep focus) && import -window $WINDOW /path/to/output.png

For a specific area (this is awesome)

$ import /path/to/output.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment