Skip to content

Commit 63597bb

Browse files
committed
Generated new manpage
1 parent bca805d commit 63597bb

File tree

2 files changed

+64
-18
lines changed

2 files changed

+64
-18
lines changed

man/create-man.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ txt2man -d "$T2M_DATE" -t $T2M_NAME -r $T2M_NAME-$T2M_VERSION -s $T2M_LEVEL -v "
1616
#--------------------------------------------------------
1717

1818
# Put here all data for your first manpage (in T2M lines)
19-
T2M_DATE="10 Jun 2023"
19+
T2M_DATE="09 Jun 2024"
2020
T2M_NAME=scrot
21-
T2M_VERSION=1.10
21+
T2M_VERSION=1.11
2222
T2M_LEVEL=1
2323
T2M_DESC="command line screen capture utility"
2424
create-man

man/scrot.1

Lines changed: 62 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.\" 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"
33
.SH NAME
44
\fBscrot \fP- command line screen capture utility
55
\fB
@@ -90,8 +90,9 @@ Don't exit for keyboard input. ESC still exits.
9090
.B
9191
\fB-k\fP, \fB--stack\fP[=\fIOPT\fP]
9292
Capture stack/overlapped windows and join them. A
93-
running Composite Manager is needed. \fIOPT\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. \fIOPT\fP is optional join letter: v/h
95+
(vertical/horizontal). Default: h
9596
.TP
9697
.B
9798
\fB-l\fP, \fB--line\fP \fISTYLE\fP
@@ -140,10 +141,7 @@ If one of the resolution's dimensions is 0, it is
140141
replaced by a number that maintains the full size
141142
screenshot's aspect ratio. Examples: 10, 25, 320x240,
142143
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.
147145
.TP
148146
.B
149147
\fB-v\fP, \fB--version\fP
@@ -173,17 +171,25 @@ If no format is specified, \fBscrot\fP will use the file
173171
extension to determine the format. If filename
174172
does not have an extension either, then PNG will
175173
be used as fallback.
174+
.TP
175+
.B
176+
\fB--list-options\fP[=\fIOPT\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.
176181
.SH SPECIAL STRINGS
177182
\fB-e\fP, \fB-F\fP and \fIFILE\fP parameters can take format specifiers that are expanded
178183
by \fBscrot\fP when encountered. There are two types of format specifier:
179-
Characters preceded by a '%' are interpreted by \fBstrftime\fP(2). The second kind
184+
Characters preceded by a '%' are interpreted by \fBstrftime\fP(3). The second kind
180185
are internal to \fBscrot\fP and are prefixed by '$'. The following specifiers are
181186
recognised by \fBscrot\fP:
182187
.PP
183188
.nf
184189
.fam C
185190
$$ A literal '$'.
186191
$a The system's hostname.
192+
$F The output file format.
187193
$f The image's full path (ignored when used in the filename).
188194
$h The image's height.
189195
$m The thumbnail's full path (ignored when used in the filename).
@@ -201,12 +207,12 @@ Example:
201207
.PP
202208
.nf
203209
.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'
205211

206212
.fam T
207213
.fi
208214
This would create a PNG file with a name similar to 2000-10-30_2560x1024.png
209-
and optimize it with \fBoptipng\fP(1).
215+
and show the disk-usage with \fBdu\fP(1).
210216
.SH SELECTION MODE
211217
When using \fB-s\fP, optionally you can indicate the action to perform with the selection area.
212218
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.
267273
100% transparent. For the opacity of the line, this is only
268274
effective if the compositor supports _NET_WM_WINDOW_OPACITY.
269275

270-
mode=MODE MODE is either "edge" or "classic" without quotes.
276+
mode=MODE MODE can be "auto", "edge" or "classic" without quotes.
271277
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,
273280
"classic" ignores the opacity specifier.
274281

275282
.fam T
@@ -278,7 +285,7 @@ Without the \fB-l\fP option, a default style is used:
278285
.PP
279286
.nf
280287
.fam C
281-
mode=classic,style=solid,width=1,opacity=100
288+
mode=auto,style=solid,width=1,opacity=100
282289

283290
.fam T
284291
.fi
@@ -296,11 +303,50 @@ For lossless formats (e.g PNG), the quality options is ignored. For lossy
296303
formats where the quality and compression are tied together (e.g JPEG),
297304
compression will be ignored. And for image formats where quality and
298305
compression can be independently set (e.g WebP, JXL), both flags are respected.
299-
.SH SEE ALSO
300-
\fBoptipng\fP(1)
301-
\fBxwininfo\fP(1)
306+
.SH EXAMPLES
307+
308+
Following are a couple examples of using \fBscrot\fP with other utilities.
309+
.PP
310+
Copying screenshot to clipboard using \fBxclip\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 \fBoptipng\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 \fBxdo\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 \fBImageMagick\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
302342
.SH AUTHOR
303343
\fBscrot\fP was originally developed by Tom Gilbert.
304344
.PP
305345
Currently, source code is maintained by volunteers. Newer versions
306346
are available at https://github.com/resurrecting-open-source-projects/\fBscrot\fP
347+
.SH SEE ALSO
348+
\fBImageMagick\fP(1)
349+
\fBoptipng\fP(1)
350+
\fBxclip\fP(1)
351+
\fBxdo\fP(1)
352+
\fBxwininfo\fP(1)

0 commit comments

Comments
 (0)