mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-13 19:54:21 +02:00
wallpaper: transform extra-images argument to use number of outputs
This commit is contained in:
parent
dd55f8bc65
commit
0870cdefe6
1 changed files with 3 additions and 3 deletions
|
@ -370,9 +370,9 @@ if __name__ == "__main__":
|
||||||
)
|
)
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--extra-images",
|
"--extra-images",
|
||||||
default=3,
|
default=1,
|
||||||
metavar="N",
|
metavar="N",
|
||||||
help="consider N additional images to choose the best combination",
|
help="consider N additional images per output to choose the best combination",
|
||||||
)
|
)
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--count-attribute",
|
"--count-attribute",
|
||||||
|
@ -430,7 +430,7 @@ if __name__ == "__main__":
|
||||||
outputs, background = get_outputs()
|
outputs, background = get_outputs()
|
||||||
candidates = get_covering_rectangles(outputs)
|
candidates = get_covering_rectangles(outputs)
|
||||||
images = get_random_images(
|
images = get_random_images(
|
||||||
options.directory, len(outputs) + options.extra_images
|
options.directory, len(outputs) * (1 + options.extra_images)
|
||||||
)
|
)
|
||||||
wallpaper_parts = get_best_parts(
|
wallpaper_parts = get_best_parts(
|
||||||
candidates,
|
candidates,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue