aboutsummaryrefslogtreecommitdiffstats
path: root/completions/zsh/_swaymsg
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-29 03:06:13 +0100
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-29 03:06:13 +0100
commit10e50b690ab62874d3afc02f0c811fbcc516014c (patch)
treea8ad93fd9c5341d399b741a1ae2309e7c91b8a5a /completions/zsh/_swaymsg
parentAutocomplete scale options (diff)
downloadsway-10e50b690ab62874d3afc02f0c811fbcc516014c.tar.gz
sway-10e50b690ab62874d3afc02f0c811fbcc516014c.tar.zst
sway-10e50b690ab62874d3afc02f0c811fbcc516014c.zip
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 @@
12# * Seth Barberee <seth.barberee@gmail.com> 12# * Seth Barberee <seth.barberee@gmail.com>
13# 13#
14# ------------------------------------------- 14# -------------------------------------------
15
16types=(
17'get_workspaces'
18'get_inputs'
19'get_outputs'
20'get_tree'
21'get_marks'
22'get_bar_config'
23'get_version'
24)
25
15_arguments -s \ 26_arguments -s \
16 '(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \ 27 '(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \
17 '(-h --help)'{-h,--help}'[Shows help message]' \ 28 '(-h --help)'{-h,--help}'[Shows help message]' \
18 '(-q --quiet)'{-q,--quiet}'[Sends the IPC message but does not print the response from sway]' \ 29 '(-q --quiet)'{-q,--quiet}'[Sends the IPC message but does not print the response from sway]' \
19 '(-s --socket)'{-s,--socket}'[Use the specified socket path. Otherwise, swaymsg uses $SWAYSOCK then $I3SOCK]' \ 30 '(-s --socket)'{-s,--socket}'[Use the specified socket path.]:files:_files' \
20 '(-t --type)'{-t,--type}'[Specify the type of IPC message. Tab completion still coming so use the man page instead]' 31 '(-t --type)'{-t,--type}'[Specify the type of IPC message.]:type:{_describe "type" types}'