From fc58822befdb416545df564a10e0d6e9fc591ebc Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Thu, 12 May 2016 23:18:16 -0500 Subject: [PATCH] added swaybar completion --- completions/zsh/CMakeLists.txt | 2 +- completions/zsh/_swaybar | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 completions/zsh/_swaybar diff --git a/completions/zsh/CMakeLists.txt b/completions/zsh/CMakeLists.txt index ac307d7d..4b5a9ac7 100644 --- a/completions/zsh/CMakeLists.txt +++ b/completions/zsh/CMakeLists.txt @@ -1,4 +1,4 @@ install( - FILES _sway _swaymsg _swaygrab _swaylock + FILES _sway _swaybar _swaymsg _swaygrab _swaylock DESTINATION share/zsh/site-functions/ ) diff --git a/completions/zsh/_swaybar b/completions/zsh/_swaybar new file mode 100644 index 00000000..2bc38b1f --- /dev/null +++ b/completions/zsh/_swaybar @@ -0,0 +1,20 @@ +#compdef swaybar +#------------ +# Description +# ----------- +# +# Completion script for swaybar in the sway wm (http://swaywm.org) +# +# --------------------------------------------- +# Author +# ------- +# +# * Seth Barberee +# +# ------------------------------- +_arguments -s \ + '(-v --version)'{-v,--version}'[shows version]' \ + '(-h --help)'{-h,--help}'[shows help message]' \ + '(-d --debug)'{-d,--debug}'[Enable debugging]' \ + '(-b --bar_id)'{-b,--bar_id}'[Bar ID for which to get the configuration]' \ + '(-s --socket)'{-s,--socket}'[Connect to sway via socket]'