Hyprpaper: Difference between revisions

This is just an additional example for the new Hyprpaper wallpaper syntax as described on the cited Hyprland Wiki. My current install of hyprpaper on nixos-unstable wasn't working with the old syntax so I thought this addition might help others. Open to criticism/needs for editing.
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
 
(One intermediate revision by one other user not shown)
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><nowiki>https://wiki.hypr.land/Hypr-Ecosystem/hyprpaper/</nowiki></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";
      }
     ];
     ];
   };
   };