nix/home-manager/shared/wayland/alacritty/default.nix
2024-11-18 20:10:08 -06:00

97 lines
2.2 KiB
Nix
Executable file

_: {
programs.alacritty = {
enable = true;
settings = {
window = {
title = "alacritty";
dynamic_padding = true;
decorations = "none";
padding = {
x = 16;
y = 16;
};
opacity = 1;
};
font = {
normal = {
family = "Spleen 32x64";
style = "Medium";
};
size = 12;
offset = {
x = 0;
y = 1;
};
};
cursor = {
style = "Block";
unfocused_hollow = true;
};
# https://github.com/EdenEast/nightfox.nvim/blob/main/extra/terafox/alacritty.toml
colors = {
draw_bold_text_with_bright_colors = true;
primary = {
background = "#152528";
foreground = "#e6eaea";
};
cursor = {
text = "#e6eaea";
cursor = "#cbd9d8";
};
normal = {
black = "#2f3239";
red = "#e85c51";
green = "#7aa4a1";
yellow = "#fda47f";
blue = "#5a93aa";
magenta = "#ad5c7c";
cyan = "#a1cdd8";
white = "#ebebeb";
};
bright = {
black = "#4e5157";
red = "#eb746b";
green = "#8eb2af";
yellow = "#fdb292";
blue = "#73a3b7";
magenta = "#b97490";
cyan = "#afd4de";
white = "#eeeeee";
};
dim = {
black = "#282a30";
red = "#c54e45";
green = "#688b89";
yellow = "#d78b6c";
blue = "#4d7d90";
magenta = "#934e69";
cyan = "#89aeb8";
white = "#c8c8c8";
};
vi_mode_cursor = {
text = "CellBackground";
cursor = "#00CC22";
};
};
keyboard.bindings = [
{
key = "Q";
mode = "Vi";
action = "ToggleViMode";
}
{
key = "K";
mode = "~Alt";
mods = "Control|Shift";
action = "ScrollPageUp";
}
{
key = "J";
mode = "~Alt";
mods = "Control|Shift";
action = "ScrollPageDown";
}
];
};
};
}