diff options
Diffstat (limited to 'completions/zsh')
-rw-r--r-- | completions/zsh/_swaygrab | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/completions/zsh/_swaygrab b/completions/zsh/_swaygrab index 64d9d2c8..e0d654c3 100644 --- a/completions/zsh/_swaygrab +++ b/completions/zsh/_swaygrab | |||
@@ -2,8 +2,8 @@ | |||
2 | #----------------- | 2 | #----------------- |
3 | # Description | 3 | # Description |
4 | # ----------- | 4 | # ----------- |
5 | # | 5 | # |
6 | # Completion script for swaygrab in the sway wm (http://swaywm.org) | 6 | # Completion script for swaygrab in sway wm (http://swaywm.org) |
7 | # | 7 | # |
8 | # ----------------------------------------------------- | 8 | # ----------------------------------------------------- |
9 | # Author | 9 | # Author |
@@ -13,16 +13,11 @@ | |||
13 | # | 13 | # |
14 | # ------------------------------------------ | 14 | # ------------------------------------------ |
15 | 15 | ||
16 | _swaygrab() { | 16 | _arguments -s \ |
17 | local -a options | 17 | '(-h --help)'{-h,--help}'[Shows help message]' \ |
18 | options=('--version:shows version' | 18 | '(-c --capture)'{-c,--capture}'[Captures multiple frames as video and passes them to ffmpeg]' \ |
19 | '--help:shows help message' | 19 | '(-o --output)'{-o,--output}'[Use the specified output. If not specified then current focused output will be used]' \ |
20 | '--capture:Captures multiple frames as video as passes into ffmpeg until SIGTERM (ctrl+c) is sent to swaygrab' | 20 | '(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \ |
21 | '--output:Use the specified output. If no output is defined, the currently focused output in sway is used' | 21 | '(-s --socket)'{-s,--socket}'[Use the specified socket path. Otherwise, sway uses $SWAYSOCK then $I3SOCK]' \ |
22 | '--socket:Use the specified socket path. Otherwise, swayuses $SWAYSOCK then $I3SOCK' | 22 | '(-r --rate)'{-r,--rate}'[Specify a framerate (in fps). Used in combination with -c. Default is 30 and must be an integer]' \ |
23 | '--rate:Specify a framerate (in fps). Used in combination with -c. Default is 30 and must be an integer' | 23 | '(--raw)--raw[Instead of ImageMagick or ffmpeg, dump raw rgba data to stdout]' |
24 | '--raw:Instead of ImageMagick or ffmpeg, dump raw rgba data to stdout' | ||
25 | ) | ||
26 | _describe 'values' options | ||
27 | } | ||
28 | _swaygrab "$@" | ||