# Wallpapers
{
  pkgs,
  common,
  theme,
  ...
}:

{
  home.packages = with pkgs; [ hyprpaper ];

  services.hyprpaper = {
    enable = true;
    settings =
      let
        monitor1 = builtins.toString theme.wallpaper.monitor1;
        monitor2 = builtins.toString theme.wallpaper.monitor2;
      in
      {
        ipc = "on";
        splash = false;
        splash_offset = 2.0;

        preload = [
          monitor1
          monitor2
        ];

        wallpaper = [
          "${common.monitor1},${monitor1}"
          "${common.monitor2},${monitor2}"
        ];
      };
  };
}
