Skip to content

keybind-mode ​

Current keybind-mode indicator for modal compositors.

Add it to your layout with keybind-mode:

yaml
bar:
  layout:
    - monitor: "*"
      right: [keybind-mode]

General ​

FieldTypeDefaultDescription
formatstring"{{ mode }}"Format string for the label.
icon-namestring"ld-layers-symbolic"Symbolic icon name.
auto-hideboolfalseAutomatically hide module when no mode is active.
border-showboolfalseDisplay border around button.
icon-showbooltrueDisplay module icon.
label-showbooltrueDisplay text label.
label-max-lengthu320Max label characters before truncation with ellipsis. Set to 0 to disable.
More about format

Placeholders ​

  • {{ mode }} - Current keybind mode name (shows "default" when inactive)

Examples ​

  • "{{ mode }}" - "resize"
  • "Mode: {{ mode }}" - "Mode: resize"
  • "[{{ mode }}]" - "[resize]"

Colors ​

FieldTypeDefaultDescription
border-colorColorValue"blue"Border color token.
icon-colorColorValue"auto"Icon foreground color.
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""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:
  keybind-mode:
    format: '{{ mode }}'
    icon-name: ld-layers-symbolic
    auto-hide: false
    border-show: false
    border-color: blue
    icon-show: true
    icon-color: auto
    icon-bg-color: blue
    label-show: true
    label-color: fg-default
    label-max-length: 0
    button-bg-color: bg-surface-elevated
    left-click: ""
    right-click: ""
    middle-click: ""
    scroll-up: ""
    scroll-down: ""

Released under the MIT License.