aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Mark Stosberg <mark@rideamigos.com>2021-02-23 10:20:45 -0500
committerLibravatar Simon Ser <contact@emersion.fr>2021-02-23 17:07:53 +0100
commit8f2eeae2853a4a7d0aea9c09a2c7ed4c2c7e557f (patch)
treeb6a7a78ac2f7d7a825c29abd562e6061ffd9479d /contrib
parentFix #5643, #5064: rounding issues in floating-point -> integer conversions (diff)
downloadsway-8f2eeae2853a4a7d0aea9c09a2c7ed4c2c7e557f.tar.gz
sway-8f2eeae2853a4a7d0aea9c09a2c7ed4c2c7e557f.tar.zst
sway-8f2eeae2853a4a7d0aea9c09a2c7ed4c2c7e557f.zip
grimshot: document support for piping to STDOUT.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/grimshot4
-rw-r--r--contrib/grimshot.13
-rw-r--r--contrib/grimshot.1.scd1
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
33if [ "$ACTION" != "save" ] && [ "$ACTION" != "copy" ] && [ "$ACTION" != "check" ]; then 33if [ "$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.\&
31Save the screenshot into a regular file.\& Grimshot will write images 31Save the screenshot into a regular file.\& Grimshot will write images
32files to \fBXDG_SCREENSHOTS_DIR\fR if this is set (or defined 32files to \fBXDG_SCREENSHOTS_DIR\fR if this is set (or defined
33in \fBuser-dirs.\&dir\fR), or otherwise fall back to \fBXDG_PICTURES_DIR\fR.\& 33in \fBuser-dirs.\&dir\fR), or otherwise fall back to \fBXDG_PICTURES_DIR\fR.\&
34Set 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.