sway/completions/zsh/_swaymsg

36 lines
882 B
Plaintext
Raw Normal View History

#compdef swaymsg
#-----------------
# Description
# -----------
#
# Completion script for swaymsg in sway wm (http://swaywm.org)
#
# ------------------------------------------------------
# Author
# --------
#
# * Seth Barberee <seth.barberee@gmail.com>
#
# -------------------------------------------
types=(
'get_workspaces'
2018-05-11 13:51:47 +00:00
'get_seats'
'get_inputs'
'get_outputs'
'get_tree'
'get_marks'
'get_bar_config'
'get_version'
2018-07-18 10:52:29 +00:00
'get_binding_modes'
'get_config'
2018-07-18 11:30:39 +00:00
'send_tick'
)
_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.]:files:_files' \
2016-01-29 02:24:21 +00:00
'(-t --type)'{-t,--type}'[Specify the type of IPC message.]:type:{_describe "type" types}'