nix/user/common/foot/default.nix

23 lines
831 B
Nix
Raw Normal View History

2024-06-18 11:07:11 +03:00
{ style, setting, lib, ... }: let
2024-04-29 02:03:44 +03:00
dpiaware = if setting.foot.font.dpi then "yes" else "no";
in {
2024-06-18 11:07:11 +03:00
text = lib.generators.toINIWithGlobalSection {} {
globalSection = {
font = "${style.font.monospace.name}:size=${toString(style.font.size.terminal)}";
# font-bold = "${style.font.monospace.name}:size=${toString(style.font.size.terminal)}";
font-italic = "${style.font.monospace.name}:size=${toString(style.font.size.terminal)}";
font-bold-italic = "${style.font.monospace.name}:size=${toString(style.font.size.terminal)}";
dpi-aware = dpiaware;
font-size-adjustment = setting.foot.font.step;
};
2024-04-03 02:05:36 +03:00
2024-06-18 11:07:11 +03:00
sections = {
colors = {
alpha = style.opacity.terminal;
background = style.color.bg.dark;
foreground = style.color.fg.light;
};
};
};
2024-04-03 02:05:36 +03:00
}