From b8a68b8085297d7a715e7be0ce1d1087cb8ebcd4 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 18 Aug 2022 19:32:26 +0300 Subject: [PATCH 1/4] man documentation for hl language module --- man/waybar-hyprland-language.5.scd | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 man/waybar-hyprland-language.5.scd diff --git a/man/waybar-hyprland-language.5.scd b/man/waybar-hyprland-language.5.scd new file mode 100644 index 0000000..cdd0a93 --- /dev/null +++ b/man/waybar-hyprland-language.5.scd @@ -0,0 +1,36 @@ +waybar-hyprland-language(5) + +# NAME + +waybar - hyprland language module + +# DESCRIPTION + +The *language* module displays the currently selected language. + +# CONFIGURATION + +Addressed by *hyprland/language* + +*format*: ++ + typeof: string ++ + default: {} ++ + The format, how information should be displayed. On {} the currently selected language is displayed. + +*keyboard-name*: ++ + typeof: string ++ + Specifies which keyboard to use from *hyprctl devices* output. Using the option that begins with "AT Translated set..." is recommended. + + +# EXAMPLES + +``` +"hyprland/language": { + "format": "Lang: {}" + "keyboard-name": "AT Translated Set 2 keyboard" +} +``` + +# STYLE + +- *#language* From 97f0d6fa4285249ed236eb78d87a8f8b43dd2d11 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 18 Aug 2022 19:35:40 +0300 Subject: [PATCH 2/4] remove redundant formatting --- man/waybar-hyprland-language.5.scd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/waybar-hyprland-language.5.scd b/man/waybar-hyprland-language.5.scd index cdd0a93..19a150c 100644 --- a/man/waybar-hyprland-language.5.scd +++ b/man/waybar-hyprland-language.5.scd @@ -19,7 +19,7 @@ Addressed by *hyprland/language* *keyboard-name*: ++ typeof: string ++ - Specifies which keyboard to use from *hyprctl devices* output. Using the option that begins with "AT Translated set..." is recommended. + Specifies which keyboard to use from hyprctl devices output. Using the option that begins with "AT Translated set..." is recommended. # EXAMPLES From b181cd04b6da08e1210de2926282b6be2ec3434e Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 18 Aug 2022 20:11:44 +0300 Subject: [PATCH 3/4] update man docs for format- option --- man/waybar-hyprland-language.5.scd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/man/waybar-hyprland-language.5.scd b/man/waybar-hyprland-language.5.scd index 19a150c..d3b3177 100644 --- a/man/waybar-hyprland-language.5.scd +++ b/man/waybar-hyprland-language.5.scd @@ -17,16 +17,23 @@ Addressed by *hyprland/language* default: {} ++ The format, how information should be displayed. On {} the currently selected language is displayed. +*format-* ++ + typeof: string++ + Provide an alternative name to display per language. + *keyboard-name*: ++ typeof: string ++ Specifies which keyboard to use from hyprctl devices output. Using the option that begins with "AT Translated set..." is recommended. + # EXAMPLES ``` "hyprland/language": { "format": "Lang: {}" + "format-us": "AMERICA, HELL YEAH!" + "format-tr": "As bayrakları" "keyboard-name": "AT Translated Set 2 keyboard" } ``` From 40bc2e96db6a8708083a06134f45476d023d8d16 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 18 Aug 2022 20:21:14 +0300 Subject: [PATCH 4/4] wording --- man/waybar-hyprland-language.5.scd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/man/waybar-hyprland-language.5.scd b/man/waybar-hyprland-language.5.scd index d3b3177..cb16995 100644 --- a/man/waybar-hyprland-language.5.scd +++ b/man/waybar-hyprland-language.5.scd @@ -19,7 +19,7 @@ Addressed by *hyprland/language* *format-* ++ typeof: string++ - Provide an alternative name to display per language. + Provide an alternative name to display per language where is the language of your choosing. Can be passed multiple times with multiple languages as shown by the example below. *keyboard-name*: ++ typeof: string ++ @@ -32,8 +32,8 @@ Addressed by *hyprland/language* ``` "hyprland/language": { "format": "Lang: {}" - "format-us": "AMERICA, HELL YEAH!" - "format-tr": "As bayrakları" + "format-us": "AMERICA, HELL YEAH!" // For American English + "format-tr": "As bayrakları" // For Turkish "keyboard-name": "AT Translated Set 2 keyboard" } ```