mirror of
				https://github.com/Zedfrigg/ironbar.git
				synced 2025-11-03 23:11:54 +01:00 
			
		
		
		
	feat: IPC for get_visible, set_visible, new bar name config option
		
	This commit is contained in:
		
					parent
					
						
							
								2f8443f349
							
						
					
				
			
			
				commit
				
					
						2ccb2633c6
					
				
			
		
					 6 changed files with 93 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -267,21 +267,22 @@ Check [here](config) for an example config file for a fully configured bar in ea
 | 
			
		|||
 | 
			
		||||
The following table lists each of the top-level bar config options:
 | 
			
		||||
 | 
			
		||||
| Name               | Type                                   | Default   | Description                                                                             |
 | 
			
		||||
|--------------------|----------------------------------------|-----------|-----------------------------------------------------------------------------------------|
 | 
			
		||||
| `position`         | `top` or `bottom` or `left` or `right` | `bottom`  | The bar's position on screen.                                                           |
 | 
			
		||||
| `anchor_to_edges`  | `boolean`                              | `false`   | Whether to anchor the bar to the edges of the screen. Setting to false centres the bar. |
 | 
			
		||||
| `height`           | `integer`                              | `42`      | The bar's height in pixels.                                                             |
 | 
			
		||||
| `popup_gap`        | `integer`                              | `5`       | The gap between the bar and popup window.                                               |
 | 
			
		||||
| `margin.top`       | `integer`                              | `0`       | The margin on the top of the bar                                                        |
 | 
			
		||||
| `margin.bottom`    | `integer`                              | `0`       | The margin on the bottom of the bar                                                     |
 | 
			
		||||
| `margin.left`      | `integer`                              | `0`       | The margin on the left of the bar                                                       |
 | 
			
		||||
| `margin.right`     | `integer`                              | `0`       | The margin on the right of the bar                                                      |
 | 
			
		||||
| `icon_theme`       | `string`                               | `null`    | Name of the GTK icon theme to use. Leave blank to use default.                          |
 | 
			
		||||
| `ironvar_defaults` | `Map<string, string>`                  | `{}`      | Map of [ironvar](ironvars) keys against their default values.                           |
 | 
			
		||||
| `start`            | `Module[]`                             | `[]`      | Array of left or top modules.                                                           |
 | 
			
		||||
| `center`           | `Module[]`                             | `[]`      | Array of center modules.                                                                |
 | 
			
		||||
| `end`              | `Module[]`                             | `[]`      | Array of right or bottom modules.                                                       |
 | 
			
		||||
| Name               | Type                                   | Default   | Description                                                                                                     |
 | 
			
		||||
|--------------------|----------------------------------------|-----------|-----------------------------------------------------------------------------------------------------------------|
 | 
			
		||||
| `name`             | `string`                               | `bar-<n>` | A unique identifier for the bar, used for controlling it over IPC. If not set, uses a generated integer suffix. |
 | 
			
		||||
| `position`         | `top` or `bottom` or `left` or `right` | `bottom`  | The bar's position on screen.                                                                                   |
 | 
			
		||||
| `anchor_to_edges`  | `boolean`                              | `false`   | Whether to anchor the bar to the edges of the screen. Setting to false centres the bar.                         |
 | 
			
		||||
| `height`           | `integer`                              | `42`      | The bar's height in pixels.                                                                                     |
 | 
			
		||||
| `popup_gap`        | `integer`                              | `5`       | The gap between the bar and popup window.                                                                       |
 | 
			
		||||
| `margin.top`       | `integer`                              | `0`       | The margin on the top of the bar                                                                                |
 | 
			
		||||
| `margin.bottom`    | `integer`                              | `0`       | The margin on the bottom of the bar                                                                             |
 | 
			
		||||
| `margin.left`      | `integer`                              | `0`       | The margin on the left of the bar                                                                               |
 | 
			
		||||
| `margin.right`     | `integer`                              | `0`       | The margin on the right of the bar                                                                              |
 | 
			
		||||
| `icon_theme`       | `string`                               | `null`    | Name of the GTK icon theme to use. Leave blank to use default.                                                  |
 | 
			
		||||
| `ironvar_defaults` | `Map<string, string>`                  | `{}`      | Map of [ironvar](ironvars) keys against their default values.                                                   |
 | 
			
		||||
| `start`            | `Module[]`                             | `[]`      | Array of left or top modules.                                                                                   |
 | 
			
		||||
| `center`           | `Module[]`                             | `[]`      | Array of center modules.                                                                                        |
 | 
			
		||||
| `end`              | `Module[]`                             | `[]`      | Array of right or bottom modules.                                                                               |
 | 
			
		||||
 | 
			
		||||
### 3.2 Module-level options
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue