From 893be1fa19b3497556c0a34c02882b39ad265199 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 8 Apr 2022 09:23:53 -0700 Subject: alacritty: use light colors --- home/terminal/alacritty/default.nix | 6 ++++-- home/terminal/alacritty/theme.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 home/terminal/alacritty/theme.nix (limited to 'home/terminal') diff --git a/home/terminal/alacritty/default.nix b/home/terminal/alacritty/default.nix index 72a6d33..00e9ca4 100644 --- a/home/terminal/alacritty/default.nix +++ b/home/terminal/alacritty/default.nix @@ -1,5 +1,7 @@ { config, lib, pkgs, ... }: -let cfg = config.my.home.terminal; +let + cfg = config.my.home.terminal; + colors = import ./theme.nix; in { config = lib.mkIf (cfg.program == "alacritty") { programs.alacritty = { @@ -15,7 +17,7 @@ in { style.blinking = "Never"; unfocused_hollow = true; }; - }; + } // colors; }; }; } diff --git a/home/terminal/alacritty/theme.nix b/home/terminal/alacritty/theme.nix new file mode 100644 index 0000000..90c1abf --- /dev/null +++ b/home/terminal/alacritty/theme.nix @@ -0,0 +1,30 @@ +{ + colors = { + primary = { + background = "0xffffff"; + foreground = "0x000000"; + }; + + normal = { + black = "0xfbf1c7"; + red = "0xcc241d"; + green = "0x98971a"; + yellow = "0xd79921"; + blue = "0x458588"; + magenta = "0xb16286"; + cyan = "0x689d6a"; + white = "0x7c6f64"; + }; + + bright = { + black = "0x928374"; + red = "0x9d0006"; + green = "0x79740e"; + yellow = "0xb57614"; + blue = "0x076678"; + magenta = "0x8f3f71"; + cyan = "0x427b58"; + white = "0x3c3836"; + }; + }; +} -- cgit 1.4.1