Hyprpaper: Difference between revisions
Simple config page for hyprpaper |
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 |
||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
[https://github.com/hyprwm/hyprpaper Hyprpaper] is a simple wallpaper utility for [[Hyprland]]. It may be configured through Home Manager declarative options | [https://github.com/hyprwm/hyprpaper Hyprpaper] is a simple wallpaper utility for [[Hyprland]]. It may be configured through Home Manager declarative options. Option may be found at [https://nix-community.github.io/home-manager/options.xhtml#opt-services.hyprpaper.enable Home Manager - services-hyprpaper]. | ||
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; | ||
settings = { | settings = { | ||
preload = [ | preload = [ | ||
"~/wallpapers/wallpaper2.jpg" | |||
"~/wallpapers/wallpaper.jpg" | "~/wallpapers/wallpaper.jpg" | ||
]; | ]; | ||
wallpaper = [ | wallpaper = [ | ||
"DP-2 | # By display | ||
# { | |||
# monitor = "DP-2"; | |||
# path = "~/wallpapers/wallpaper2.jpg"; | |||
# } | |||
# By default/fallback | |||
{ | |||
monitor = ""; | |||
path = "~/wallpapers/wallpaper.jpg"; | |||
} | |||
]; | ]; | ||
}; | }; | ||
};|name=/etc/nixos/home.nix|lang=nix}} | };|name=/etc/nixos/home.nix|lang=nix}} | ||
== Home Manager Configuration (NixOS Legacy) == | |||
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; | |||
settings = { | |||
preload = [ | |||
"~/wallpapers/wallpaper2.jpg" | |||
"~/wallpapers/wallpaper.jpg" | |||
]; | |||
wallpaper = [ | |||
# By display | |||
#"DP-2,~/wallpapers/wallpaper2.jpg" | |||
# By default/fallback | |||
",~/wallpapers/wallpaper.jpg" | |||
]; | |||
}; | |||
};|name=/etc/nixos/home.nix|lang=nix}} | |||
[[Category:Hyprland]] | |||