mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 18:51:04 +02:00
90 lines
1.7 KiB
Markdown
90 lines
1.7 KiB
Markdown
|
Displays the title and/or icon of the currently focused window.
|
||
|
|
||
|

|
||
|
|
||
|
|
||
|
## Configuration
|
||
|
|
||
|
> Type: `focused`
|
||
|
|
||
|
| Name | Type | Default | Description |
|
||
|
|--------------|-----------|---------|---------------------------------|
|
||
|
| `show_icon` | `boolean` | `true` | Whether to show the app's icon |
|
||
|
| `show_title` | `boolean` | `true` | Whether to show the app's title |
|
||
|
| `icon_size` | `integer` | `32` | Size of icon in pixels |
|
||
|
| `icon_theme` | `string` | `null` | GTK icon theme to use |
|
||
|
|
||
|
<details>
|
||
|
<summary>JSON</summary>
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"end": [
|
||
|
{
|
||
|
"type": "focused",
|
||
|
"show_icon": true,
|
||
|
"show_title": true,
|
||
|
"icon_size": 32,
|
||
|
"icon_theme": "Paper"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
|
||
|
```
|
||
|
|
||
|
</details>
|
||
|
|
||
|
<details>
|
||
|
<summary>TOML</summary>
|
||
|
|
||
|
```toml
|
||
|
[[end]]
|
||
|
type = "focused"
|
||
|
show_icon = true
|
||
|
show_title = true
|
||
|
icon_size = 32
|
||
|
icon_theme = "Paper"
|
||
|
```
|
||
|
|
||
|
</details>
|
||
|
|
||
|
<details>
|
||
|
<summary>YAML</summary>
|
||
|
|
||
|
```yaml
|
||
|
end:
|
||
|
- type: "focused"
|
||
|
show_icon: true
|
||
|
show_title: true
|
||
|
icon_size: 32
|
||
|
icon_theme: "Paper"
|
||
|
```
|
||
|
|
||
|
</details>
|
||
|
|
||
|
<details>
|
||
|
<summary>Corn</summary>
|
||
|
|
||
|
```corn
|
||
|
{
|
||
|
end = [
|
||
|
{
|
||
|
type = "focused"
|
||
|
show_icon = true
|
||
|
show_title = true
|
||
|
icon_size = 32
|
||
|
icon_theme = "Paper"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
```
|
||
|
|
||
|
</details>
|
||
|
|
||
|
## Styling
|
||
|
|
||
|
| Selector | Description |
|
||
|
|--------------------------|--------------------|
|
||
|
| `#focused` | Focused widget box |
|
||
|
| `#focused #icon` | App icon |
|
||
|
| `#focused #label` | App name |
|