Palette library integrated + polybar and alacritty

This commit is contained in:
Filippo Berto 2021-06-11 00:20:03 +02:00
parent a61bfe3c50
commit ef5b48d142
17 changed files with 1090 additions and 214 deletions

View file

@ -1,12 +1,11 @@
{ pkgs, ... }:
let
nord = import ../configs/themes/nord.nix;
in {
{ pkgs, lib, ... }:
{
# Include fonts packages
home.packages = with pkgs; [ nerdfonts ];
programs.alacritty = {
enable = true;
settings = {
env.TERM = "xterm-256color";
scrolling.history = 3000;
font = {
normal.family = "FuraCode Nerd Font Mono";
@ -18,65 +17,28 @@ in {
hints.modifiers = "Control";
};
# NORD Theme: https://github.com/arcticicestudio/nord-alacritty
colors = {
primary = {
background = nord.n0;
foreground = nord.n6;
dim_foreground = nord.n4;
};
cursor = {
text = nord.n0;
cursor = nord.n4;
};
vi_mode_cursor = {
text = nord.n0;
cursor = nord.n4;
};
colors = with pkgs.extra; {
primary = palette.toRgbHex colorPalette.primary;
cursor = palette.toRgbHex colorPalette.cursor;
vi_mode_cursor = palette.toRgbHex colorPalette.vi_mode_cursor;
selection = {
text = "CellForeground";
background = nord.n3;
background = color.toRgbHex colorPalette.dim.blue;
};
search = {
matches = {
matches = {
foreground = "CellForeground";
background = nord.n8;
};
background = color.toRgbHex colorPalette.dim.cyan;
};
bar = {
background = nord.n2;
foreground = nord.n4;
# foreground = "CellForeground";
background = color.toRgbHex colorPalette.dim.yellow;
};
};
normal = {
black = nord.n0;
red = nord.n11;
green = nord.n14;
yellow = nord.n13;
blue = nord.n9;
magenta = nord.n15;
cyan = nord.n9;
white = nord.n5;
};
bright = {
black = nord.n3;
red = nord.n11;
green = nord.n14;
yellow = nord.n13;
blue = nord.n9;
magenta = nord.n15;
cyan = nord.n8;
white = nord.n6;
};
dim = {
black = "#373e4d";
red = "#94545d";
green = "#809575";
yellow = "#b29e75";
blue = "#68809a";
magenta = "#8c738c";
cyan = "#6d96a5";
white = nord.n4;
};
normal = palette.toRgbHex colorPalette.normal;
bright = palette.toRgbHex colorPalette.bright;
dim = palette.toRgbHex colorPalette.dim;
};
};
};