Package: color-wallpaper
ColorWallpaperA Minimalist wallpaper generatorGenerates wallpapers such as:RequirementsPython 3.6+InstallationRun:pip install color_wallpaperUsageDirect generation:python -m color_wallpaper --option[s]Options:-h/--helpDisplay help and exitFile options-o/--outputPATHUsed to specify image output path.Default:out.png-y/--yesForces overwrite of--outputColor options-c/--colorCOLORUsed to specify Background color. Also acceptsrandomwhich picks random named color.Default:random-c2/--color2COLORUsed to specify text color. Also acceptsinvertedwhich is the inverse of--color.Default:inverted-d/--displayNAMEOverrides the display name of the--color. Empty string disables the name row.--min-contrastCONTRASTMin contrast of--colorand--color2, if--color2isinverted. Will raise if this can not be satisfied.Default:1--overlay-colorCOLORUsed to specify color of potential overlay, like icons or text.--overlay-contrastCONTRASTMin contrast of --color and --overlay-color. Will raise if this can not be satisfied.Default:1Display options-r/--resolutionRESOLUTIONUsed to specify image resolution.Default:1920x1080.-s/--scaleSCALEThe size of the highlight (128px) will be multiplied by this.Default:3-f/--formats[FORMAT...]Declares the order and formats to displayDefault:empty HEX rgbMultiple wallpapers generation options:--multiple-countMULTIPLE_COUNTGenerate all colors, that pass other options filtering. negative numbers will produce all colorsDefault:1--multiple-extensionMULTIPLE_EXTENSIONThe extension/format of the wallpapersDefault:pngArgument formatsCOLOR#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.CONTRASTA float in range 1-21.RESOLUTIONTwo integers greater or equal to 150, separated byxor:.FORMATSelf explanatory:hex,rgb,hsv,hsl,cmykempty: Empty row.#hex:hex, but starting with##HEX,HEX: Likehex, but uppercaseExamplesTheabove imagepython -m color_wallpaper --color black --output https://raw.githubusercontent.com/BranislavBajuzik/ColorWallpaper/master/example.png --formats empty HEX rgb --resolution 960x540 --scale 2Dynamic Android wallpaperChanges the wallpaper to a new color every time the screen is turned on. Tested on OnePlus 6T.InstallTasker,Termux, andTermux:TaskerIn Termux run:# Give Termux access to internal storagetermux-setup-storage# Get Pythonpkgupgrade
pkginstallpythonpython-devlibjpeg-turbogit# Get Python librariespipinstall--upgradepip
pipinstall--upgradesetuptoolsLIBRARY_PATH="/system/lib"CPATH="$PREFIX/include"pipinstallpillow# Pull the projectgitclonehttps://github.com/BranislavBajuzik/ColorWallpaper.git# Setup triggers for Termux:Taskermkdir-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
chmodu+x~/.termux/tasker/generate-wallpaper.sh# Setup the output foldermkdir-p/sdcard/Pictures/Excluded
touch/sdcard/Pictures/Excluded/.nomediaIn Tasker:Create a new TaskAdd Termux Action with Configuration set togenerate-wallpaper.shAdd Set Wallpaper Action with Image set toPictures/Excluded/paper.pngCreate a new Event Profile for Display Off event, give it Highest priority, and set it's Task to the one you just created.Edit~/.termux/tasker/generate-wallpaper.shto change arguments (e.g. your screen resolution) of the program.Runcd ~/ColorWallpaper && git pullto update the program.ContributeSetup environmentpython-mpipinstall-rrequirements.txt
python-mpipinstall-rrequirements-dev.txt
pre-commitinstallRun testspytest