yambar-modules-sway-xkb(5)

yambar-modules-sway-xkb5

This module monitor input devices' active xkb layout

Overview

This module uses Sway extensions to the I3 IPC API to monitor input devices' active XKB layout. As such, it requires Sway to be running.

Note that the content configuration option is a template; sway-xkb will instantiate a particle list, where each item is instantiated from this template, and represents an input device.

Tags

NameTypeDescription
idstringInput device identifier
layoutstringThe input device's currently active XKB layout

Configuration

NameTypeReqDescription
identifierslist of stringsyesIdentifiers of input devices to monitor. Use swaymsg -t get_inputs to see available devices.
contentparticleyesA particle template; each existing input device will be instantiated with this template.
left-spacingintnoSpace, in pixels, in the left side of each rendered input device
right-spacingintnoSpace, in pixels, on the right side of each rendered input device
spacingintnoShort-hand for setting both left-spacing and right-spacing

Examples

bar:
  left:
    - sway-xkb:
        identifiers:
          - 1523:7:HID_05f3:0007
          - 7247:2:USB_USB_Keykoard
        spacing: 5
        content: {string: {text: "{id}: {layout}"}}

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

From yambar 1.11.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.