summaryrefslogtreecommitdiff
path: root/src/Screenshots_from_Command_Line.ascii
blob: fdb851214f91f8acda4277dc40d70d70112b39cd (plain)
    1 Screenshots from Command Line
    2 =============================
    3 :author: Aaron Ball
    4 :email: nullspoon@iohq.net
    5 
    6 == {doctitle}
    7 
    8 Today I was wanting to screenshot some work I had done on a vector image inside
    9 of the window. Now, I have a pretty minimalistic install on my box. Due to this
   10 I didn't have a screenshot application aside from http://gimp.org[The Gimp]...
   11 or so I though.
   12 
   13 Like almost everything else in Linux, it turns out you can take screenshots
   14 from the command line. To do this you use the import command.
   15 
   16 ----
   17 import image.jpg
   18 ----
   19 
   20 This will change your cursor to a plus symbol. Click the window you want to
   21 screenshot and it'll save it to the current directory.
   22 
   23 You may notice however that if your window isn't in the foreground, it may
   24 require two or more clicks to get the window you want up so you can screenshot
   25 it. To do this, we simply need a delay.
   26 
   27 ----
   28 import -pause 4 image.jpg
   29 ----
   30 
   31 The -pause switch will delay the screenshot by the duration specified.  In the
   32 example, we delay it for four seconds. Once the delay is up, again you will see
   33 the mouse cursor change to a plus symbol. Select the window you want to
   34 screenshot and it will save it to the current directory, unless you have
   35 specified a different one to save to.
   36 
   37 Category:Linux
   38 
   39 
   40 // vim: set syntax=asciidoc:

Generated by cgit