{ nixosConfig, ... }: with nixosConfig.nix-rice.lib; let inherit (nixosConfig.nix-rice) rice; strPalette = palette.toRGBShortHex { inherit (rice.colorPalette) background foreground color0 color1 color2 color3 color4 color5 color6 color7 color8 color9 color10 color11 color12 color13 color14 color15 ; }; in { programs.foot = { enable = true; settings = { main = { term = "xterm-256color"; font = "${rice.font.monospace.fc}:size=${toString rice.font.monospace.size}"; dpi-aware = "yes"; }; mouse = { hide-when-typing = "yes"; }; colors = { alpha = rice.opacity; inherit (strPalette) background foreground; # Normal/regular colors (color palette 0-7) regular0 = strPalette.color0; # black regular1 = strPalette.color1; # red regular2 = strPalette.color2; # green regular3 = strPalette.color3; # yellow regular4 = strPalette.color4; # blue regular5 = strPalette.color5; # magenta regular6 = strPalette.color6; # cyan regular7 = strPalette.color7; # white ## Bright colors (color palette 8-15) bright0 = strPalette.color8; # bright black bright1 = strPalette.color9; # bright red bright2 = strPalette.color10; # bright green bright3 = strPalette.color11; # bright yellow bright4 = strPalette.color12; # bright blue bright5 = strPalette.color13; # bright magenta bright6 = strPalette.color14; # bright cyan bright7 = strPalette.color15; # bright white }; }; }; }