mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-03 12:09:19 +00:00
feh: add themes option (#6074)
- added themes option - added themes test - updated broken man page links
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
feh-empty-config = ./feh-empty-settings.nix;
|
||||
feh-bindings = ./feh-bindings.nix;
|
||||
feh-themes = ./feh-themes.nix;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/feh/buttons
|
||||
assertPathNotExists home-files/.config/feh/keys
|
||||
assertPathNotExists home-files/.config/feh/themes
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
6
tests/modules/programs/feh/feh-themes-expected
Normal file
6
tests/modules/programs/feh/feh-themes-expected
Normal file
@@ -0,0 +1,6 @@
|
||||
booth --full-screen --hide-pointer --slideshow-delay 20
|
||||
example --info 'foo bar'
|
||||
feh --image-bg black
|
||||
imagemap -rVq --thumb-width 40 --thumb-height 30 --index-info '%n\n%wx%h'
|
||||
present --full-screen --sort name --hide-pointer
|
||||
webcam --multiwindow --reload 20
|
||||
32
tests/modules/programs/feh/feh-themes.nix
Normal file
32
tests/modules/programs/feh/feh-themes.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs.feh.enable = true;
|
||||
|
||||
programs.feh.themes = {
|
||||
feh = [ "--image-bg" "black" ];
|
||||
webcam = [ "--multiwindow" "--reload" "20" ];
|
||||
present = [ "--full-screen" "--sort" "name" "--hide-pointer" ];
|
||||
booth = [ "--full-screen" "--hide-pointer" "--slideshow-delay" "20" ];
|
||||
imagemap = [
|
||||
"-rVq"
|
||||
"--thumb-width"
|
||||
"40"
|
||||
"--thumb-height"
|
||||
"30"
|
||||
"--index-info"
|
||||
"%n\\n%wx%h"
|
||||
];
|
||||
example = [ "--info" "foo bar" ];
|
||||
};
|
||||
|
||||
test.stubs.feh = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
home-files/.config/feh/themes \
|
||||
${./feh-themes-expected}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user