Hyprpaper: Difference between revisions
Red40system (talk | contribs) 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. |
|||
| Line 3: | Line 3: | ||
Examples for Hyprpaper settings may be found on the [https://wiki.hypr.land/Hypr-Ecosystem/hyprpaper/ Hyprland Wiki on their Hyprpaper page]. Entries with the same key should be written as lists, variables’ and colors’ names should be quoted. | Examples for Hyprpaper settings may be found on the [https://wiki.hypr.land/Hypr-Ecosystem/hyprpaper/ 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 == | == Home Manager Configuration (NixOS Stable) == | ||
{{File|3=services.hyprpaper = { | {{File|3=services.hyprpaper = { | ||
enable = true; | enable = true; | ||
| Line 16: | Line 16: | ||
# By default/fallback | # By default/fallback | ||
",~/wallpapers/wallpaper.jpg" | ",~/wallpapers/wallpaper.jpg" | ||
]; | |||
}; | |||
};|name=/etc/nixos/home.nix|lang=nix}} | |||
== 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 = { | |||
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"; | |||
} | |||
]; | ]; | ||
}; | }; | ||