mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			463 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			463 B
		
	
	
	
		
			Text
		
	
	
	
	
	
#compdef swaybar
 | 
						|
#
 | 
						|
# Completion script for swaybar
 | 
						|
#
 | 
						|
 | 
						|
local bars=($(swaymsg -t get_bar_config | jq -r '.[]'))
 | 
						|
 | 
						|
_arguments -s \
 | 
						|
	'(-h --help)'{-h,--help}'[Show help message and quit]' \
 | 
						|
	'(-v --version)'{-v,--version}'[Show version and quit]' \
 | 
						|
	'(-s --socket)'{-s,--socket}'[Connect to sway via socket]:filename:_files' \
 | 
						|
	'(-b --bar_id)'{-b,--bar-id}'[Bar ID for which to get the configuration]:filename:($bars)'\
 | 
						|
	'(-d --debug)'{-d,--debug}'[Enable debugging]'
 |