aboutsummaryrefslogtreecommitdiffstats
path: root/completions/zsh/_swaymsg
blob: 6bb03279260a1e23f6107543f3848c2f46dd8254 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#compdef swaymsg
#-----------------
# Description
# -----------
#
# Completion script for swaymsg in sway wm (http://swaywm.org)
#
# ------------------------------------------------------
# Author
# --------
#
#  * Seth Barberee <seth.barberee@gmail.com>
#
#  -------------------------------------------

types=(
'get_workspaces'
'get_seats'
'get_inputs'
'get_outputs'
'get_tree'
'get_marks'
'get_bar_config'
'get_version'
'get_clipboard'
)

_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' \
	'(-t --type)'{-t,--type}'[Specify the type of IPC message.]:type:{_describe "type" types}'