15 August 2011

try a command line screenshot app with sudo apt-get install scrot

Install scrot in ubuntu with:
sudo apt-get install scrot
Some scrot usage details. (To see the complete list see man scrot):


-b, --border When selecting a window, grab wm border too
-c, --count Display a countdown when used with delay.
-d, --delay NUM Wait NUM seconds before taking a shot.
-e, --exec APP Exec APP on the saved image.
-q, --quality NUM Image quality (1-100) high value means high size, low compression. Default: 75. (Effect differs depending on file format chosen).
-s, --select Interactively select a window or rectangle with the mouse.

Special Strings 

Both the --exec and filename parameters can take format  specifiers that are expanded by scrot when encountered. There are two types of format specifier. Characters preceded by a '%' are interpretted by strftime(2). See man strftime for examples. These options may be used to refer to the current date and time. The second kind are internal to scrot and are prefixed by '$' The following specifiers are recognised:

$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 '$'
\n prints a newline (ignored when used in the filename)

scrot '%Y-%m-%d_$wx$h.png' -e 'mv $f ~/shots/'
This would create a file called something like 2000-10-30_2560x1024.png and move it to your ~/shots directory.

No comments:

Post a Comment