mirror of
				https://github.com/Alexays/Waybar.git
				synced 2025-10-29 19:46:32 +00:00 
			
		
		
		
	This Patch allows the stretching of modules-{left,center,right} as well
add a "expand" flag to AModule. This allows one module to consume the
leftover space.
To allow the left or right modules to fully consume the center, the
changes also include a way to remove the center box (center_)
altogether.
		
	
			
		
			
				
	
	
		
			80 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			80 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| waybar-sway-language(5)
 | |
| 
 | |
| # NAME
 | |
| 
 | |
| waybar - sway language module
 | |
| 
 | |
| # DESCRIPTION
 | |
| 
 | |
| The *language* module displays the current keyboard layout in Sway
 | |
| 
 | |
| # CONFIGURATION
 | |
| 
 | |
| Addressed by *sway/language*
 | |
| 
 | |
| *format*: ++
 | |
| 	typeof: string ++
 | |
| 	default: {} ++
 | |
| 	The format, how layout should be displayed.
 | |
| 
 | |
| *hide-single-layout*: ++
 | |
| 	typeof: bool ++
 | |
| 	default: false ++
 | |
| 	Defines visibility of the module if a single layout is configured
 | |
| 
 | |
| *tooltip-format*: ++
 | |
| 	typeof: string ++
 | |
| 	default: {} ++
 | |
| 	The format, how layout should be displayed in tooltip.
 | |
| 
 | |
| *tooltip*: ++
 | |
| 	typeof: bool ++
 | |
| 	default: true ++
 | |
| 	Option to disable tooltip on hover.
 | |
| 
 | |
| *menu*: ++
 | |
| 	typeof: string ++
 | |
| 	Action that popups the menu.
 | |
| 
 | |
| *menu-file*: ++
 | |
| 	typeof: string ++
 | |
| 	Location of the menu descriptor file. There need to be an element of type
 | |
| 	GtkMenu with id *menu*
 | |
| 
 | |
| *menu-actions*: ++
 | |
| 	typeof: array ++
 | |
| 	The actions corresponding to the buttons of the menu.
 | |
| 
 | |
| *expand*: ++
 | |
| 	typeof: bool ++
 | |
| 	default: false ++
 | |
| 	Enables this module to consume all left over space dynamically.
 | |
| 
 | |
| # FORMAT REPLACEMENTS
 | |
| 
 | |
| *{short}*: Short name of layout (e.g. "us"). Equals to {}.
 | |
| 
 | |
| *{shortDescription}*: Short description of layout (e.g. "en").
 | |
| 
 | |
| *{long}*: Long name of layout (e.g. "English (Dvorak)").
 | |
| 
 | |
| *{variant}*: Variant of layout (e.g. "dvorak").
 | |
| 
 | |
| *{flag}*: Country flag of layout.
 | |
| 
 | |
| # EXAMPLES
 | |
| 
 | |
| ```
 | |
| "sway/language": {
 | |
| 	"format": "{}",
 | |
| },
 | |
| 
 | |
| "sway/language": {
 | |
| 	"format": "{short} {variant}",
 | |
| }
 | |
| ```
 | |
| 
 | |
| # STYLE
 | |
| 
 | |
| - *#language*
 |