The plan is to sync this with awesome to generate new wallpapers on new load
A Minimalist wallpaper generator
Generates wallpapers such as:
Generated with:
python -m color_wallpaper --color black --output example.png --formats empty HEX rgb --resolution 960x540 --scale 2
Direct generation: python ColorWallpaper.py --option[s]
-h
/--help
- Display help and exit
-o
/--output
PATH
- Used to specify image output path.
- Default:
out.png
-y
/--yes
- Forces overwrite of
--output
- Forces overwrite of
-c
/--color
COLOR
- Used to specify Background color. Also accepts
random
which picks random named color. - Default:
random
- Used to specify Background color. Also accepts
-c2
/--color2
COLOR
- Used to specify text color. Also accepts
inverted
which is the inverse of--color
. - Default:
inverted
- Used to specify text color. Also accepts
-d
/--display
NAME
- Overrides the display name of the
--color
. Empty string disables the name row.
- Overrides the display name of the
--min-contrast
CONTRAST
- Min contrast of
--color
and--color2
, if--color2
isinverted
. Will raise if this can not be satisfied. - Default:
1
- Min contrast of
--overlay-color
COLOR
- Used to specify color of potential overlay, like icons or text.
--overlay-contrast
CONTRAST
- Min contrast of --color and --overlay-color. Will raise if this can not be satisfied.
- Default:
1
-r
/--resolution
RESOLUTION
- Used to specify image resolution.
- Default:
1920x1080
.
-s
/--scale
SCALE
- The size of the highlight (128px) will be multiplied by this.
- Default:
3
-f
/--formats
[FORMAT
...]- Declares the order and formats to display
- Default:
empty HEX rgb
COLOR
#Hex
: Three or six hexadecimal digits optionally starting with#
.R,G,B
: Three comma separated numbers in range 0-255.- Valid name of a color.
CONTRAST
- A float in range 1-21.
RESOLUTION
- Two positive integers greater or equal to 150, separated by
x
or:
.
- Two positive integers greater or equal to 150, separated by
FORMAT
- Self explanatory:
hex
,rgb
,hsv
,hsl
,cmyk
empty
: Empty row.#hex
:hex
, but starting with#
#HEX
,HEX
: Likehex
, but uppercase
- Self explanatory:
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
pre-commit install
python -m unittest discover