From 43e8e05e7bebf98adaaaa0c2b871f37c353728f8 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 17 Apr 2021 20:28:27 +0100 Subject: [PATCH] ops/nixos: tweak alacritty settings --- .../lib/home-manager/graphical-client.nix | 46 ++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/ops/nixos/lib/home-manager/graphical-client.nix b/ops/nixos/lib/home-manager/graphical-client.nix index fdc4e59bf4..20744a218d 100644 --- a/ops/nixos/lib/home-manager/graphical-client.nix +++ b/ops/nixos/lib/home-manager/graphical-client.nix @@ -30,7 +30,50 @@ 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" = { executable = true; @@ -65,6 +108,7 @@ in lib.mkOptionDefault { "${modifier}+l" = "exec loginctl lock-session"; "${modifier}+p" = "exec ${depot.nix.pkgs.flameshot}/bin/flameshot gui"; + "${modifier}+Return" = "exec ${pkgs.alacritty}/bin/alacritty"; }; startup = [ { command = "xss-lock --transfer-sleep-lock -- i3lock --nofork"; notification = false; }