diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-01-19 18:50:12 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-01-19 18:50:12 -0500 |
commit | a6b19988c54272dbd9366a7e8fa6b8c459541cb6 (patch) | |
tree | 5991fa5cb3c5003b003952365356ad123d3048d4 /completions/zsh/_swaygrab | |
parent | b72a62b02b601d98ca89919f42e7ddec4e8ab2b2 (diff) | |
parent | fcd007155552376fa5c482d5d650b90f9a7e172e (diff) | |
download | sway-a6b19988c54272dbd9366a7e8fa6b8c459541cb6.tar.xz |
Merge pull request #440 from SethBarberee/zsh-completions
Basic Zsh auto-completion for --options
Diffstat (limited to 'completions/zsh/_swaygrab')
-rw-r--r-- | completions/zsh/_swaygrab | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/completions/zsh/_swaygrab b/completions/zsh/_swaygrab new file mode 100644 index 00000000..64d9d2c8 --- /dev/null +++ b/completions/zsh/_swaygrab @@ -0,0 +1,28 @@ +#compdef swaygrab +#----------------- +# Description +# ----------- +# +# Completion script for swaygrab in the sway wm (http://swaywm.org) +# +# ----------------------------------------------------- +# Author +# ------ +# +# * Seth Barberee <seth.barberee@gmail.com> +# +# ------------------------------------------ + +_swaygrab() { + local -a options + options=('--version:shows version' + '--help:shows help message' + '--capture:Captures multiple frames as video as passes into ffmpeg until SIGTERM (ctrl+c) is sent to swaygrab' + '--output:Use the specified output. If no output is defined, the currently focused output in sway is used' + '--socket:Use the specified socket path. Otherwise, swayuses $SWAYSOCK then $I3SOCK' + '--rate:Specify a framerate (in fps). Used in combination with -c. Default is 30 and must be an integer' + '--raw:Instead of ImageMagick or ffmpeg, dump raw rgba data to stdout' + ) + _describe 'values' options + } +_swaygrab "$@" |