Jump to content

Hyprpaper: Difference between revisions

From Official NixOS Wiki
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.
m Realized the citation didn't actually link to the page itself... I meant it to. Oops.
 
Line 21: Line 21:


== Home Manager Configuration (New) ==
== Home Manager Configuration (New) ==
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 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 = {
   enable = true;
   enable = true;
   settings = {
   settings = {

Latest revision as of 19:48, 28 March 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
      #"DP-2,~/wallpapers/wallpaper2.jpg"
      # By default/fallback
      ",~/wallpapers/wallpaper.jpg"
    ];
  };
};

Home Manager Configuration (New)

The following is an example of the new syntax required for services.hyprpaper as of the version supplied by nixos-unstable(26.05). It follows the wallpaper object syntax described on the current Hyprland Wiki. [1]

❄︎ /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"; 
      }
    ];
  };
};