nix/home/config/foot/default.nix

26 lines
1 KiB
Nix
Raw Normal View History

2024-06-25 04:04:39 +03:00
{ config, pkgs, ... }: let
2024-07-06 06:27:56 +03:00
dpiAware = if config.setting.dpiAware then "yes" else "no";
borderSize = toString config.style.window.border;
fontStep = 1;
in {
2024-06-22 23:34:03 +03:00
file = (pkgs.formats.iniWithGlobalSection {}).generate "FootConfig" {
2024-06-18 11:07:11 +03:00
globalSection = {
2024-06-29 18:05:39 +03:00
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}";
2024-06-23 00:40:52 +03:00
dpi-aware = dpiAware;
2024-06-23 04:55:57 +03:00
font-size-adjustment = fontStep;
2024-07-06 06:27:56 +03:00
pad = "${borderSize}x${borderSize} center";
2024-06-18 11:07:11 +03:00
};
2024-04-03 02:05:36 +03:00
2024-06-18 11:07:11 +03:00
sections = {
colors = {
2024-06-29 18:05:39 +03:00
alpha = config.style.opacity.terminal;
background = config.style.color.bg.dark;
foreground = config.style.color.fg.light;
2024-06-18 11:07:11 +03:00
};
};
};
2024-04-03 02:05:36 +03:00
}