commit 313a304fc465dc433b66a3bca56404bf7b3c459a
parent 9a63af0b61043a4635d5291a1f959e4223a39579
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Tue, 1 Jul 2025 11:43:56 +0200
parent 9a63af0b61043a4635d5291a1f959e4223a39579
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Tue, 1 Jul 2025 11:43:56 +0200
config/home/zaphyra/services: add `wpaperd`
1 file changed, 41 insertions(+), 0 deletions(-)
diff --git a/config/home/zaphyra/services/wpaperd.nix b/config/home/zaphyra/services/wpaperd.nix @@ -0,0 +1,41 @@ +{ config, pkgs, lib, ... }: + +{ + + services.wpaperd = { + enable = true; + settings = { + default = { + duration = "30m"; + mode = "center"; + sorting = "ascending"; + transition.hexagonalize = { }; + }; + + any.path = pkgs.buildEnv { + name = "nixos-artwork"; + paths = ( + pkgs.nixos-artwork.wallpapers + |> lib.attrNames + |> lib.remove "override" + |> lib.remove "overrideDerivation" + # removed because too bright + |> lib.remove "binary-white" + |> lib.remove "catppuccin-latte" + |> lib.remove "moonscape" + |> lib.remove "nineish-catppuccin-latte" + |> lib.remove "nineish-catppuccin-latte-alt" + |> lib.remove "nineish-solarized-light" + |> lib.remove "nineish" + |> lib.remove "simple-light-gray" + |> map (name: "${pkgs.nixos-artwork.wallpapers.${name}}/share/backgrounds/nixos") + ); + }; + }; + }; + + programs.niri.settings.binds = with config.lib.niri.actions; { + "Mod+Home".action = spawn (lib.getExe' pkgs.wpaperd "wpaperctl") "next"; + }; + +}