Compare commits

...

1 commit

Author SHA1 Message Date
Geoffrey Frogeye d8ae0467c3 Attempt at recoloring the background declaratively 2023-12-24 22:01:58 +01:00

View file

@ -11,18 +11,20 @@ let
{ command = "nuit"; polarity = "dark"; } { command = "nuit"; polarity = "dark"; }
]; ];
cfg = config.frogeye.desktop.phasesBrightness; cfg = config.frogeye.desktop.phasesBrightness;
bg = builtins.fetchurl {
url = "https://get.wallhere.com/photo/sunlight-abstract-minimalism-green-simple-circle-light-leaf-wave-material-line-wing-computer-wallpaper-font-close-up-macro-photography-124350.png";
sha256 = "sha256:1zfq3f3v34i45mi72pkfqphm8kbhczsg260xjfl6dbydy91d7y93";
};
bg_nored = pkgs.runCommand "bg.png" { env.GIMP2_DIRECTORY = "/tmp"; } ''
${pkgs.gimp}/bin/gimp ${bg} --no-interface --no-data --no-fonts bg.png -b "(gimp-levels 2 1 0 255 1 0 0)" -b "(file-png-save-defaults 1 1 2 '$out' '$out')" -b "(gimp-quit 1)"
'';
in in
{ {
imports = [ (import stylix).homeManagerModules.stylix ]; imports = [ (import stylix).homeManagerModules.stylix ];
stylix = { stylix = {
base16Scheme = "${pkgs.base16-schemes}/share/themes/solarized-${polarity}.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/solarized-${polarity}.yaml";
image = builtins.fetchurl { image = bg_nored; # The background is set on some occasions, autorandr + feh do the rest
url = "https://get.wallhere.com/photo/sunlight-abstract-minimalism-green-simple-circle-light-leaf-wave-material-line-wing-computer-wallpaper-font-close-up-macro-photography-124350.png";
sha256 = "sha256:1zfq3f3v34i45mi72pkfqphm8kbhczsg260xjfl6dbydy91d7y93";
};
# The background is set on some occasions, autorandr + feh do the rest
fonts = { fonts = {
monospace = { monospace = {
package = pkgs.nerdfonts.override { package = pkgs.nerdfonts.override {