aboutsummaryrefslogtreecommitdiff
path: root/completions/zsh/_swaymsg
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-29 03:06:13 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-29 03:06:13 +0100
commit10e50b690ab62874d3afc02f0c811fbcc516014c (patch)
treea8ad93fd9c5341d399b741a1ae2309e7c91b8a5a /completions/zsh/_swaymsg
parent34948c7ee1560d026962d6e0714cdacf4179b786 (diff)
Improve _swaymsg and _swaygrab completions
Diffstat (limited to 'completions/zsh/_swaymsg')
-rw-r--r--completions/zsh/_swaymsg15
1 files changed, 13 insertions, 2 deletions
diff --git a/completions/zsh/_swaymsg b/completions/zsh/_swaymsg
index 4baff92f..1713689a 100644
--- a/completions/zsh/_swaymsg
+++ b/completions/zsh/_swaymsg
@@ -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}'