Difference between revisions of "Take a screenshot"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk |
||
Line 10: | Line 10: | ||
= One-key-screenshot = | = One-key-screenshot = | ||
import -window root snapshot-$(date +%Y-%m-%d_%H-%M-%S).jpg | import -window root snapshot-$(date +%Y-%m-%d_%H-%M-%S).jpg | ||
+ | |||
+ | = See also = | ||
+ | * [[Configure your PAUSE key to lock the screen]] - how to trigger an action on keypress |
Revision as of 17:51, 19 January 2016
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
One-key-screenshot
import -window root snapshot-$(date +%Y-%m-%d_%H-%M-%S).jpg
See also
- Configure your PAUSE key to lock the screen - how to trigger an action on keypress