added swaybar completion

This commit is contained in:
Seth Barberee 2016-05-12 23:18:16 -05:00
parent c7c2bf542a
commit fc58822bef
No known key found for this signature in database
GPG key ID: 2CECBE3A50C692DD
2 changed files with 21 additions and 1 deletions

View file

@ -1,4 +1,4 @@
install( install(
FILES _sway _swaymsg _swaygrab _swaylock FILES _sway _swaybar _swaymsg _swaygrab _swaylock
DESTINATION share/zsh/site-functions/ DESTINATION share/zsh/site-functions/
) )

20
completions/zsh/_swaybar Normal file
View file

@ -0,0 +1,20 @@
#compdef swaybar
#------------
# Description
# -----------
#
# Completion script for swaybar in the sway wm (http://swaywm.org)
#
# ---------------------------------------------
# Author
# -------
#
# * Seth Barberee <seth.barberee@gmail.com>
#
# -------------------------------
_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]'