2020-05-01 19:57:48 +10:00
|
|
|
.\" Generated by scdoc 1.10.1
|
|
|
|
.\" Complete documentation for this program is not available as a GNU info page
|
|
|
|
.ie \n(.g .ds Aq \(aq
|
|
|
|
.el .ds Aq '
|
|
|
|
.nh
|
|
|
|
.ad l
|
|
|
|
.\" Begin generated content:
|
2020-05-08 12:56:25 +10:00
|
|
|
.TH "grimshot" "1" "2020-05-08"
|
2020-05-01 19:57:48 +10:00
|
|
|
.P
|
|
|
|
.SH NAME
|
|
|
|
.P
|
|
|
|
grimshot - a helper for screenshots within sway
|
|
|
|
.P
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.P
|
|
|
|
grimshot [--notify] (copy|save) [TARGET] [FILE]
|
|
|
|
grimshot check
|
|
|
|
grimshot usage
|
|
|
|
.P
|
|
|
|
\fB--notify\fR
|
|
|
|
.RS 4
|
|
|
|
Show notifications to the user that a screenshot has been taken.
|
|
|
|
.P
|
|
|
|
.RE
|
|
|
|
\fBsave\fR
|
|
|
|
.RS 4
|
|
|
|
Save the screenshot into a regular file. Grimshot will write images
|
|
|
|
files to \fB$XDG_SCREENSHOTS_DIR\fR if this is set (or defined
|
|
|
|
in `user-dirs.dir`), or otherwise fall back to `$XDG_PICTURES_DIR`
|
|
|
|
.P
|
|
|
|
.RE
|
|
|
|
\fBcopy\fR
|
|
|
|
.RS 4
|
|
|
|
Copy the screenshot data (as image/png) into the clipboard.
|
|
|
|
.P
|
|
|
|
.RE
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.P
|
|
|
|
Grimshot is an easy to use screenshot tool for sway. It relies on grim, slurp
|
|
|
|
and jq to do the heavy lifting, and mostly provides an easy to use interface.
|
|
|
|
.P
|
|
|
|
A recommended usage pattern is to just bind this to Super+P via sway:
|
|
|
|
.P
|
|
|
|
.nf
|
|
|
|
.RS 4
|
|
|
|
# Screenshots:
|
|
|
|
# Cmd+P: Current window
|
2020-05-08 12:56:25 +10:00
|
|
|
# Cmd+Shift+p: Select area
|
2020-05-01 19:57:48 +10:00
|
|
|
# Cmd+Alt+p Current output
|
|
|
|
# Cmd+Ctrl+p Select a window
|
|
|
|
|
2020-05-08 12:56:25 +10:00
|
|
|
bindsym Mod4+p exec grimshot save active
|
|
|
|
bindsym Mod4+Shift+p exec grimshot save area
|
|
|
|
bindsym Mod4+Mod1+p exec grimshot save output
|
|
|
|
bindsym Mod4+Ctrl+p exec grimshot save window
|
2020-05-01 19:57:48 +10:00
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.P
|
|
|
|
.SH TARGETS
|
|
|
|
.P
|
|
|
|
grimshot can capture the following named targets:
|
|
|
|
.P
|
|
|
|
\fIactive\fR
|
|
|
|
.RS 4
|
|
|
|
Captures the currently active window.
|
|
|
|
.P
|
|
|
|
.RE
|
|
|
|
\fIscreen\fR
|
|
|
|
.RS 4
|
|
|
|
Captures the entire screen. This includes all visible outputs.
|
|
|
|
.P
|
|
|
|
.RE
|
2020-05-08 12:56:25 +10:00
|
|
|
\fIarea\fR
|
2020-05-01 19:57:48 +10:00
|
|
|
.RS 4
|
|
|
|
Allows manually selecting a rectangular region, and captures that.
|
|
|
|
.P
|
|
|
|
.RE
|
|
|
|
\fIwindow\fR
|
|
|
|
.RS 4
|
|
|
|
Allows manually selecting a single window (by clicking on it), and
|
|
|
|
captures it.
|
|
|
|
.P
|
|
|
|
.RE
|
|
|
|
\fIoutput\fR
|
|
|
|
.RS 4
|
|
|
|
Captures the currently active output.
|
|
|
|
.P
|
|
|
|
.RE
|
|
|
|
.SH OUTPUT
|
|
|
|
.P
|
|
|
|
Grimshot will always print the filename of the captured screenshot to
|
|
|
|
stdout.
|
|
|
|
.P
|
|
|
|
.SH SEE ALSO
|
|
|
|
.P
|
|
|
|
\fBgrim\fR(1)
|