1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 20:01:08 +01:00

modularize colorscheming and more

This commit is contained in:
Kierán Meinhardt
2019-04-19 15:02:05 +02:00
parent a763c63de4
commit 7d6dbc2809
37 changed files with 483 additions and 496 deletions

View File

@@ -1,13 +1,12 @@
{ lib, ... }:
let theme = import <dot/theme.nix>;
in {
home-manager.users.me.xresources.properties = {
"*background" = theme.colorScheme.background;
"*foreground" = theme.colorScheme.foreground;
"*fadeColor" = theme.colorScheme.background;
"*cursorColor" = theme.colorScheme.cursorColor;
"*.font" = "xft:${theme.terminalFont.name}:size=${toString theme.terminalFont.size}";
"*.boldFont" = "xft:${theme.terminalFont.name}:style=Bold:size=${toString theme.terminalFont.size}";
"*.italicFont" = "xft:${theme.terminalFont.name}:style=Italic:size=${toString theme.terminalFont.size}";
} // lib.lists.foldr (i: cs: cs // { "*color${toString i}" = builtins.elemAt theme.colorPalette i; }) {} (lib.lists.range 0 15);
{ config, lib, ... }:
{
home-manager.users.me.xresources.properties = with config.niveum; {
"*background" = colours.background;
"*foreground" = colours.foreground;
"*fadeColor" = colours.background;
"*cursorColor" = colours.cursor;
"*.font" = "xft:${fonts.terminal.name}:size=${toString fonts.terminal.size}";
"*.boldFont" = "xft:${fonts.terminal.name}:style=Bold:size=${toString fonts.terminal.size}";
"*.italicFont" = "xft:${fonts.terminal.name}:style=Italic:size=${toString fonts.terminal.size}";
} // lib.lists.foldr (i: cs: cs // { "*color${toString i}" = builtins.elemAt colourPalette i; }) {} (lib.lists.range 0 15);
}