Jump to content

Hyprpaper: Difference between revisions

From Official NixOS Wiki
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";
      }
     ];
     ];
   };
   };

Latest revision as of 22:36, 3 June 2026

Hyprpaper is a simple wallpaper utility for Hyprland. It may be configured through Home Manager declarative options. Option may be found at Home Manager - services-hyprpaper.

Examples for Hyprpaper settings may be found on the Hyprland Wiki on their Hyprpaper page. Entries with the same key should be written as lists, variables’ and colors’ names should be quoted.

Home Manager Configuration (NixOS Stable)

❄︎ /etc/nixos/home.nix
services.hyprpaper = {
  enable = true;
  settings = {
    preload = [
      "~/wallpapers/wallpaper2.jpg"
      "~/wallpapers/wallpaper.jpg"
    ];
    wallpaper = [
      # By display
      # {
      #   monitor = "DP-2";
      #   path = "~/wallpapers/wallpaper2.jpg";
      # }
      # By default/fallback
      {
        monitor = "";
        path = "~/wallpapers/wallpaper.jpg"; 
      }
    ];
  };
};

Home Manager Configuration (NixOS Legacy)

The following is an example of the old services.hyprpaper syntax used before the changes introduced in later nixos 26.05 version.

❄︎ /etc/nixos/home.nix
services.hyprpaper = {
  enable = true;
  settings = {
    preload = [
      "~/wallpapers/wallpaper2.jpg"
      "~/wallpapers/wallpaper.jpg"
    ];
    wallpaper = [
      # By display
      #"DP-2,~/wallpapers/wallpaper2.jpg"
      # By default/fallback
      ",~/wallpapers/wallpaper.jpg"
    ];
  };
};