diff options
-rwxr-xr-x | contrib/grimshot | 4 | ||||
-rw-r--r-- | contrib/grimshot.1 | 3 | ||||
-rw-r--r-- | contrib/grimshot.1.scd | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/contrib/grimshot b/contrib/grimshot index 461a5eef..921837f9 100755 --- a/contrib/grimshot +++ b/contrib/grimshot | |||
@@ -32,13 +32,13 @@ FILE=${3:-$(getTargetDirectory)/$(date -Ins).png} | |||
32 | 32 | ||
33 | if [ "$ACTION" != "save" ] && [ "$ACTION" != "copy" ] && [ "$ACTION" != "check" ]; then | 33 | if [ "$ACTION" != "save" ] && [ "$ACTION" != "copy" ] && [ "$ACTION" != "check" ]; then |
34 | echo "Usage:" | 34 | echo "Usage:" |
35 | echo " grimshot [--notify] (copy|save) [active|screen|output|area|window] [FILE]" | 35 | echo " grimshot [--notify] (copy|save) [active|screen|output|area|window] [FILE|-]" |
36 | echo " grimshot check" | 36 | echo " grimshot check" |
37 | echo " grimshot usage" | 37 | echo " grimshot usage" |
38 | echo "" | 38 | echo "" |
39 | echo "Commands:" | 39 | echo "Commands:" |
40 | echo " copy: Copy the screenshot data into the clipboard." | 40 | echo " copy: Copy the screenshot data into the clipboard." |
41 | echo " save: Save the screenshot to a regular file." | 41 | echo " save: Save the screenshot to a regular file or '-' to pipe to STDOUT." |
42 | echo " check: Verify if required tools are installed and exit." | 42 | echo " check: Verify if required tools are installed and exit." |
43 | echo " usage: Show this message and exit." | 43 | echo " usage: Show this message and exit." |
44 | echo "" | 44 | echo "" |
diff --git a/contrib/grimshot.1 b/contrib/grimshot.1 index f6c8a377..e4baccfd 100644 --- a/contrib/grimshot.1 +++ b/contrib/grimshot.1 | |||
@@ -5,7 +5,7 @@ | |||
5 | .nh | 5 | .nh |
6 | .ad l | 6 | .ad l |
7 | .\" Begin generated content: | 7 | .\" Begin generated content: |
8 | .TH "grimshot" "1" "2020-12-20" | 8 | .TH "grimshot" "1" "2021-02-23" |
9 | .P | 9 | .P |
10 | .SH NAME | 10 | .SH NAME |
11 | .P | 11 | .P |
@@ -31,6 +31,7 @@ Show notifications to the user that a screenshot has been taken.\& | |||
31 | Save the screenshot into a regular file.\& Grimshot will write images | 31 | Save the screenshot into a regular file.\& Grimshot will write images |
32 | files to \fBXDG_SCREENSHOTS_DIR\fR if this is set (or defined | 32 | files to \fBXDG_SCREENSHOTS_DIR\fR if this is set (or defined |
33 | in \fBuser-dirs.\&dir\fR), or otherwise fall back to \fBXDG_PICTURES_DIR\fR.\& | 33 | in \fBuser-dirs.\&dir\fR), or otherwise fall back to \fBXDG_PICTURES_DIR\fR.\& |
34 | Set FILE to '-' to pipe the output to STDOUT.\& | ||
34 | .P | 35 | .P |
35 | .RE | 36 | .RE |
36 | \fBcopy\fR | 37 | \fBcopy\fR |
diff --git a/contrib/grimshot.1.scd b/contrib/grimshot.1.scd index 4ab58532..d2a57759 100644 --- a/contrib/grimshot.1.scd +++ b/contrib/grimshot.1.scd | |||
@@ -19,6 +19,7 @@ grimshot - a helper for screenshots within sway | |||
19 | Save the screenshot into a regular file. Grimshot will write images | 19 | Save the screenshot into a regular file. Grimshot will write images |
20 | files to *XDG_SCREENSHOTS_DIR* if this is set (or defined | 20 | files to *XDG_SCREENSHOTS_DIR* if this is set (or defined |
21 | in *user-dirs.dir*), or otherwise fall back to *XDG_PICTURES_DIR*. | 21 | in *user-dirs.dir*), or otherwise fall back to *XDG_PICTURES_DIR*. |
22 | Set FILE to '-' to pipe the output to STDOUT. | ||
22 | 23 | ||
23 | *copy* | 24 | *copy* |
24 | Copy the screenshot data (as image/png) into the clipboard. | 25 | Copy the screenshot data (as image/png) into the clipboard. |