Hyprpaper: Difference between revisions

m Realized the citation didn't actually link to the page itself... I meant it to. Oops.
Wojpo (talk | contribs)
m Updated to match the current services.hyprpaper syntax in NixOS 26.05 stable. The previous format is kept as legacy for reference.
Tags: Mobile edit Mobile web edit Visual edit
 
Line 13: Line 13:
     wallpaper = [
     wallpaper = [
       # By display
       # By display
       #"DP-2,~/wallpapers/wallpaper2.jpg"
       # {
      #  monitor = "DP-2";
      #  path = "~/wallpapers/wallpaper2.jpg";
      # }
       # By default/fallback
       # By default/fallback
       ",~/wallpapers/wallpaper.jpg"
       {
        monitor = "";
        path = "~/wallpapers/wallpaper.jpg";
      }
     ];
     ];
   };
   };
};|name=/etc/nixos/home.nix|lang=nix}}
};|name=/etc/nixos/home.nix|lang=nix}}


== Home Manager Configuration (New) ==
== Home Manager Configuration (NixOS Legacy) ==
The following is an example of the new syntax required for <code>services.hyprpaper</code> as of the version supplied by nixos-unstable(26.05). It follows the wallpaper object syntax described on the current Hyprland Wiki. <ref>https://wiki.hypr.land/Hypr-Ecosystem/hyprpaper/</ref> {{File|3=services.hyprpaper = {
The following is an example of the old <code>services.hyprpaper</code> syntax used before the changes introduced in later nixos 26.05 version.{{File|3=services.hyprpaper = {
   enable = true;
   enable = true;
   settings = {
   settings = {
Line 30: Line 36:
     wallpaper = [
     wallpaper = [
       # By display
       # By display
       # {
       #"DP-2,~/wallpapers/wallpaper2.jpg"
      #  monitor = "DP-2";
      #  path = "~/wallpapers/wallpaper2.jpg";
      # }
       # By default/fallback
       # By default/fallback
       {
       ",~/wallpapers/wallpaper.jpg"
        monitor = "";
        path = "~/wallpapers/wallpaper.jpg";
      }
     ];
     ];
   };
   };