24 lines
920 B
Nix
24 lines
920 B
Nix
{ config, pkgs, ... }: let
|
|
dpiAware = if config.setting.dpiAware then "yes" else "no";
|
|
fontStep = 1;
|
|
in {
|
|
file = (pkgs.formats.iniWithGlobalSection {}).generate "FootConfig" {
|
|
globalSection = {
|
|
font = "${config.style.font.monospace.name}:size=${toString config.style.font.size.terminal}";
|
|
# font-bold = "${config.style.font.monospace.name}:size=${toString config.style.font.size.terminal}";
|
|
font-italic = "${config.style.font.monospace.name}:size=${toString config.style.font.size.terminal}";
|
|
font-bold-italic = "${config.style.font.monospace.name}:size=${toString config.style.font.size.terminal}";
|
|
dpi-aware = dpiAware;
|
|
font-size-adjustment = fontStep;
|
|
};
|
|
|
|
sections = {
|
|
colors = {
|
|
alpha = config.style.opacity.terminal;
|
|
background = config.style.color.bg.dark;
|
|
foreground = config.style.color.fg.light;
|
|
};
|
|
};
|
|
};
|
|
}
|