This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/home/alacritty/alacritty.nix

110 lines
2.1 KiB
Nix

{ config, pkgs, ... }:
{
# alacritty
programs.alacritty = {
enable = true;
package = pkgs.alacritty;
settings = {
# general
live_config_reload = true;
mouse.hide_when_typing = true;
scrolling.history = 20000;
shell.program = "zsh";
# environment
env = {
"TERM" = "xterm-256color";
};
# colors
colors = {
# bright colors
bright = {
black = "#545454";
blue = "#729fcf";
cyan = "#34e2e2";
green = "#8ae234";
magenta = "#ad7fa8";
red = "#ef2929";
white = "#eeeeec";
yellow = "#fce94f";
};
# normal colors
normal = {
black = "#000000";
blue = "#3465a4";
cyan = "#06989a";
green = "#4e9a06";
magenta = "#75507b";
red = "#cc0000";
white = "#d3d7cf";
yellow = "#c4a000";
};
# primary colors
primary = {
background = "#000000";
foreground = "#ffffff";
};
};
# cursor
cursor = {
blink_interval = 750;
style = {
blinking = "always";
shape = "underline";
};
};
# font
font = {
size = 14.0;
# normal font
normal = {
family = "JetBrainsMono Nerd Font Mono";
style = "Light";
};
# bold font
bold = {
family = "JetBrainsMono Nerd Font Mono";
style = "Bold";
};
# italic font
italic = {
family = "JetBrainsMono Nerd Font Mono";
style = "Italic";
};
};
# keyboard
keyboard.bindings = [{
action = "SpawnNewInstance";
key = "Return";
mods = "Control|Shift";
}
];
# window
window = {
opacity = 0.75;
class = {
general = "Alacritty";
instance = "Alacritty";
};
padding = {
x = 7;
y = 5;
};
};
};
};
}