项目作者: MX-Futhark

项目描述 :
Wallpaper generation for multiple screens setups
高级语言: Python
项目地址: git://github.com/MX-Futhark/wallpaper-round-robin.git
创建时间: 2017-03-09T19:07:40Z
项目社区:https://github.com/MX-Futhark/wallpaper-round-robin

开源协议:MIT License

下载


Wallpaper Round Robin

Generates wallpapers for multiple monitors setups by combining png or jpg images together.

Requirements

  • Python 3
  • PIL

Usage

This section aims at guiding the user by providing basic examples.
For more details, please run python3 main.py -h.

There are three generation methods which work as follow.

Let the setup contain two monitors, and suppose we have the following file tree:

  1. dirI
  2. |____A.png
  3. |____B.png
  4. dirII
  5. |____1.png
  6. |____2.jpg
  7. |____3.jpg

Round Robin method

Run the following command:

python3 main.py -i dirI dirII --m round_robin

The resulting wallpapers should be generated according to the following pattern,
in this order:

  1. +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+
  2. | A | 1 | | B | 1 | | B | 2 | | A | 2 | | A | 3 | | B | 3 |
  3. +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+
  4. +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+
  5. | B | 1 | | A | 1 | | A | 2 | | B | 2 | | B | 3 | | A | 3 |
  6. +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+

One-to-one method

Run the following command:

python3 main.py -i dirI dirII --m one_to_one

The resulting wallpapers should be generated according to the following pattern,
in this order:

  1. +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+
  2. | A | 1 | | B | 2 | | A | 3 | | B | 1 | | A | 2 | | B | 3 |
  3. +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+

Run the following command (note that -i takes only one directory):

python3 main.py -i dirII --m gallery

The resulting wallpapers should be generated according to the following pattern,
in this order:

  1. +---+---+ +---+---+ +---+---+
  2. | A | B | | B | C | | C | A |
  3. +---+---+ +---+---+ +---+---+