os/modules/graphical/alacritty.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

262 lines
5 KiB
Nix
Raw Normal View History

{ flake, ...}: with flake.self.theme.with0x; {
2021-05-30 19:10:28 +00:00
env = {
TERM = "xterm-256color";
};
window = {
# Window dimensions in character columns and lines
# Falls back to size specified by window manager if set to 0x0.
# (changes require restart)
dimensions = {
columns = 80;
lines = 24;
};
padding = {
x = 0;
y = 0;
};
decorations = "full";
};
scrolling = {
# How many lines of scrollback to keep,
# "0" will disable scrolling.
history = 100000;
# Number of lines the viewport will move for every line
# scrolled when scrollback is enabled (history > 0).
multiplier = 3;
};
font = {
# The normal (roman) font face to use.
normal = {
family = "Hack"; # should be "Menlo" or something on macOS.
# Style can be specified to pick a specific face.
style = "Regular";
};
# The bold font face
bold = {
family = "Hack"; # should be "Menlo" or something on macOS.
# Style can be specified to pick a specific face.
style = "Bold";
};
# The italic font face
italic = {
family = "Hack"; # should be "Menlo" or something on macOS.
# Style can be specified to pick a specific face.
style = "Italic";
};
size = 16.0;
2021-05-30 19:10:28 +00:00
offset = {
x = 0;
y = 0;
};
glyph_offset = {
x = 0;
y = 0;
};
};
2024-06-03 10:30:14 +00:00
keyboard.bindings = [
{
key = "V";
mods = "Control|Alt";
action = "Paste";
}
{
key = "C";
mods = "Control|Alt";
action = "Copy";
}
{
key = "Paste";
action = "Paste";
}
{
key = "Copy";
action = "Copy";
}
{
key = "Q";
mods = "Command";
action = "Quit";
}
{
key = "W";
mods = "Command";
action = "Quit";
}
{
key = "Insert";
mods = "Shift";
action = "PasteSelection";
}
{
key = "Key0";
mods = "Control";
action = "ResetFontSize";
}
{
key = "Equals";
mods = "Control";
action = "IncreaseFontSize";
}
{
key = "PageUp";
mods = "Shift";
action = "ScrollPageUp";
}
{
key = "PageDown";
mods = "Shift";
action = "ScrollPageDown";
}
{
key = "Minus";
mods = "Control";
action = "DecreaseFontSize";
}
{
key = "H";
mode = "Vi|~Search";
action = "ScrollToBottom";
}
{
key = "H";
mode = "Vi|~Search";
action = "ToggleViMode";
}
{
key = "I";
mode = "Vi|~Search";
action = "Up";
}
{
key = "K";
mode = "Vi|~Search";
action = "Down";
}
{
key = "J";
mode = "Vi|~Search";
action = "Left";
}
{
key = "L";
mode = "Vi|~Search";
action = "Right";
}
2021-05-30 19:10:28 +00:00
];
# Base16 Burn 256 - alacritty color config
# Benjamin Bädorf
colors = {
2024-08-18 22:22:59 +00:00
# When true, bold text is drawn using the bright variant of colors.
draw_bold_text_with_bright_colors = true;
2024-06-03 10:30:14 +00:00
2021-05-30 19:10:28 +00:00
# Default colors
primary = {
background = base00;
foreground = base05;
2021-05-30 19:10:28 +00:00
};
# Cursor colors
#
# Colors which should be used to draw the terminal cursor.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
2021-05-30 19:10:28 +00:00
cursor = {
text = "CellBackground";
cursor = "CellForeground";
2021-05-30 19:10:28 +00:00
};
# Colors used for the search bar and match highlighting.
search = {
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
matches = {
foreground = base0A;
background = base00;
};
focused_match = {
foreground = "CellBackground";
background = "CellForeground";
};
#bar =
# background = "#c5c8c6";
# foreground = "#1d1f21";
};
# Selection colors
#
# Colors which should be used to draw the selection area.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
selection = {
text = base00;
background = base08;
};
2021-05-30 19:10:28 +00:00
# Normal colors
normal = {
black = base00;
red = base08;
green = base09;
yellow = base0A;
blue = base0D;
magenta = base0E;
cyan = base0C;
white = base05;
2021-05-30 19:10:28 +00:00
};
# Bright colors
bright = {
black = base00;
red = base08;
green = base09;
yellow = base0A;
blue = base0D;
magenta = base0E;
cyan = base0C;
white = base07;
2021-05-30 19:10:28 +00:00
};
indexed_colors = [
{
index = 16;
color = base09;
}
{
index = 17;
color = base0F;
}
{
index = 18;
color = base01;
}
{
index = 19;
color = base02;
}
{
index = 20;
color = base04;
}
{
index = 21;
color = base02;
}
2021-05-30 19:10:28 +00:00
];
};
}