Skip to content
WuerfelDev edited this page Oct 6, 2021 · 7 revisions

The sway/language module displays the current keyboard layout in Sway.

Config

option typeof default description
format string {} The format, how layout should be displayed.
tooltip-format string {} The format, how layout should be displayed in tooltip.
tooltip bool true Option to disable tooltip on hovever.

Format replacements:

string replacement
{} The same as {short}.
{short} Short name of layout (e.g. "us").
{shortDescription} Short description of layout (e.g. "en").
{long} Long name of layout (e.g. "English (Dvorak)").
{variant} Variant of layout (e.g. "dvorak")..

Example:

"sway/language": {
    "format": "{}",
},

"sway/language": {
    "format": "{short} {variant}",
}

Style

#language

Clone this wiki locally