alacritty.nix (2066B)
1 { config, lib, pkgs, ... }: 2 3 { 4 programs.alacritty = { 5 enable = true; 6 settings = { 7 env.TERM = "xterm-256color"; 8 font = { 9 normal = { 10 family = "Ubuntu Mono"; 11 style = "Regular"; 12 }; 13 bold = { 14 family = "Ubuntu Mono"; 15 style = "Bold"; 16 }; 17 italic = { 18 family = "Ubuntu Mono"; 19 style = "Italic"; 20 }; 21 size = 11; 22 }; 23 colors = { 24 primary = { 25 background = "0x0A0E14"; 26 foreground = "0xB3B1AD"; 27 }; 28 normal = { 29 black = "0x01060E"; 30 blue = "0x53BDFA"; 31 cyan = "0x90E1C6"; 32 green = "0x91B362"; 33 magenta = "0xFAE994"; 34 red = "0xEA6C73"; 35 white = "0xC7C7C7"; 36 yellow = "0xF9AF4F"; 37 }; 38 bright = { 39 black = "0x686868"; 40 blue = "0x59C2FF"; 41 cyan = "0x95E6CB"; 42 green = "0xC2D94C"; 43 magenta = "0xFFEE99"; 44 red = "0xF07178"; 45 white = "0xFFFFFF"; 46 yellow = "0xFFB454"; 47 }; 48 }; 49 shell.program = "${pkgs.zsh}/bin/zsh"; 50 key_bindings = [ 51 { 52 key = "V"; 53 mods = "Control|Shift"; 54 action = "Paste"; 55 } 56 { 57 key = "C"; 58 mods = "Control|Shift"; 59 action = "Copy"; 60 } 61 { 62 key = "Insert"; 63 mods = "Shift"; 64 action = "PasteSelection"; 65 } 66 { 67 key = "Key0"; 68 mods = "Control"; 69 action = "ResetFontSize"; 70 } 71 { 72 key = "Equals"; 73 mods = "Control"; 74 action = "IncreaseFontSize"; 75 } 76 { 77 key = "Plus"; 78 mods = "Control"; 79 action = "IncreaseFontSize"; 80 } 81 { 82 key = "Minus"; 83 mods = "Control"; 84 action = "DecreaseFontSize"; 85 } 86 { 87 key = "Return"; 88 mods = "Alt"; 89 action = "ToggleFullscreen"; 90 } 91 ]; 92 }; 93 }; 94 }