Skip to content

Commit

Permalink
updated man for hyprland/language
Browse files Browse the repository at this point in the history
  • Loading branch information
vpcano committed Oct 19, 2024
1 parent 550d108 commit cb0ecfb
Showing 1 changed file with 38 additions and 3 deletions.
41 changes: 38 additions & 3 deletions man/waybar-hyprland-language.5.scd
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ Addressed by *hyprland/language*
typeof: array ++
The actions corresponding to the buttons of the menu.

*tooltip*: ++
typeof: boolean ++
default: true ++
Enables or disables the tooltip for the language module. By default, the tooltip is enabled. Set to *false* to disable.

*tooltip-format*: ++
typeof: string ++
default: {long} ++
Specifies the format of the tooltip when it is enabled. It follows the same format replacement rules as the *format* key.

*tooltip-format-<lang>*: ++
typeof: string ++
Allows specifying a different tooltip format for each language. The *<lang>* should be replaced with the language code. This can be used to provide a custom tooltip for each language.

# FORMAT REPLACEMENTS

Expand All @@ -54,13 +67,35 @@ Addressed by *hyprland/language*

```
"hyprland/language": {
"format": "Lang: {long}"
"format-en": "AMERICA, HELL YEAH!"
"format-tr": "As bayrakları"
"format": "Lang: {long}",
"format-en": "AMERICA, HELL YEAH!",
"format-tr": "As bayrakları",
"keyboard-name": "at-translated-set-2-keyboard"
}
```

```
"hyprland/language": {
"format": "{}",
"format-en": "US",
"format-es": "ES",
"tooltip": true,
"tooltip-format": "{long}"
}
```

```
"hyprland/language": {
"format": "{}",
"format-en": "US",
"format-es": "ES",
"tooltip": true,
"tooltip-format": "{}",
"tooltip-format-es": "{Español}",
"tooltip-format-en": "{English (american)}"
}
```

# STYLE

- *#language*

0 comments on commit cb0ecfb

Please sign in to comment.