1
1
.\" Text automatically generated by txt2man
2
- .TH scrot 1 "10 Jun 2023 " "scrot-1.10 " "command line screen capture utility"
2
+ .TH scrot 1 "09 Jun 2024 " "scrot-1.11 " "command line screen capture utility"
3
3
.SH NAME
4
4
\fB scrot \fP - command line screen capture utility
5
5
\fB
@@ -90,8 +90,9 @@ Don't exit for keyboard input. ESC still exits.
90
90
.B
91
91
\fB -k \fP , \fB --stack \fP [=\fI OPT \fP ]
92
92
Capture stack/overlapped windows and join them. A
93
- running Composite Manager is needed. \fI OPT \fP it's optional
94
- join letter: v/h (vertical/horizontal). Default: h
93
+ running Composite Manager is needed for it to work
94
+ correctly. \fI OPT \fP is optional join letter: v/h
95
+ (vertical/horizontal). Default: h
95
96
.TP
96
97
.B
97
98
\fB -l \fP , \fB --line \fP \fI STYLE \fP
@@ -140,10 +141,7 @@ If one of the resolution's dimensions is 0, it is
140
141
replaced by a number that maintains the full size
141
142
screenshot's aspect ratio. Examples: 10, 25, 320x240,
142
143
500x200, 100x0, 0x480.
143
- .TP
144
- .B
145
- \fB -u \fP , \fB --focused \fP
146
- Use the currently focused window.
144
+ \fB -u \fP , \fB --focused \fP , \fB --focussed \fP Use the currently focused window.
147
145
.TP
148
146
.B
149
147
\fB -v \fP , \fB --version \fP
@@ -173,17 +171,25 @@ If no format is specified, \fBscrot\fP will use the file
173
171
extension to determine the format. If filename
174
172
does not have an extension either, then PNG will
175
173
be used as fallback.
174
+ .TP
175
+ .B
176
+ \fB --list-options \fP [=\fI OPT \fP ]
177
+ List all program options. If argument is "tsv" it
178
+ outputs a TAB separated list intended for scripts.
179
+ Default is "human". Note that the tsv format is not
180
+ stable and may change in the future.
176
181
.SH SPECIAL STRINGS
177
182
\fB -e \fP , \fB -F \fP and \fI FILE \fP parameters can take format specifiers that are expanded
178
183
by \fB scrot \fP when encountered. There are two types of format specifier:
179
- Characters preceded by a '%' are interpreted by \fB strftime \fP (2 ). The second kind
184
+ Characters preceded by a '%' are interpreted by \fB strftime \fP (3 ). The second kind
180
185
are internal to \fB scrot \fP and are prefixed by '$'. The following specifiers are
181
186
recognised by \fB scrot \fP :
182
187
.PP
183
188
.nf
184
189
.fam C
185
190
$$ A literal '$'.
186
191
$a The system's hostname.
192
+ $F The output file format.
187
193
$f The image's full path (ignored when used in the filename).
188
194
$h The image's height.
189
195
$m The thumbnail's full path (ignored when used in the filename).
@@ -201,12 +207,12 @@ Example:
201
207
.PP
202
208
.nf
203
209
.fam C
204
- $ scrot '%Y-%m-%d_$wx$h.png' -e 'optipng $f'
210
+ $ scrot '%Y-%m-%d_$wx$h.png' -e 'du -h $f'
205
211
206
212
.fam T
207
213
.fi
208
214
This would create a PNG file with a name similar to 2000-10-30_2560x1024.png
209
- and optimize it with \fB optipng \fP (1).
215
+ and show the disk-usage with \fB du \fP (1).
210
216
.SH SELECTION MODE
211
217
When using \fB -s \fP , optionally you can indicate the action to perform with the selection area.
212
218
Some actions allow optional parameters too.
@@ -267,9 +273,10 @@ When using \fB-s\fP, you can indicate the style of the line with \fB-l\fP.
267
273
100% transparent. For the opacity of the line, this is only
268
274
effective if the compositor supports _NET_WM_WINDOW_OPACITY.
269
275
270
- mode=MODE MODE is either "edge" or "classic" without quotes.
276
+ mode=MODE MODE can be "auto", "edge" or "classic" without quotes.
271
277
edge is the new selection, classic uses the old one.
272
- "edge" ignores the style specifier and the -f flag,
278
+ "auto" uses "edge" if no compositor is running, "classic"
279
+ otherwise. "edge" ignores the style specifier and the -f flag,
273
280
"classic" ignores the opacity specifier.
274
281
275
282
.fam T
@@ -278,7 +285,7 @@ Without the \fB-l\fP option, a default style is used:
278
285
.PP
279
286
.nf
280
287
.fam C
281
- mode=classic ,style=solid,width=1,opacity=100
288
+ mode=auto ,style=solid,width=1,opacity=100
282
289
283
290
.fam T
284
291
.fi
@@ -296,11 +303,50 @@ For lossless formats (e.g PNG), the quality options is ignored. For lossy
296
303
formats where the quality and compression are tied together (e.g JPEG),
297
304
compression will be ignored. And for image formats where quality and
298
305
compression can be independently set (e.g WebP, JXL), both flags are respected.
299
- .SH SEE ALSO
300
- \fB optipng \fP (1)
301
- \fB xwininfo \fP (1)
306
+ .SH EXAMPLES
307
+
308
+ Following are a couple examples of using \fB scrot \fP with other utilities.
309
+ .PP
310
+ Copying screenshot to clipboard using \fB xclip \fP (1):
311
+ .PP
312
+ .nf
313
+ .fam C
314
+ $ scrot - | xclip -selection clipboard -target image/png
315
+
316
+ .fam T
317
+ .fi
318
+ Taking a screenshot and optimizing its size with \fB optipng \fP (1):
319
+ .PP
320
+ .nf
321
+ .fam C
322
+ $ scrot -e 'optipng -o4 $f'
323
+
324
+ .fam T
325
+ .fi
326
+ Selecting a window by PID with \fB xdo \fP (1):
327
+ .PP
328
+ .nf
329
+ .fam C
330
+ $ scrot -w $(xdo id -p PID)
331
+
332
+ .fam T
333
+ .fi
334
+ Taking a screenshot and annotating it with \fB ImageMagick \fP (1):
335
+ .PP
336
+ .nf
337
+ .fam C
338
+ $ scrot - | convert -pointsize 64 -gravity North -annotate '+16+16' 'hello, world!' - out.png
339
+
340
+ .fam T
341
+ .fi
302
342
.SH AUTHOR
303
343
\fB scrot \fP was originally developed by Tom Gilbert.
304
344
.PP
305
345
Currently, source code is maintained by volunteers. Newer versions
306
346
are available at https://github.com/resurrecting-open-source-projects/\fB scrot \fP
347
+ .SH SEE ALSO
348
+ \fB ImageMagick \fP (1)
349
+ \fB optipng \fP (1)
350
+ \fB xclip \fP (1)
351
+ \fB xdo \fP (1)
352
+ \fB xwininfo \fP (1)
0 commit comments