mirror of
https://github.com/swaywm/sway.git
synced 2025-11-27 06:59:53 -05: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
28
completions/zsh/_swaygrab
Normal file
28
completions/zsh/_swaygrab
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#compdef swaygrab
|
||||
#-----------------
|
||||
# Description
|
||||
# -----------
|
||||
#
|
||||
# Completion script for swaygrab in the sway wm (http://swaywm.org)
|
||||
#
|
||||
# -----------------------------------------------------
|
||||
# Author
|
||||
# ------
|
||||
#
|
||||
# * Seth Barberee <seth.barberee@gmail.com>
|
||||
#
|
||||
# ------------------------------------------
|
||||
|
||||
_swaygrab() {
|
||||
local -a options
|
||||
options=('--version:shows version'
|
||||
'--help:shows help message'
|
||||
'--capture:Captures multiple frames as video as passes into ffmpeg until SIGTERM (ctrl+c) is sent to swaygrab'
|
||||
'--output:Use the specified output. If no output is defined, the currently focused output in sway is used'
|
||||
'--socket:Use the specified socket path. Otherwise, swayuses $SWAYSOCK then $I3SOCK'
|
||||
'--rate:Specify a framerate (in fps). Used in combination with -c. Default is 30 and must be an integer'
|
||||
'--raw:Instead of ImageMagick or ffmpeg, dump raw rgba data to stdout'
|
||||
)
|
||||
_describe 'values' options
|
||||
}
|
||||
_swaygrab "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue