mirror of
				https://github.com/Zedfrigg/ironbar.git
				synced 2025-11-03 23:11:54 +01:00 
			
		
		
		
	feat: ability to set bar layer and exclusive zone
This commit is contained in:
		
					parent
					
						
							
								c28de8d902
							
						
					
				
			
			
				commit
				
					
						aa45396062
					
				
			
		
					 7 changed files with 145 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -295,23 +295,25 @@ The following table lists each of the top-level bar config options:
 | 
			
		|||
 | 
			
		||||
The following table lists each of the bar-level bar config options:
 | 
			
		||||
 | 
			
		||||
| 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.                                                             |
 | 
			
		||||
| `start_hidden`    | `boolean`                              | `false`, or `true` if `autohide` set | Whether the bar should be hidden when the application starts. Enabled by default when `autohide` is set.                   |
 | 
			
		||||
| `autohide`        | `integer`                              | `null`                               | The duration in milliseconds before the bar is hidden after the cursor leaves. Leave unset to disable auto-hide behaviour. |
 | 
			
		||||
| `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.                                                                                                |
 | 
			
		||||
| `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                                                                                         |
 | 
			
		||||
| `layer`           | `background` or `bottom` or `top` or `overlay` | `top`                                    | The layer-shell layer to place the bar on.                                                                                 |
 | 
			
		||||
| `exclusive_zone`  | `boolean`                                      | `true` unless `start_hidden` is enabled. | Whether the bar should reserve an exclusive zone around it.                                                                |
 | 
			
		||||
| `popup_gap`       | `integer`                                      | `5`                                      | The gap between the bar and popup window.                                                                                  |
 | 
			
		||||
| `icon_theme`      | `string`                                       | `null`                                   | Name of the GTK icon theme to use. Leave blank to use default.                                                             |
 | 
			
		||||
| `start_hidden`    | `boolean`                                      | `false`, or `true` if `autohide` set     | Whether the bar should be hidden when the application starts. Enabled by default when `autohide` is set.                   |
 | 
			
		||||
| `autohide`        | `integer`                                      | `null`                                   | The duration in milliseconds before the bar is hidden after the cursor leaves. Leave unset to disable auto-hide behaviour. |
 | 
			
		||||
| `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