aboutsummaryrefslogblamecommitdiff
path: root/users/programs/alacritty.nix
blob: 89356cdca8cc6a7b5a763fdb02ed2b042b26ed1b (plain) (tree)
1
2
3
4
5
6
7
8
9
        


                                  



                        
                                         

                      

                        










                                                                                
                                   







                                  
                                    
                
                               


                         
                               

                           
                  













                                  





























                                 


      
{ ... }:
let
  defaultFont = "Source Code Pro";
in
{
  programs.alacritty = {
    enable = true;
    settings = {
      selection.save_to_clipboard = true;
      window = {
        dimensions = {
          columns = 120;
          lines = 40;
        };
        # Window padding (changes require restart)
        #
        # Blank space added around the window in pixels. This padding is scaled
        # by DPI and the specified value is always added at both opposing sides.
        padding = {
          x = 2;
          y = 2;
        };
        # Spread additional padding evenly around the terminal content.
        dynamic_padding = false;
        decorations = "Buttonless";
        startup_mode = "Windowed";
        dynamic_title = true;
      };
      scrolling = {
        history = 10000;
        multiplier = 3;
      };
      font = {
        normal.family = defaultFont;
        bold = {
          family = defaultFont;
          style = "Bold";
        };
        italic = {
          family = defaultFont;
          style = "Italic";
        };
        size = 14;
        offset = {
          x = 0;
          y = 0;
        };
        glyph_offset = {
          x = 0;
          y = 0;
        };
      };
      bell = {
        animation = "EaseOutExpo";
        duration = 0;
        color = "0xffffff";
      };
      colors = {
        primary = {
          background = "#FAFAFA";
          foreground = "#111111";
        };
        cursor = {
          text = "#FAFAFA";
          cursor = "#111111";
        };
        normal = {
          black = "#000000";
          red = "#AA3731";
          green = "#448C27";
          yellow = "#CB9000";
          blue = "#325CC0";
          magenta = "#7A3E9D";
          cyan = "#0083B2";
          white = "#BBBBBB";
        };
        bright = {
          black = "#777777";
          red = "#F05050";
          green = "#60CB00";
          yellow = "#FFBC5D";
          blue = "#007ACC";
          magenta = "#E64CE6";
          cyan = "#00AACB";
          white = "#FFFFFF";
        };
      };
    };
  };
}