.\" Text automatically generated by txt2man .TH scrot 1 "18 July 2020" "scrot-1.4" "command line screen capture utility" .SH NAME \fBscrot \fP- command line screen capture utility \fB .SH SYNOPSIS .nf .fam C \fBscrot\fP [\fIoptions\fP] [\fIfile\fP] .fam T .fi .fam T .fi .SH DESCRIPTION \fBscrot\fP (SCReenshOT) is a simple command line screen capture utility that uses imlib2 to grab and save images. Multiple image formats are supported through imlib2's dynamic saver modules. .PP Some features of the \fBscrot\fP: .RS .IP \(bu 3 support to multiple image formats (JPG, PNG, GIF, etc.). .IP \(bu 3 optimization of the screen shots image quality. .IP \(bu 3 capture a specific window or a rectangular area on the screen with the help of switch. .RE .PP \fBscrot\fP also can be used to monitor a desktop PC in admin absent and register unwanted activities. .SH OPTIONS .TP .B \fB-h\fP, \fB--help\fP Display help output and exit. .TP .B \fB-v\fP, \fB--version\fP Output version information and exit. .TP .B \fB-D\fP, \fB--display\fP Specify the display to use; see \fBX\fP(7). .TP .B \fB-a\fP, \fB--autoselect\fP Non-interactively choose a rectangle of x,y,w,h. .TP .B \fB-b\fP, \fB--border\fP When selecting a window, grab wm border too. .TP .B \fB-c\fP, \fB--count\fP Display a countdown when used with delay. .TP .B \fB-d\fP, \fB--delay\fP NUM Wait NUM seconds before taking a shot. .TP .B \fB-e\fP, \fB--exec\fP APP Exec APP on the saved image. .TP .B \fB-q\fP, \fB--quality\fP NUM Image quality (1-100) high value means high size, low compression. Default: 75. (Effect differs depending on \fIfile\fP format chosen). .TP .B \fB-m\fP, \fB--multidisp\fP For multiple heads, grab shot from each and join them together. .TP .B \fB-s\fP, \fB--select\fP Interactively select a window or rectangle with the mouse. See \fB-l\fP and \fB-f\fP \fIoptions\fP. .TP .B \fB-l\fP, \fB--line\fP Indicates the style of the line when the \fB-s\fP option is used. See SELECTION STYLE. .TP .B \fB-f\fP, \fB--freeze\fP Freeze the screen when the \fB-s\fP option is used. .TP .B \fB-u\fP, \fB--focused\fP Use the currently focused window. .TP .B \fB-t\fP, \fB--thumb\fP NUM|GEOM Generate thumbnail too. NUM is the percentage of the original size for the thumbnail to be. Alternatively, a GEOMetry can be specified, example: 300x200 .TP .B \fB-z\fP, \fB--silent\fP Prevent beeping. .TP .B \fB-p\fP, \fB--pointer\fP Capture the mouse pointer. .TP .B \fB-o\fP, \fB--overwrite\fP By default \fBscrot\fP does not overwrite the files, use this option to allow it. .TP .B \fB-n\fP, \fB--note\fP Draw a text note. See NOTE FORMAT. .TP .B \fB-k\fP, \fB--stack\fP Capture stack/overlapped windows and join them together. A running Composite Manager is needed. .SH SPECIAL STRINGS Both the \fB--exec\fP and filename parameters can take format specifiers that are expanded by \fBscrot\fP when encountered. There are two types of format specifier. Characters preceded by a '%' are interpreted by \fBstrftime\fP(2). See man strftime for examples. These \fIoptions\fP may be used to refer to the current date and time. The second kind are internal to \fBscrot\fP and are prefixed by '$' The following specifiers are recognised: .PP .nf .fam C $a hostname $f image path/filename (ignored when used in the filename) $m thumb 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 (ignored when used in the filename) $$ print a literal '$' \\n print a newline (ignored when used in the filename) .fam T .fi Example: .PP .nf .fam C $ scrot '%Y-%m-%d_$wx$h.png' -e 'mv $f ~/shots/' .fam T .fi This would create a \fIfile\fP called something like 2000-10-30_2560x1024.png and move it to your shots directory. .SH SELECTION STYLE When using \fB--select\fP you can indicate the style of the line with \fB--line\fP. .PP The following specifiers are recognised: .PP .nf .fam C style=(solid,dash),width=(range 1 to 8),color="value" .fam T .fi The default style is: .PP .nf .fam C style=solid,width=1 .fam T .fi For the color you can use a name or a hexadecimal value. .PP .nf .fam C color="red" or color="#ff0000" .fam T .fi Example: .PP .nf .fam C $ scrot --line style=dash,width=3,color="red" --select .fam T .fi .SH NOTE FORMAT The following specifiers are recognised for the option \fB--note\fP: .PP .nf .fam C -f 'FontName/size' -t 'text' -x position (optional) -y position (optional) -c color(RGBA) (optional) -a angle (optional) .fam T .fi Example: .PP .nf .fam C $ scrot --note "-f '/usr/share/fonts/TTF/DroidSans-Bold/40' -x 10 -y 20 -c 255,0,0,255 -t 'Hi'" .fam T .fi .SH AUTHOR \fBscrot\fP was originally developed by Tom Gilbert under MIT-advertising license and is maintained by some people. .PP Currently, source code and newer versions are available at https://github.com/resurrecting-open-source-projects/\fBscrot\fP