ops/nixos: tweak alacritty settings

This commit is contained in:
Luke Granger-Brown 2021-04-17 20:28:27 +01:00
parent 11066035e2
commit 43e8e05e7b

View file

@ -30,7 +30,50 @@
depot.nix.pkgs.flameshot depot.nix.pkgs.flameshot
]); ]);
programs.alacritty.enable = true; programs.alacritty = {
enable = true;
settings.font = let
iosevka = style: { family = "Iosevka"; inherit style; };
in {
normal = iosevka "Regular";
bold = iosevka "Bold";
italic = iosevka "Italic";
bold_italic = iosevka "Bold Italic";
size = 6;
};
settings.colors = {
# Ayu Dark, from https://github.com/alacritty/alacritty/wiki/Color-schemes
primary = {
background = "#0A0E14";
foreground = "#B3B1AD";
};
# Normal colors
normal = {
black = "#01060E";
red = "#EA6C73";
green = "#91B362";
yellow = "#F9AF4F";
blue = "#53BDFA";
magenta = "#FAE994";
cyan = "#90E1C6";
white = "#C7C7C7";
};
# Bright colors
bright = {
black = "#686868";
red = "#F07178";
green = "#C2D94C";
yellow = "#FFB454";
blue = "#59C2FF";
magenta = "#FFEE99";
cyan = "#95E6CB";
white = "#FFFFFF";
};
};
};
home.file."bin/screencap" = { home.file."bin/screencap" = {
executable = true; executable = true;
@ -65,6 +108,7 @@
in lib.mkOptionDefault { in lib.mkOptionDefault {
"${modifier}+l" = "exec loginctl lock-session"; "${modifier}+l" = "exec loginctl lock-session";
"${modifier}+p" = "exec ${depot.nix.pkgs.flameshot}/bin/flameshot gui"; "${modifier}+p" = "exec ${depot.nix.pkgs.flameshot}/bin/flameshot gui";
"${modifier}+Return" = "exec ${pkgs.alacritty}/bin/alacritty";
}; };
startup = [ startup = [
{ command = "xss-lock --transfer-sleep-lock -- i3lock --nofork"; notification = false; } { command = "xss-lock --transfer-sleep-lock -- i3lock --nofork"; notification = false; }