sway/swaygrab/swaygrab.1.txt
Mikkel Oscar Lyderik 59c5aee1cc swaygrab: Add support for custom filetypes
Adds the option `-t, --type <filetype>` which can be used to select the
filetype of the produced image/video.

This will only take effect if you don't pass a filename to swaygrab e.g.
let swaygrab use the default date based filename.
2015-12-20 11:38:52 +01:00

68 lines
1.6 KiB
Plaintext

/////
vim:set ts=4 sw=4 tw=82 noet:
/////
:quotes.~:
swaygrab (1)
============
Name
----
swaygrab - Grab image data from the current sway session.
Synopsis
--------
'swaygrab' [options] [file]
Grabs pixels from an output and writes them to _file_. The image will be passed to
ImageMagick convert for processing.
Options
-------
*-h, --help*::
Show help message and quit.
*-c, \--capture*::
Captures multiple frames as video and passes them into ffmpeg. Continues until
you send SIGTERM (ctrl+c) to swaygrab.
*-o, \--output* <output>::
Use the specified _output_. If no output is defined the currently focused
output in sway will be used.
*-v, \--version*::
Print the version (of swaymsg) and quit.
*-s, --socket* <path>::
Use the specified socket path. Otherwise, swaymsg will ask sway where the
socket is (which is the value of $SWAYSOCK, then of $I3SOCK).
*-t, --type* <filetype>::
Specify the image/video filetype to produce. If no type is defined it will
default to png for images and webm for videos. If _file_ is specified this
option will not take effect.
*-r, --rate* <rate>::
Specify a framerate (in frames per second). Used in combination with -c.
Default is 30. Must be an integer.
*--raw*::
Instead of invoking ImageMagick or ffmpeg, dump raw rgba data to stdout.
Examples
--------
swaygrab output.png::
Grab the contents of currently focused output and write to output.png.
swaygrab -c -o HDMI-A-1 output.webm::
Capture a webm of HDMI-A-1.
Authors
-------
Maintained by Drew DeVault <sir@cmpwn.com>, who is assisted by other open
source contributors. For more information about sway development, see
<https://github.com/SirCmpwn/sway>.