dotfiles/hm/desktop/background/default.nix

15 lines
660 B
Nix
Raw Normal View History

2024-01-15 19:26:44 +01:00
{ pkgs, config, lib, ... }:
{
config = {
# On purpose also enable without a DE because stylix complains otherwise
2024-01-15 19:26:44 +01:00
stylix.image = 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";
};
# This correctly sets the background on some occasions, below does the rest
programs.autorandr.hooks.postswitch = {
background = "${pkgs.feh}/bin/feh --no-fehbg --bg-fill ${config.stylix.image}";
};
};
}