-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxscreenshot.1
52 lines (52 loc) · 1.15 KB
/
xscreenshot.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.Dd December 02, 2022
.Dt XSCREENSHOT 1
.Sh NAME
.Nm xscreenshot
.Nd screenshot utility for X
.Sh SYNOPSIS
.Nm
.Op Fl chpv
.Op Fl d Ar directory
.Op Fl w Ar id
.Sh DESCRIPTION
The
.Nm
utility lets you take a screenshot and save it as a png.
.Sh OPTIONS
.Bl -tag -width indent
.It Fl c
include the cursor in the screenshot
.It Fl h
show usage
.It Fl p
print the screenshot path to stdout
.It Fl v
display the program version
.It Fl d
set the directory to save the screenshot
.It Fl w
screenshot a specific window
.El
.Sh EXAMPLES
.Bl -tag -width indent
.It take a screenshot of a specific window
xscreenshot -w $(xwininfo | awk '/Window id:/{print $4}')
.It take a screenshot and save it under ~/.screenshots
xscreenshot -d ~/.screenshots
.It take a screenshot of every screen
xlsroots | xargs xscreenshot -w
.It take a screenshot of the screen where the mouse is
xhsr | xargs xscreenshot -w
.It use apint to draw over a freshly taken screenshot
apint -f -l $(xscreenshot -p -d $(mktemp -d))
.El
.Sh SEE ALSO
.Xr X 7
.Xr png 5
.Xr apint 1
.Xr xlsroots 1
.Xr xhsr 1
.Sh AUTHORS
.An alpheratz0 Aq Mt [email protected]
.Sh BUGS
https://github.com/alpheratz0/xscreenshot/issues