mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
added basic zsh shell completion for sway, swaybg, and swaygrab
This commit is contained in:
parent
fe241126bb
commit
fcd0071555
5 changed files with 90 additions and 1 deletions
26
completions/zsh/_swaymsg
Normal file
26
completions/zsh/_swaymsg
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#compdef swaymsg
|
||||
#-----------------
|
||||
# Description
|
||||
# -----------
|
||||
#
|
||||
# Completion script for swaymsg in sway wm (http://swaywm.org)
|
||||
#
|
||||
# ------------------------------------------------------
|
||||
# Author
|
||||
# --------
|
||||
#
|
||||
# * Seth Barberee <seth.barberee@gmail.com>
|
||||
#
|
||||
# -------------------------------------------
|
||||
|
||||
_swaymsg() {
|
||||
local -a options
|
||||
options=('--version:shows version'
|
||||
'--help:shows help message'
|
||||
'--quiet:sends the IPC message but does not print the response from sway'
|
||||
'--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…
Add table
Add a link
Reference in a new issue