mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
Add missing swaymsg completions
The `-m/--monitor` option was missing from the bash and fish completions. The `subscribe` IPC message type was missing from the bash, fish, and zsh completions. Signed-off-by: Peter Grayson <pete@jpgrayson.net>
This commit is contained in:
parent
b7fe5097e9
commit
1a9145e409
|
@ -17,10 +17,12 @@ _swaymsg()
|
||||||
'get_binding_modes'
|
'get_binding_modes'
|
||||||
'get_config'
|
'get_config'
|
||||||
'send_tick'
|
'send_tick'
|
||||||
|
'subscribe'
|
||||||
)
|
)
|
||||||
|
|
||||||
short=(
|
short=(
|
||||||
-h
|
-h
|
||||||
|
-m
|
||||||
-p
|
-p
|
||||||
-q
|
-q
|
||||||
-r
|
-r
|
||||||
|
@ -31,6 +33,7 @@ _swaymsg()
|
||||||
|
|
||||||
long=(
|
long=(
|
||||||
--help
|
--help
|
||||||
|
--monitor
|
||||||
--pretty
|
--pretty
|
||||||
--quiet
|
--quiet
|
||||||
--raw
|
--raw
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
complete -f -c swaymsg
|
complete -f -c swaymsg
|
||||||
complete -c swaymsg -s h -l help --description "Show help message and quit."
|
complete -c swaymsg -s h -l help --description "Show help message and quit."
|
||||||
|
complete -c swaymsg -s m -l monitor --description "Monitor subscribed events until killed."
|
||||||
complete -c swaymsg -s p -l pretty --description "Use pretty output even when not using a tty."
|
complete -c swaymsg -s p -l pretty --description "Use pretty output even when not using a tty."
|
||||||
complete -c swaymsg -s q -l quiet --description "Sends the IPC message but does not print the response from sway."
|
complete -c swaymsg -s q -l quiet --description "Sends the IPC message but does not print the response from sway."
|
||||||
complete -c swaymsg -s r -l raw --description "Use raw output even if using tty."
|
complete -c swaymsg -s r -l raw --description "Use raw output even if using tty."
|
||||||
|
@ -20,3 +21,4 @@ complete -c swaymsg -s t -l type -fra 'get_binding_modes' --description "Gets a
|
||||||
complete -c swaymsg -s t -l type -fra 'get_config' --description "Gets a JSON-encoded copy of the current configuration."
|
complete -c swaymsg -s t -l type -fra 'get_config' --description "Gets a JSON-encoded copy of the current configuration."
|
||||||
complete -c swaymsg -s t -l type -fra 'get_seats' --description "Gets a JSON-encoded list of all seats, its properties and all assigned devices."
|
complete -c swaymsg -s t -l type -fra 'get_seats' --description "Gets a JSON-encoded list of all seats, its properties and all assigned devices."
|
||||||
complete -c swaymsg -s t -l type -fra 'send_tick' --description "Sends a tick event to all subscribed clients."
|
complete -c swaymsg -s t -l type -fra 'send_tick' --description "Sends a tick event to all subscribed clients."
|
||||||
|
complete -c swaymsg -s t -l type -fra 'subscribe' --description "Subscribe to a list of event types."
|
||||||
|
|
|
@ -25,6 +25,7 @@ types=(
|
||||||
'get_binding_modes'
|
'get_binding_modes'
|
||||||
'get_config'
|
'get_config'
|
||||||
'send_tick'
|
'send_tick'
|
||||||
|
'subscribe'
|
||||||
)
|
)
|
||||||
|
|
||||||
_arguments -s \
|
_arguments -s \
|
||||||
|
|
Loading…
Reference in a new issue