wpaperd: add wpaperd configuration
Signed-off-by: Avimitin <dev@avimit.in>
This commit is contained in:
parent
ae896c810f
commit
209a24dff2
8 changed files with 98 additions and 0 deletions
1
tests/modules/programs/wpaperd/default.nix
Normal file
1
tests/modules/programs/wpaperd/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ wpaperd-example-settings = ./wpaperd-example-settings.nix; }
|
||||
26
tests/modules/programs/wpaperd/wpaperd-example-settings.nix
Normal file
26
tests/modules/programs/wpaperd/wpaperd-example-settings.nix
Normal 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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
[DP-2]
|
||||
path = "/home/foo/Pictures/Anime"
|
||||
sorting = "descending"
|
||||
|
||||
[eDP-1]
|
||||
apply-shadow = true
|
||||
path = "/home/foo/Pictures/Wallpaper"
|
||||
Loading…
Add table
Add a link
Reference in a new issue