29 lines
570 B
Nix
29 lines
570 B
Nix
monitors:
|
|
{ ... }:
|
|
{
|
|
wayland.windowManager.hyprland.settings.exec-once = [
|
|
"wpaperd"
|
|
];
|
|
|
|
services.wpaperd = {
|
|
enable = true;
|
|
settings =
|
|
builtins.listToAttrs (
|
|
map (mon: {
|
|
name = mon;
|
|
value = {
|
|
# Each monitor gets a folder under wallpaper that containes the current images.
|
|
path = "~/Pictures/Wallpaper/${mon}";
|
|
};
|
|
}) monitors
|
|
)
|
|
// {
|
|
default = {
|
|
duration = "1h";
|
|
mode = "center";
|
|
sorting = "random";
|
|
};
|
|
};
|
|
};
|
|
}
|