76 lines
1.6 KiB
Nix
76 lines
1.6 KiB
Nix
let
|
|
colorschemes = {
|
|
# https://github.com/alacritty/alacritty/wiki/Color-schemes#solarized
|
|
solarized-dark = {
|
|
# Default colors
|
|
primary = {
|
|
background = "#002b36"; # base03
|
|
foreground = "#839496"; # base0
|
|
};
|
|
|
|
# Cursor colors
|
|
cursor = {
|
|
text = "#002b36"; # base03
|
|
cursor = "#839496"; # base0
|
|
};
|
|
|
|
# Normal colors
|
|
normal = {
|
|
black = "#073642"; # base02
|
|
red = "#dc322f"; # red
|
|
green = "#859900"; # green
|
|
yellow = "#b58900"; # yellow
|
|
blue = "#268bd2"; # blue
|
|
magenta = "#d33682"; # magenta
|
|
cyan = "#2aa198"; # cyan
|
|
white = "#eee8d5"; # base2
|
|
};
|
|
|
|
# Bright colors
|
|
bright = {
|
|
black = "#002b36"; # base03
|
|
red = "#cb4b16"; # orange
|
|
green = "#586e75"; # base01
|
|
yellow = "#657b83"; # base00
|
|
blue = "#839496"; # base0
|
|
magenta = "#6c71c4"; # violet
|
|
cyan = "#93a1a1"; # base1
|
|
white = "#fdf6e3"; # base3
|
|
};
|
|
};
|
|
};
|
|
in
|
|
{
|
|
programs.alacritty = {
|
|
enable = true;
|
|
settings = {
|
|
font = {
|
|
normal = {
|
|
family = "Iosevka Nerd Font";
|
|
style = "Regular";
|
|
};
|
|
size = 13.5;
|
|
};
|
|
|
|
mouse.hide_when_typing = true;
|
|
|
|
key_bindings = [
|
|
{
|
|
key = "V";
|
|
mods = "Control|Alt";
|
|
action = "Paste";
|
|
}
|
|
{
|
|
key = "C";
|
|
mods = "Control|Alt";
|
|
action = "Copy";
|
|
}
|
|
];
|
|
|
|
bell.duration = 100;
|
|
|
|
colors = colorschemes.solarized-dark;
|
|
};
|
|
};
|
|
}
|