2020-10-20 09:20:58 +00:00
|
|
|
waybar-sway-language(5)
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
waybar - sway language module
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
The *language* module displays the current keyboard layout in Sway
|
|
|
|
|
|
|
|
# CONFIGURATION
|
|
|
|
|
|
|
|
Addressed by *sway/language*
|
|
|
|
|
|
|
|
*format*: ++
|
|
|
|
typeof: string ++
|
|
|
|
default: {} ++
|
2021-07-13 01:33:12 +00:00
|
|
|
The format, how layout should be displayed.
|
2020-10-20 09:20:58 +00:00
|
|
|
|
2024-02-22 04:22:35 +00:00
|
|
|
*hide-single-layout*: ++
|
|
|
|
typeof: bool ++
|
|
|
|
default: false ++
|
|
|
|
Defines visibility of the module if a single layout is configured
|
|
|
|
|
2021-07-24 14:26:49 +00:00
|
|
|
*tooltip-format*: ++
|
2021-07-24 14:24:37 +00:00
|
|
|
typeof: string ++
|
|
|
|
default: {} ++
|
|
|
|
The format, how layout should be displayed in tooltip.
|
|
|
|
|
2020-10-20 09:20:58 +00:00
|
|
|
*tooltip*: ++
|
|
|
|
typeof: bool ++
|
|
|
|
default: true ++
|
|
|
|
Option to disable tooltip on hover.
|
|
|
|
|
2024-05-28 18:42:12 +00:00
|
|
|
*menu*: ++
|
|
|
|
typeof: string ++
|
|
|
|
Action that popups the menu.
|
|
|
|
|
|
|
|
*menu-file*: ++
|
|
|
|
typeof: string ++
|
|
|
|
Location of the menu descriptor file. There need to be an element of type
|
|
|
|
GtkMenu with id *menu*
|
|
|
|
|
|
|
|
*menu-actions*: ++
|
|
|
|
typeof: array ++
|
|
|
|
The actions corresponding to the buttons of the menu.
|
|
|
|
|
2021-07-13 01:33:12 +00:00
|
|
|
# FORMAT REPLACEMENTS
|
|
|
|
|
2021-08-17 02:28:41 +00:00
|
|
|
*{short}*: Short name of layout (e.g. "us"). Equals to {}.
|
|
|
|
|
|
|
|
*{shortDescription}*: Short description of layout (e.g. "en").
|
2021-07-13 01:33:12 +00:00
|
|
|
|
|
|
|
*{long}*: Long name of layout (e.g. "English (Dvorak)").
|
|
|
|
|
2021-08-17 02:28:41 +00:00
|
|
|
*{variant}*: Variant of layout (e.g. "dvorak").
|
2021-07-13 01:33:12 +00:00
|
|
|
|
2021-08-25 20:18:56 +00:00
|
|
|
*{flag}*: Country flag of layout.
|
|
|
|
|
2020-10-20 09:20:58 +00:00
|
|
|
# EXAMPLES
|
|
|
|
|
|
|
|
```
|
|
|
|
"sway/language": {
|
2023-07-30 15:33:02 +00:00
|
|
|
"format": "{}",
|
2021-07-13 01:33:12 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"sway/language": {
|
2023-07-30 15:33:02 +00:00
|
|
|
"format": "{short} {variant}",
|
2020-10-20 09:20:58 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
# STYLE
|
|
|
|
|
|
|
|
- *#language*
|