You can use the best screenshot tool
shutter for use in scripts too! And I believe, this is the most powerful tool and give you most advanced and fine-tuned options to use in scripts.
Install it with the command in a terminal
sudo apt-get install shutter
or using the software center (by clicking the big button below)
And after installation, use this command to take a screenshot of the whole display and save the screenshot in a file named,
shutter -f -o myshot.png -e
-f tells shutter to take a screenshot of the whole display. You could also use
-a to take a screenshot of the active window, or tell it to take a shot from any specific window.
-o option is used for telling shutter the output file name. You could specify any file name
e option causes shutter to exit after taking the screenshot.
The output of
shutter --help is given below for reference.
shutter -a -p=myprofile --min_at_startup
shutter -s=100,100,300,300 -e
shutter --web=http://shutter-project.org/ -e
Capture Mode Options:
Capture an area of the screen. Providing X,Y,WIDTH,HEIGHT is
Capture the entire screen.
Select a window to capture. Providing a NAME_PATTERN (Perl-style
regex) ist optional.
Capture the current active window.
Capture a section. You will be able to select any child window
by moving the mouse over it.
Capture a menu.
Capture a tooltip.
Capture a webpage. Providing an URL ist optional.
Redo last screenshot.
Load a specific profile on startup.
Specify a filename to save the screenshot to (overwrites any
Supported image formats: You can save to any popular image
format (e.g. jpeg, png, gif, bmp). Additionally it is possible
to save to pdf, ps or svg.
Please note: There are several wildcards available, like
%Y = year
%m = month
%d = day
%T = time
$w = width
$h = height
$name = multi-purpose (e.g. window title)
$nb_name = like $name but without blanks in resulting strings
$profile = name of current profile
$R = random char (e.g. $RRRR = ag4r)
%NN = counter
The string is interpretted by strftime. See "man strftime" for
As an example: shutter -f -e -o './%y-%m-%d_$w_$h.png' would
create a file named '11-10-28_1280_800.png' in the current
Prints a brief help message and exits.
Prints version information.
Prints a lot of debugging information to STDOUT.
Clears cache, e.g. installed plugins, at startup.
Starts Shutter minimized to tray.
Disables systray icon.
Exit after the first capture has been made. This is useful when
using Shutter in scripts.