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.
This commit is contained in:
Mikkel Oscar Lyderik 2015-12-20 11:27:17 +01:00
parent 3777c8993b
commit 59c5aee1cc
2 changed files with 22 additions and 4 deletions

View file

@ -38,6 +38,11 @@ Options
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.