Skip to content

Clipboard

Shows recent clipboard items, allowing you to switch between them to re-copy previous values. Clicking the icon button opens the popup containing all functionality.

Supports plain text and images.

Screenshot of clipboard popup open, with two textual values and an image copied. Several other unrelated widgets are visible on the bar.

Configuration

Type: clipboard

NameTypeDefaultDescription
iconstring or image󰨸Icon to show on the widget button.
icon_sizeinteger32Size to render icon at (image icons only).
max_itemsinteger10Maximum number of items to show in the popup.
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": "clipboard",
"max_items": 3,
"truncate": {
"mode": "end",
"length": 50
}
}
}
TOML
[[end]]
type = "clipboard"
max_items = 3
[end.truncate]
mode = "end"
length = 50
YAML
end:
- type: 'clipboard'
max_items: 3
truncate:
mode: 'end'
length: 50
Corn
{
end = [ {
type = "clipboard"
max_items = 3
truncate.mode = "end"
truncate.length = 50
} ]
}

Styling

SelectorDescription
.clipboardClipboard widget.
.clipboard .btnClipboard widget button.
.clipboard .btn .iconClipboard widget button icon (any type).
.clipboard .btn .text-iconClipboard widget button icon (textual only).
.clipboard .btn .imageClipboard widget button icon (image only).
.popup-clipboardClipboard popup box.
.popup-clipboard .itemClipboard row item inside the popup.
.popup-clipboard .item .btnClipboard row item radio button.
.popup-clipboard .item .btn.textClipboard row item radio button (text values only).
.popup-clipboard .item .btn.imageClipboard row item radio button (image values only).
.popup-clipboard .item .btn-removeClipboard row item remove button.

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