From fcd007155552376fa5c482d5d650b90f9a7e172e Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Sun, 17 Jan 2016 22:06:26 -0600 Subject: added basic zsh shell completion for sway, swaybg, and swaygrab --- completions/zsh/_swaymsg | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 completions/zsh/_swaymsg (limited to 'completions/zsh/_swaymsg') diff --git a/completions/zsh/_swaymsg b/completions/zsh/_swaymsg new file mode 100644 index 00000000..5d9277c4 --- /dev/null +++ b/completions/zsh/_swaymsg @@ -0,0 +1,26 @@ +#compdef swaymsg +#----------------- +# Description +# ----------- +# +# Completion script for swaymsg in sway wm (http://swaywm.org) +# +# ------------------------------------------------------ +# Author +# -------- +# +# * Seth Barberee +# +# ------------------------------------------- + +_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 "$@" -- cgit v1.2.3-70-g09d2