yambar-modules-xkb5
This module monitors the currently active xkb keyboard layout
Overview
This module monitors the currently active XKB keyboard layout and lock-key states.
Note: this module is X11 only. It does not work in Wayland.
Tags
| Name | Type | Description |
| name | string | Name of currently selected layout, long version (e.g. "English (US)") |
| symbol | string | Name of currently selected layout, short version (e.g. "us") |
| caps_lock | bool | True if CapsLock is enabled |
| num_lock | bool | True if NumLock is enabled |
| scroll_lock | bool | True if ScrollLock is enabled |
Configuration
No additional attributes supported, only the generic ones (see GENERIC CONFIGURATION in yambar-modules(5))
Examples
bar:
left:
- xkb:
content:
string: {text: "{symbol}"}
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.