diff options
Diffstat (limited to '')
-rw-r--r-- | home/terminal/alacritty/default.nix | 6 | ||||
-rw-r--r-- | home/terminal/alacritty/theme.nix | 30 |
2 files changed, 34 insertions, 2 deletions
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"; + }; + }; +} |