aboutsummaryrefslogtreecommitdiff
path: root/completions/zsh/_swaymsg
blob: 5d9277c48b677f5c1237721ba42221e77cfe7b9c (plain)
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
#compdef swaymsg
#-----------------
# Description
# -----------
#
# Completion script for swaymsg in sway wm (http://swaywm.org)
#
# ------------------------------------------------------
# Author
# --------
#
#  * Seth Barberee <seth.barberee@gmail.com>
#
#  -------------------------------------------

_swaymsg() {
	local -a options
	options=('--version:shows version'
		'--help:shows help message'
		'--quiet:sends the IPC message but does not print the response from sway'
		'--socket:Use the specified socket path. Otherwise, swaymsg uses $SWAYSOCK then $I3SOCK'
		'--type:Specify the type of IPC message. Tab completion still coming so use the man page instead'
		)
	_describe 'values' options
	}
_swaymsg "$@"