Skip to content

Focused

Displays the title and/or icon of the currently focused window.

Screenshot of focused widget, showing this page open on firefox

Configuration

Type: focused

NameTypeDefaultDescription
show_iconbooleantrueWhether to show the app’s icon.
show_titlebooleantrueWhether to show the app’s title.
icon_sizeinteger32Size of icon in pixels.
truncate'start' or 'middle' or 'end' or off or MapoffThe location of the ellipses and where to truncate text from. Leave null to avoid truncating. Use the long-hand Map version if specifying a length.
truncate.mode'start' or 'middle' or 'end' or offoffThe location of the ellipses and where to truncate text from. Leave null to avoid truncating.
truncate.lengthintegernullThe fixed width (in chars) of the widget. Leave blank to let GTK automatically handle.
truncate.max_lengthintegernullThe maximum number of characters before truncating. Leave blank to let GTK automatically handle.
JSON
{
"end": [
{
"type": "focused",
"show_icon": true,
"show_title": true,
"icon_size": 32,
"truncate": "end"
}
]
}
TOML
[[end]]
type = "focused"
show_icon = true
show_title = true
icon_size = 32
truncate = "end"
YAML
end:
- type: "focused"
show_icon: true
show_title: true
icon_size: 32
truncate: "end"
Corn
{
end = [
{
type = "focused"
show_icon = true
show_title = true
icon_size = 32
truncate = "end"
}
]
}

Styling

SelectorDescription
.focusedFocused widget box
.focused .iconApp icon
.focused .labelApp name

For more information on styling, please see the styling guide.