mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			825 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			825 B
		
	
	
	
		
			Text
		
	
	
	
	
	
#compdef swaymsg
 | 
						|
#-----------------
 | 
						|
# Description
 | 
						|
# -----------
 | 
						|
#
 | 
						|
# Completion script for swaymsg in sway wm (http://swaywm.org)
 | 
						|
#
 | 
						|
# ------------------------------------------------------
 | 
						|
# Author
 | 
						|
# --------
 | 
						|
#
 | 
						|
#  * Seth Barberee <seth.barberee@gmail.com>
 | 
						|
#
 | 
						|
#  -------------------------------------------
 | 
						|
 | 
						|
types=(
 | 
						|
'get_workspaces'
 | 
						|
'get_inputs'
 | 
						|
'get_outputs'
 | 
						|
'get_tree'
 | 
						|
'get_marks'
 | 
						|
'get_bar_config'
 | 
						|
'get_version'
 | 
						|
)
 | 
						|
 | 
						|
_arguments -s \
 | 
						|
	'(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \
 | 
						|
	'(-h --help)'{-h,--help}'[Shows help message]' \
 | 
						|
	'(-q --quiet)'{-q,--quiet}'[Sends the IPC message but does not print the response from sway]' \
 | 
						|
	'(-s --socket)'{-s,--socket}'[Use the specified socket path.]:files:_files' \
 | 
						|
	'(-t --type)'{-t,--type}'[Specify the type of IPC message.]:type:{_describe "type" types}'
 |