Merge pull request #461 from SethBarberee/swaygrab-zsh

restructured to include single dash options
master
Drew DeVault 9 years ago
commit c2bf457b9f

@ -3,7 +3,7 @@
# Description # Description
# ----------- # -----------
# #
# Completion script for swaygrab in the sway wm (http://swaywm.org) # Completion script for swaygrab in sway wm (http://swaywm.org)
# #
# ----------------------------------------------------- # -----------------------------------------------------
# Author # Author
@ -13,16 +13,11 @@
# #
# ------------------------------------------ # ------------------------------------------
_swaygrab() { _arguments -s \
local -a options '(-h --help)'{-h,--help}'[Shows help message]' \
options=('--version:shows version' '(-c --capture)'{-c,--capture}'[Captures multiple frames as video and passes them to ffmpeg]' \
'--help:shows help message' '(-o --output)'{-o,--output}'[Use the specified output. If not specified then current focused output will be used]' \
'--capture:Captures multiple frames as video as passes into ffmpeg until SIGTERM (ctrl+c) is sent to swaygrab' '(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \
'--output:Use the specified output. If no output is defined, the currently focused output in sway is used' '(-s --socket)'{-s,--socket}'[Use the specified socket path. Otherwise, sway uses $SWAYSOCK then $I3SOCK]' \
'--socket:Use the specified socket path. Otherwise, swayuses $SWAYSOCK then $I3SOCK' '(-r --rate)'{-r,--rate}'[Specify a framerate (in fps). Used in combination with -c. Default is 30 and must be an integer]' \
'--rate:Specify a framerate (in fps). Used in combination with -c. Default is 30 and must be an integer' '(--raw)--raw[Instead of ImageMagick or ffmpeg, dump raw rgba data to stdout]'
'--raw:Instead of ImageMagick or ffmpeg, dump raw rgba data to stdout'
)
_describe 'values' options
}
_swaygrab "$@"

Loading…
Cancel
Save