aboutsummaryrefslogtreecommitdiff
path: root/contrib/grimshot.1.scd
diff options
context:
space:
mode:
authorHugo Osvaldo Barrera <hugo@barrera.io>2020-05-01 11:57:48 +0200
committerDrew DeVault <sir@cmpwn.com>2020-05-05 20:18:19 +0200
commitf82de63856af94c2649901cbb303a42531d27cac (patch)
tree7f5094949a64372d8de0994b520cca4dd55b5a22 /contrib/grimshot.1.scd
parentb10b6b552b81baae8d6e39c2401815964ea4a542 (diff)
grimshot: Add a man page
Diffstat (limited to 'contrib/grimshot.1.scd')
-rw-r--r--contrib/grimshot.1.scd71
1 files changed, 71 insertions, 0 deletions
diff --git a/contrib/grimshot.1.scd b/contrib/grimshot.1.scd
new file mode 100644
index 00000000..afc6362e
--- /dev/null
+++ b/contrib/grimshot.1.scd
@@ -0,0 +1,71 @@
+grimshot(1)
+
+# NAME
+
+grimshot - a helper for screenshots within sway
+
+# DESCRIPTION
+
+grimshot [--notify] (copy|save) [TARGET] [FILE]
+grimshot check
+grimshot usage
+
+*--notify*
+ Show notifications to the user that a screenshot has been taken.
+
+*save*
+ Save the screenshot into a regular file. Grimshot will write images
+ files to *$XDG_SCREENSHOTS_DIR* if this is set (or defined
+ in `user-dirs.dir`), or otherwise fall back to `$XDG_PICTURES_DIR`
+
+*copy*
+ Copy the screenshot data (as image/png) into the clipboard.
+
+# SYNOPSIS
+
+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.
+
+A recommended usage pattern is to just bind this to Super+P via sway:
+
+```
+# Screenshots:
+# Cmd+P: Current window
+# Cmd+Shift+p: Select region
+# Cmd+Alt+p Current output
+# Cmd+Ctrl+p Select a window
+
+bindsym Mod4+p exec grimshot active
+bindsym Mod4+Shift+p exec grimshot region
+bindsym Mod4+Mod1+p exec grimshot output
+bindsym Mod4+Ctrl+p exec grimshot window
+```
+
+# TARGETS
+
+grimshot can capture the following named targets:
+
+_active_
+ Captures the currently active window.
+
+_screen_
+ Captures the entire screen. This includes all visible outputs.
+
+_region_
+ Allows manually selecting a rectangular region, and captures that.
+
+_window_
+ Allows manually selecting a single window (by clicking on it), and
+ captures it.
+
+_output_
+ Captures the currently active output.
+
+# OUTPUT
+
+Grimshot will always print the filename of the captured screenshot to
+stdout.
+
+# SEE ALSO
+
+*grim*(1)