add wallpaper that gets recolored
This commit is contained in:
parent
6658ad9a5c
commit
09426f911b
4 changed files with 90 additions and 57 deletions
|
|
@ -2,6 +2,7 @@
|
|||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
|
@ -26,6 +27,18 @@ let
|
|||
map (n: "${dir}/${n}/${platform}.nix") (
|
||||
builtins.filter (n: builtins.pathExists "${dir}/${n}/${platform}.nix") drop
|
||||
);
|
||||
wallpaper = ./wallpaper.png;
|
||||
baseNames = map (c: "base0${c}") (lib.stringToCharacters "0123456789ABCDEF");
|
||||
palette = lib.concatMapStringsSep " " (n: config.lib.stylix.colors.withHashtag.${n}) baseNames;
|
||||
|
||||
recolored =
|
||||
pkgs.runCommand "wallpaper-stylix.png"
|
||||
{
|
||||
nativeBuildInputs = [ pkgs.lutgen ];
|
||||
}
|
||||
''
|
||||
lutgen apply ${wallpaper} -o ~/.walls/stylix-bars.png -p ${palette}
|
||||
'';
|
||||
in
|
||||
{
|
||||
disabledModules = disable "nixos";
|
||||
|
|
@ -49,9 +62,9 @@ in
|
|||
stylix = {
|
||||
enable = true;
|
||||
autoEnable = false;
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/black-metal.yaml";
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyodark.yaml";
|
||||
polarity = "dark";
|
||||
image = ./wallpaper.png;
|
||||
image = recolored;
|
||||
targets = {
|
||||
console.enable = true;
|
||||
gtk.enable = true;
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 2.7 MiB |
Loading…
Reference in a new issue