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]'