Scrot - A command line screen capture utility
Scribbled on Monday, July 28th, 2008Updated on: 31 July, 2008 at 4:06 PM IST

Scrot is used to take screenshots of your desktop. Few things that you can do are:
Install it:
(Debian or Ubuntu users)
Features and Usage:
(Arch Linux users, be sure to su before this command)
- Whole desktop screenshot
- Select a region on desktop
Select the region
- Select a window on desktop without border
Click on a window to capture borderless window
- Option to includewindow border
Click on a window to capture with border
- A delay of time after which the screenshot will be taken, comes handy when you want to capture drop down menu or context menu
Here a delay of three second is applied before capturing the desktop, best when you want to capture a context menu like this:

capture application menu or context menu !
Remember you can use delay with all actions, e.g.
But you know, its stupid here to do this :p
- You can use a count to display before taking screeshot
This will display a count before taking screenshot, as shown in pic below

display a count before capturing
- Set the image quality too
It will save the image with 80% quality, of course depending on the image type (by default its png)
- Also you can save the thumbnail too, simultaneously !
It will save a thumbnail file at 20% of the original image, like this:

easily save thumbnail too !
- Save with you own custom image name
This would create a file called something like 2000-10-30_2560×1024.png
Few special strings you can use are:
$f image path/filename (ignored when used in the filename)
$n image name (ignored when used in the filename)
$s image size (bytes) (ignored when used in the filename)
$p image pixel size
$w image width
$h image height
$t image format
$$ prints a literal ‘$’
- What if you want to execute another command after taking screenshot, e.g. you want to move the captured shot to the directory “shots” in your home folder or to open it in GIMP for editing.
$f is the image path of the captured image and and mv command moves the file to shots folder
TIP
Make an alias of the scrot command and save it to you .bashrc file, that way you don’t have to type long and keep the setting saved.
Mine alias is
Here is the screenshot of my desktop !
A thumbnail (yeah its a lil bit large) :p

Related posts:
- Dropbox installation on Linux and a brief review ! Updated on: 14 Sep, 2008 at 2:16 PM IST Added...
- FFmpeg - Convert any audio/video format in Linux Converting an audio or video file from one format to...
- Arch Linux installation from ground up Updated on: 31 July, 2008 at 4:28 PM IST NOTE:...
- Convert Autocad DWG files to DXF in Ubuntu, use QCad to edit them Some weeks back my bro switched over to Ubuntu completely....
- Funny moments in Linux Here are some pretty funny moments captured in Linux :p...
Related posts brought to you by Yet Another Related Posts Plugin.




