ColorWallpaper
Minimalist wallpaper generator
Install / Use
/learn @BranislavBajuzik/ColorWallpaperREADME
ColorWallpaper
A Minimalist wallpaper generator
Generates wallpapers such as:

Requirements
Installation
Run: pip install color_wallpaper
Usage
Direct generation: python -m color_wallpaper --option[s]
Options:
-h/--help- Display help and exit
File options
-o/--outputPATH- Used to specify image output path.
- Default:
out
-e/--extensionEXTENSION- The extension/format of the wallpaper
- Default:
png
-y/--yes- Forces overwrite of
--output
- Forces overwrite of
Color options
-c/--colorCOLOR- Used to specify Background color. Also accepts
randomwhich picks random named color. - Default:
random
- Used to specify Background color. Also accepts
-c2/--color2COLOR- Used to specify text color. Also accepts
invertedwhich is the inverse of--color. - Default:
inverted
- Used to specify text color. Also accepts
-d/--displayNAME- Overrides the display name of the
--color. Empty string disables the name row.
- Overrides the display name of the
--min-contrastCONTRAST- Min contrast of
--colorand--color2, if--color2isinverted. Will raise if this can not be satisfied. - Default:
1
- Min contrast of
--overlay-colorCOLOR- Used to specify color of potential overlay, like icons or text.
--overlay-contrastCONTRAST- Min contrast of --color and --overlay-color. Will raise if this can not be satisfied.
- Default:
1
Display options
-r/--resolutionRESOLUTION- Used to specify image resolution.
- Default:
1920x1080.
-s/--scaleSCALE- 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
Multiple wallpapers generation options:
--multiple-countMULTIPLE_COUNT- Generate all colors, that pass other options filtering. Negative numbers will produce all colors
- Default:
1
Argument formats
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.
- Higher number means greater contrast
- Full definition in the WCAG 2.1
RESOLUTION- Pixels
- Two integers greater or equal to 150, separated by
xor:.
FORMAT- Self explanatory:
hex,rgb,hsv,hsl,cmyk empty: Empty row.#hex:hex, but starting with##HEX,HEX: Likehex, but uppercase
- Self explanatory:
Examples
The above image
python -m color_wallpaper --color black --output example.png --formats empty HEX rgb --resolution 960x540 --scale 2
Dynamic Android wallpaper
Changes the wallpaper to a new color every time the screen is turned on. Tested on OnePlus 6T.
Install Tasker, Termux, and Termux:Tasker
In Termux run:
# Give Termux access to internal storage
termux-setup-storage
# Get Python
pkg upgrade
pkg install python python-dev libjpeg-turbo git
# Get Python libraries
pip install --upgrade pip
pip install --upgrade setuptools
LIBRARY_PATH="/system/lib" CPATH="$PREFIX/include" pip install pillow
# Pull the project
git clone https://github.com/BranislavBajuzik/ColorWallpaper.git
# Setup triggers for Termux:Tasker
mkdir -p ~/.termux/tasker/
echo $'cd ~/ColorWallpaper\npython -m color_wallpaper -y -o /sdcard/Pictures/Excluded/paper.png -c random --min-contrast 2.5 --overlay-color white --overlay-contrast 1.5 -r 1080x2340 -s 4 -f empty \#HEX rgb hsv cmyk' > ~/.termux/tasker/generate-wallpaper.sh
chmod u+x ~/.termux/tasker/generate-wallpaper.sh
# Setup the output folder
mkdir -p /sdcard/Pictures/Excluded
touch /sdcard/Pictures/Excluded/.nomedia
In Tasker:
- Create a new Task
- Add Termux Action with Configuration set to
generate-wallpaper.sh - Add Set Wallpaper Action with Image set to
Pictures/Excluded/paper.png
- Add Termux Action with Configuration set to
- Create a new Event Profile for Display Off event, give it
Highestpriority, and set its Task to the one you just created. - Edit
~/.termux/tasker/generate-wallpaper.shto change arguments (e.g. your screen resolution) of the program. - Run
cd ~/ColorWallpaper && git pullto update the program.
Contribute
Setup environment
python -m pip install -r requirements-dev.txt
pre-commit install
Run tests
pytest
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
