mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-01 06:31:04 +01:00
mpvpaper: add module (#6926)
Provides a module for configuring mpvpaper a video wallpaper program for wlroots based wayland compositors. It provides options for setting the 'pauselist' and 'stoplist'.
This commit is contained in:
parent
c54a8ab0d2
commit
d0d9d0a145
7 changed files with 94 additions and 0 deletions
24
tests/modules/programs/mpvpaper/example-config.nix
Normal file
24
tests/modules/programs/mpvpaper/example-config.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
programs.mpvpaper = {
|
||||
enable = true;
|
||||
pauseList = ''
|
||||
firefox
|
||||
librewolf
|
||||
steam
|
||||
'';
|
||||
stopList = ''
|
||||
obs
|
||||
virt-manager
|
||||
gimp
|
||||
'';
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/mpvpaper/pauselist
|
||||
assertFileExists home-files/.config/mpvpaper/stoplist
|
||||
assertFileContent home-files/.config/mpvpaper/pauselist \
|
||||
${./pauselist}
|
||||
assertFileContent home-files/.config/mpvpaper/stoplist \
|
||||
${./stoplist}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue