mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 00:11:28 +00:00
Merge pull request #478 from SethBarberee/swaymsg-zsh
refactored to include single dash options
This commit is contained in:
commit
a97b325b26
|
@ -12,15 +12,9 @@
|
||||||
# * Seth Barberee <seth.barberee@gmail.com>
|
# * Seth Barberee <seth.barberee@gmail.com>
|
||||||
#
|
#
|
||||||
# -------------------------------------------
|
# -------------------------------------------
|
||||||
|
_arguments -s \
|
||||||
_swaymsg() {
|
'(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \
|
||||||
local -a options
|
'(-h --help)'{-h,--help}'[Shows help message]' \
|
||||||
options=('--version:shows version'
|
'(-q --quiet)'{-q,--quiet}'[Sends the IPC message but does not print the response from sway]' \
|
||||||
'--help:shows help message'
|
'(-s --socket)'{-s,--socket}'[Use the specified socket path. Otherwise, swaymsg uses $SWAYSOCK then $I3SOCK]' \
|
||||||
'--quiet:sends the IPC message but does not print the response from sway'
|
'(-t --type)'{-t,--type}'[Specify the type of IPC message. Tab completion still coming so use the man page instead]'
|
||||||
'--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 "$@"
|
|
||||||
|
|
Loading…
Reference in a new issue