2016-01-18 05:06:26 +01:00
|
|
|
#compdef swaymsg
|
|
|
|
#-----------------
|
|
|
|
# Description
|
|
|
|
# -----------
|
|
|
|
#
|
|
|
|
# Completion script for swaymsg in sway wm (http://swaywm.org)
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------
|
|
|
|
# Author
|
|
|
|
# --------
|
|
|
|
#
|
|
|
|
# * Seth Barberee <seth.barberee@gmail.com>
|
|
|
|
#
|
|
|
|
# -------------------------------------------
|
2016-01-29 03:06:13 +01:00
|
|
|
|
|
|
|
types=(
|
|
|
|
'get_workspaces'
|
2018-05-11 15:51:47 +02:00
|
|
|
'get_seats'
|
2016-01-29 03:06:13 +01:00
|
|
|
'get_inputs'
|
|
|
|
'get_outputs'
|
|
|
|
'get_tree'
|
|
|
|
'get_marks'
|
|
|
|
'get_bar_config'
|
|
|
|
'get_version'
|
2017-07-07 21:51:34 +02:00
|
|
|
'get_clipboard'
|
2016-01-29 03:06:13 +01:00
|
|
|
)
|
|
|
|
|
2016-01-26 22:18:09 +01:00
|
|
|
_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]' \
|
2016-01-29 03:06:13 +01:00
|
|
|
'(-s --socket)'{-s,--socket}'[Use the specified socket path.]:files:_files' \
|
2016-01-29 03:24:21 +01:00
|
|
|
'(-t --type)'{-t,--type}'[Specify the type of IPC message.]:type:{_describe "type" types}'
|