mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
zsh: update completions
This commit is contained in:
parent
5bf4daf263
commit
cf00fb2ccc
5 changed files with 77 additions and 14 deletions
13
completions/zsh/_swaybar
Normal file
13
completions/zsh/_swaybar
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#compdef swaybar
|
||||
#
|
||||
# Completion script for swaybar
|
||||
#
|
||||
|
||||
local bars=($(swaymsg -t get_bar_config | sed -e '/^\[/,/\]$/{//d;s/^ *"\(.*\)",\?.*$/\1/}'))
|
||||
|
||||
_arguments -s \
|
||||
'(-h --help)'{-h,--help}'[Show help message and quit]' \
|
||||
'(-v --version)'{-v,--version}'[Show version and quit]' \
|
||||
'(-s --socket)'{-s,--socket}'[Connect to sway via socket]:filename:_files' \
|
||||
'(-b --bar_id)'{-b,--bar-id}'[Bar ID for which to get the configuration]:filename:($bars)'\
|
||||
'(-d --debug)'{-d,--debug}'[Enable debugging]'
|
||||
Loading…
Add table
Add a link
Reference in a new issue