hexColors

This commit is contained in:
kat witch 2021-08-18 03:31:56 +01:00
parent c9bd5a3766
commit 2dbc1ac464
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
5 changed files with 7 additions and 12 deletions

View file

@ -4,7 +4,7 @@
base16 = {
console = {
enable = true;
scheme = config.home-manager.users.kat.alias.default;
scheme = config.home-manager.users.kat.base16.alias.default;
};
};
}

View file

@ -8,5 +8,7 @@
alias.dark = "atelier.atelier-cave";
};
kw.hexColours = lib.mapAttrs' (k: v: lib.nameValuePair k "#${v.hex.rgb}") config.lib.arc.base16.schemeForAlias.default;
kw.hexColors = lib.mapAttrs' (k: v: lib.nameValuePair k "#${v.hex.rgb}")
(lib.filterAttrs (n: _: lib.hasInfix "base" n) config.lib.arc.base16.schemeForAlias.default);
}

View file

@ -2,12 +2,7 @@
with lib;
let
witch.style.base16 = lib.mapAttrs' (k: v: lib.nameValuePair k "#${v.hex.rgb}")
config.lib.arc.base16.schemeForAlias.default;
colors.ansi = builtins.concatStringsSep ", " (map (c: ''"#${c.hex.rgb}"'') (sublist 0 8 config.lib.arc.base16.schemeForAlias.default.shell.colours));
colors.brights = builtins.concatStringsSep ", " (map (c: ''"#${c.hex.rgb}"'') (sublist 8 8 config.lib.arc.base16.schemeForAlias.default.shell.colours));
in {
{
programs.foot = {
enable = true;
settings = {

View file

@ -1,8 +1,7 @@
{ config, pkgs, lib, witch, ... }:
let
base16 = lib.mapAttrs' (k: v: lib.nameValuePair k "#${v.hex.rgb}")
config.lib.arc.base16.schemeForAlias.default;
base16 = config.kw.hexColors;
in
{
systemd.user.services = {

View file

@ -1,8 +1,7 @@
{ config, lib, pkgs, ... }:
let
base16 = lib.mapAttrs' (k: v: lib.nameValuePair k "#${v.hex.rgb}")
config.lib.arc.base16.schemeForAlias.default;
base16 = config.kw.hexColors;
in
{
programs.waybar = {