diff 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 @@ | |||
1 | #compdef swaygrab | ||
2 | #----------------- | ||
3 | # Description | ||
4 | # ----------- | ||
5 | # | ||
6 | # Completion script for swaygrab in the sway wm (http://swaywm.org) | ||
7 | # | ||
8 | # ----------------------------------------------------- | ||
9 | # Author | ||
10 | # ------ | ||
11 | # | ||
12 | # * Seth Barberee <seth.barberee@gmail.com> | ||
13 | # | ||
14 | # ------------------------------------------ | ||
15 | |||
16 | _swaygrab() { | ||
17 | local -a options | ||
18 | options=('--version:shows version' | ||
19 | '--help:shows help message' | ||
20 | '--capture:Captures multiple frames as video as passes into ffmpeg until SIGTERM (ctrl+c) is sent to swaygrab' | ||
21 | '--output:Use the specified output. If no output is defined, the currently focused output in sway is used' | ||
22 | '--socket:Use the specified socket path. Otherwise, swayuses $SWAYSOCK then $I3SOCK' | ||
23 | '--rate:Specify a framerate (in fps). Used in combination with -c. Default is 30 and must be an integer' | ||
24 | '--raw:Instead of ImageMagick or ffmpeg, dump raw rgba data to stdout' | ||
25 | ) | ||
26 | _describe 'values' options | ||
27 | } | ||
28 | _swaygrab "$@" | ||