mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 17:01:29 +00:00
Improve _swaymsg and _swaygrab completions
This commit is contained in:
parent
34948c7ee1
commit
10e50b690a
|
@ -18,6 +18,6 @@ _arguments -s \
|
|||
'(-c --capture)'{-c,--capture}'[Captures multiple frames as video and passes them to ffmpeg]' \
|
||||
'(-o --output)'{-o,--output}'[Use the specified output. If not specified then current focused output will be used]' \
|
||||
'(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \
|
||||
'(-s --socket)'{-s,--socket}'[Use the specified socket path. Otherwise, sway uses $SWAYSOCK then $I3SOCK]' \
|
||||
'(-s --socket)'{-s,--socket}'[Use the specified socket path.]:files:_files' \
|
||||
'(-r --rate)'{-r,--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]'
|
||||
|
|
|
@ -12,9 +12,20 @@
|
|||
# * Seth Barberee <seth.barberee@gmail.com>
|
||||
#
|
||||
# -------------------------------------------
|
||||
|
||||
types=(
|
||||
'get_workspaces'
|
||||
'get_inputs'
|
||||
'get_outputs'
|
||||
'get_tree'
|
||||
'get_marks'
|
||||
'get_bar_config'
|
||||
'get_version'
|
||||
)
|
||||
|
||||
_arguments -s \
|
||||
'(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \
|
||||
'(-h --help)'{-h,--help}'[Shows help message]' \
|
||||
'(-q --quiet)'{-q,--quiet}'[Sends the IPC message but does not print the response from sway]' \
|
||||
'(-s --socket)'{-s,--socket}'[Use the specified socket path. Otherwise, swaymsg uses $SWAYSOCK then $I3SOCK]' \
|
||||
'(-t --type)'{-t,--type}'[Specify the type of IPC message. Tab completion still coming so use the man page instead]'
|
||||
'(-s --socket)'{-s,--socket}'[Use the specified socket path.]:files:_files' \
|
||||
'(-t --type)'{-t,--type}'[Specify the type of IPC message.]:type:{_describe "type" types}'
|
||||
|
|
Loading…
Reference in a new issue