i3, sway: description and example for font options (#1980)
Adds an example to the root fonts submodule because the documentation doesn't know how to handle `type = with types; either (listOf str) fontOptions;`
This commit is contained in:
parent
9ffb206050
commit
64c5228c08
|
@ -95,6 +95,14 @@ let
|
||||||
fonts = mkOption {
|
fonts = mkOption {
|
||||||
type = with types; either (listOf str) fontOptions;
|
type = with types; either (listOf str) fontOptions;
|
||||||
default = { };
|
default = { };
|
||||||
|
example = literalExample ''
|
||||||
|
{
|
||||||
|
names = [ "DejaVu Sans Mono" "FontAwesome5Free" ];
|
||||||
|
style = "Bold Semi-Condensed";
|
||||||
|
size = 11.0;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
description = "Font configuration for this bar.";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
|
@ -339,6 +347,14 @@ in {
|
||||||
fonts = mkOption {
|
fonts = mkOption {
|
||||||
type = with types; either (listOf str) fontOptions;
|
type = with types; either (listOf str) fontOptions;
|
||||||
default = { };
|
default = { };
|
||||||
|
example = literalExample ''
|
||||||
|
{
|
||||||
|
names = [ "DejaVu Sans Mono" "FontAwesome5Free" ];
|
||||||
|
style = "Bold Semi-Condensed";
|
||||||
|
size = 11.0;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
description = "Font configuration for window titles, nagbar...";
|
||||||
};
|
};
|
||||||
|
|
||||||
window = mkOption {
|
window = mkOption {
|
||||||
|
|
Loading…
Reference in a new issue