[desktop] Sets up wpaperd to pull wallpaper from monitor-named folders

This commit is contained in:
2025-03-31 17:41:31 -07:00
parent 938dfd49bf
commit bec89ba571
4 changed files with 18 additions and 2 deletions

View File

@@ -2,7 +2,6 @@
{
imports = [
./hyprland.nix
./hyprpaper.nix
./audio.nix
./nix.nix
./rofi/rofi.nix
@@ -30,7 +29,6 @@
wirelesstools
waypaper # Wallpaper switcher
phinger-cursors # Mouse cursors
];
# Hint for electron apps to use wayland

View File

@@ -0,0 +1,15 @@
monitors:
{ ... }:
{
wayland.windowManager.hyprland.settings.exec-once = [
"wpaperd"
];
programs.wpaperd = {
enable = true;
settings = builtins.listToAttrs (map (mon: {
name = mon;
value = { path = "~/Pictures/Wallpaper/${mon}"; };
}) monitors);
};
}