diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-01-29 03:06:13 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-01-29 03:06:13 +0100 |
commit | 10e50b690ab62874d3afc02f0c811fbcc516014c (patch) | |
tree | a8ad93fd9c5341d399b741a1ae2309e7c91b8a5a /completions | |
parent | Autocomplete scale options (diff) | |
download | sway-10e50b690ab62874d3afc02f0c811fbcc516014c.tar.gz sway-10e50b690ab62874d3afc02f0c811fbcc516014c.tar.zst sway-10e50b690ab62874d3afc02f0c811fbcc516014c.zip |
Improve _swaymsg and _swaygrab completions
Diffstat (limited to 'completions')
-rw-r--r-- | completions/zsh/_swaygrab | 2 | ||||
-rw-r--r-- | completions/zsh/_swaymsg | 15 |
2 files changed, 14 insertions, 3 deletions
diff --git a/completions/zsh/_swaygrab b/completions/zsh/_swaygrab index e0d654c3..0f9846f4 100644 --- a/completions/zsh/_swaygrab +++ b/completions/zsh/_swaygrab | |||
@@ -18,6 +18,6 @@ _arguments -s \ | |||
18 | '(-c --capture)'{-c,--capture}'[Captures multiple frames as video and passes them to ffmpeg]' \ | 18 | '(-c --capture)'{-c,--capture}'[Captures multiple frames as video and passes them to ffmpeg]' \ |
19 | '(-o --output)'{-o,--output}'[Use the specified output. If not specified then current focused output will be used]' \ | 19 | '(-o --output)'{-o,--output}'[Use the specified output. If not specified then current focused output will be used]' \ |
20 | '(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \ | 20 | '(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \ |
21 | '(-s --socket)'{-s,--socket}'[Use the specified socket path. Otherwise, sway uses $SWAYSOCK then $I3SOCK]' \ | 21 | '(-s --socket)'{-s,--socket}'[Use the specified socket path.]:files:_files' \ |
22 | '(-r --rate)'{-r,--rate}'[Specify a framerate (in fps). Used in combination with -c. Default is 30 and must be an integer]' \ | 22 | '(-r --rate)'{-r,--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]' | 23 | '(--raw)--raw[Instead of ImageMagick or ffmpeg, dump raw rgba data to stdout]' |
diff --git a/completions/zsh/_swaymsg b/completions/zsh/_swaymsg index 4baff92f..1713689a 100644 --- a/completions/zsh/_swaymsg +++ b/completions/zsh/_swaymsg | |||
@@ -12,9 +12,20 @@ | |||
12 | # * Seth Barberee <seth.barberee@gmail.com> | 12 | # * Seth Barberee <seth.barberee@gmail.com> |
13 | # | 13 | # |
14 | # ------------------------------------------- | 14 | # ------------------------------------------- |
15 | |||
16 | types=( | ||
17 | 'get_workspaces' | ||
18 | 'get_inputs' | ||
19 | 'get_outputs' | ||
20 | 'get_tree' | ||
21 | 'get_marks' | ||
22 | 'get_bar_config' | ||
23 | 'get_version' | ||
24 | ) | ||
25 | |||
15 | _arguments -s \ | 26 | _arguments -s \ |
16 | '(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \ | 27 | '(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \ |
17 | '(-h --help)'{-h,--help}'[Shows help message]' \ | 28 | '(-h --help)'{-h,--help}'[Shows help message]' \ |
18 | '(-q --quiet)'{-q,--quiet}'[Sends the IPC message but does not print the response from sway]' \ | 29 | '(-q --quiet)'{-q,--quiet}'[Sends the IPC message but does not print the response from sway]' \ |
19 | '(-s --socket)'{-s,--socket}'[Use the specified socket path. Otherwise, swaymsg uses $SWAYSOCK then $I3SOCK]' \ | 30 | '(-s --socket)'{-s,--socket}'[Use the specified socket path.]:files:_files' \ |
20 | '(-t --type)'{-t,--type}'[Specify the type of IPC message. Tab completion still coming so use the man page instead]' | 31 | '(-t --type)'{-t,--type}'[Specify the type of IPC message.]:type:{_describe "type" types}' |