wpaperd: add wpaperd configuration

Signed-off-by: Avimitin <dev@avimit.in>
This commit is contained in:
Avimitin 2023-09-28 10:47:55 +08:00 committed by Robert Helgesson
parent ae896c810f
commit 209a24dff2
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
8 changed files with 98 additions and 0 deletions

View file

@ -0,0 +1 @@
{ wpaperd-example-settings = ./wpaperd-example-settings.nix; }

View file

@ -0,0 +1,26 @@
{ ... }:
{
config = {
programs.wpaperd = {
enable = true;
settings = {
eDP-1 = {
path = "/home/foo/Pictures/Wallpaper";
apply-shadow = true;
};
DP-2 = {
path = "/home/foo/Pictures/Anime";
sorting = "descending";
};
};
};
test.stubs.wpaperd = { };
nmt.script = ''
assertFileContent home-files/.config/wpaperd/wallpaper.toml \
${./wpaperd-expected-settings.toml}
'';
};
}

View file

@ -0,0 +1,7 @@
[DP-2]
path = "/home/foo/Pictures/Anime"
sorting = "descending"
[eDP-1]
apply-shadow = true
path = "/home/foo/Pictures/Wallpaper"