Skip to content

Bindmode

Displays Sway’s current binding mode or Hyprland’s current submap in a label. Nothing is displayed if no binding mode is active.

Configuration

Type: bindmode

NameTypeDefaultDescription
truncate'start' or 'middle' or 'end' or MapnullThe 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'nullThe 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": "bindmode",
"truncate": "start"
}
]
}
TOML
[[end]]
type = "bindmode"
truncate = "start"
YAML
end:
- type: "bindmode"
truncate: "start"
Corn
{
end = [
{
type = "bindmode"
truncate = "start"
}
]
}

Styling

SelectorDescription
.bindmodeBind mode label widget

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