add wallpaper that gets recolored v2 and actually works now
This commit is contained in:
parent
09426f911b
commit
81e47e6467
2 changed files with 19 additions and 15 deletions
|
|
@ -1,10 +1,15 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
palette = lib.strings.removePrefix "${pkgs.base16-schemes}/share/themes/" "${config.stylix.base16Scheme
|
||||||
|
}";
|
||||||
|
cleanPalette = lib.strings.removeSuffix ".yaml" "${palette}";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
|
|
@ -23,6 +28,9 @@
|
||||||
home.homeDirectory = "/home/lucy";
|
home.homeDirectory = "/home/lucy";
|
||||||
home.stateVersion = "26.05";
|
home.stateVersion = "26.05";
|
||||||
home.activation = {
|
home.activation = {
|
||||||
|
wallpaper = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
|
${lib.getExe pkgs.lutgen} apply ${config.stylix.image} -p ${cleanPalette} -o ~/.walls/a.png
|
||||||
|
'';
|
||||||
reload-quickshell =
|
reload-quickshell =
|
||||||
lib.hm.dag.entryAfter
|
lib.hm.dag.entryAfter
|
||||||
[
|
[
|
||||||
|
|
@ -30,6 +38,8 @@
|
||||||
]
|
]
|
||||||
''
|
''
|
||||||
${lib.getExe pkgs.quickshell} ipc call config reload true
|
${lib.getExe pkgs.quickshell} ipc call config reload true
|
||||||
|
${lib.getExe pkgs.quickshell} ipc call config setWall ~/.walls/a.png
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
@ -27,18 +26,13 @@ let
|
||||||
map (n: "${dir}/${n}/${platform}.nix") (
|
map (n: "${dir}/${n}/${platform}.nix") (
|
||||||
builtins.filter (n: builtins.pathExists "${dir}/${n}/${platform}.nix") drop
|
builtins.filter (n: builtins.pathExists "${dir}/${n}/${platform}.nix") drop
|
||||||
);
|
);
|
||||||
wallpaper = ./wallpaper.png;
|
palette = "gruvbox-dark-hard";
|
||||||
baseNames = map (c: "base0${c}") (lib.stringToCharacters "0123456789ABCDEF");
|
stylixPalette = lib.strings.concatStrings [
|
||||||
palette = lib.concatMapStringsSep " " (n: config.lib.stylix.colors.withHashtag.${n}) baseNames;
|
"${pkgs.base16-schemes}/share/themes/"
|
||||||
|
"${palette}"
|
||||||
|
".yaml"
|
||||||
|
];
|
||||||
|
|
||||||
recolored =
|
|
||||||
pkgs.runCommand "wallpaper-stylix.png"
|
|
||||||
{
|
|
||||||
nativeBuildInputs = [ pkgs.lutgen ];
|
|
||||||
}
|
|
||||||
''
|
|
||||||
lutgen apply ${wallpaper} -o ~/.walls/stylix-bars.png -p ${palette}
|
|
||||||
'';
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
disabledModules = disable "nixos";
|
disabledModules = disable "nixos";
|
||||||
|
|
@ -62,9 +56,9 @@ in
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoEnable = false;
|
autoEnable = false;
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyodark.yaml";
|
base16Scheme = stylixPalette;
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
image = recolored;
|
image = ./wallpaper.png;
|
||||||
targets = {
|
targets = {
|
||||||
console.enable = true;
|
console.enable = true;
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue