{ config, pkgs, nix-colors, ... }:
{
  home.packages = with pkgs; [
    libsixel
  ];
  programs.foot = {
    enable = true;
    server.enable = true;
    settings = rec {
      main = {
        shell = "${pkgs.zsh}/bin/zsh";
        dpi-aware = "yes";
        font = "monospace:family=Iosevka Nerd Font, size=8";
      };
      cursor.color = "${colors.background} ${colors.foreground}";
      bell = {
        urgent = true;
        notify = true;
        #command = "${pkgs.notify-desktop}/bin/notify-desktop a";
      };
      colors =
        let
          colors = config.colorScheme.colors;
        in
        {
          alpha = if (config.colorScheme.kind == "dark") then 0.0 else 1.0;
          background = colors.base00;
          foreground = colors.base05;
          regular0 = colors.base02;
          regular1 = colors.base08;
          regular2 = colors.base0A;
          regular3 = colors.base0B;
          regular4 = colors.base0D;
          regular5 = colors.base0E;
          regular6 = colors.base0C;
          regular7 = colors.base05;
          bright0 = colors.base03;
          bright1 = colors.base08;
          bright2 = colors.base0A;
          bright3 = colors.base0B;
          bright4 = colors.base0D;
          bright5 = colors.base0E;
          bright6 = colors.base0C;
          bright7 = colors.base07;
        };
    };
  };
}