Skip to content

bluetooth ​

Bluetooth connection status with a dropdown for pairing and managing devices.

Each icon is also put in the state it stands for: disabled, disconnected, connected or searching. The default is one animated icon that declares them, so a change animates; an icon without states ignores them.

Add it to your layout with bluetooth:

yaml
bar:
  layout:
    - monitor: "*"
      right: [bluetooth]

General ​

FieldTypeDefaultDescription
disabled-iconstring"ld-bluetooth-animated-symbolic"Icon when Bluetooth is disabled or unavailable.
disconnected-iconstring"ld-bluetooth-animated-symbolic"Icon when Bluetooth is on but no devices connected.
connected-iconstring"ld-bluetooth-animated-symbolic"Icon when devices are connected.
searching-iconstring"ld-bluetooth-animated-symbolic"Icon when scanning for devices.
border-showboolfalseDisplay border around button.
icon-showbooltrueDisplay module icon.
tooltipbooltrueShow the module's state in a tooltip on hover.
labelLabelMode"hover"When the label beside the icon shows the connected device name or count; hover grows it out while the pointer is on the module.
label-max-lengthu3215Max label characters before truncation with ellipsis. Set to 0 to disable.

Colors ​

FieldTypeDefaultDescription
border-colorColorValue"blue"Border color token.
icon-colorColorValue"auto"Icon foreground color. Auto selects based on variant for contrast.
icon-bg-colorColorValue"blue"Icon container background color token.
label-colorColorValue"fg-default"Label text color token.
button-bg-colorColorValue"bg-surface-elevated"Button background color token.

Click actions ​

FieldTypeDefaultDescription
left-clickClickAction"dropdown:bluetooth"Action on left click.
right-clickClickAction""Action on right click.
middle-clickClickAction""Action on middle click.
scroll-upClickAction""Action on scroll up.
scroll-downClickAction""Action on scroll down.

Default configuration ​

yaml
modules:
  bluetooth:
    disabled-icon: ld-bluetooth-animated-symbolic
    disconnected-icon: ld-bluetooth-animated-symbolic
    connected-icon: ld-bluetooth-animated-symbolic
    searching-icon: ld-bluetooth-animated-symbolic
    border-show: false
    border-color: blue
    icon-show: true
    tooltip: true
    icon-color: auto
    icon-bg-color: blue
    label: hover
    label-color: fg-default
    label-max-length: 15
    button-bg-color: bg-surface-elevated
    left-click: dropdown:bluetooth
    right-click: ""
    middle-click: ""
    scroll-up: ""
    scroll-down: ""

Released under the MIT License.