WallGen: command to generate images

Image from Wallgen

WallGen is an open source Python utility and that it is available to work with it from the command line in your GNU / Linux distro. What it does is generate desktop backgrounds or wallpapers with a simple command. Generate HQ backgrounds with polygons and various colors. They will remind you a bit of the backgrounds used for Material Design, so if you like that type of composition, wallgen is the tool you are looking for ...

Depending on the arguments or options you use for the wallgen command, will generate images for wallpapers of one kind or another, with shape-based patterns, randomly filled surfaces, image-based patterns, etc. Well, once you know what it is and what it can do, the first thing you should do is install it in your distribution in this simple way and that it works for any distro:

git clone https://github.com/SubhrajitPrusty/wallgen.git

cd wallgen

sudo pip install --editable .

Within this package you will have several tools to do various things, although we are going to get to the point what interests us. TO generate those wallpapers that many users like so much. If you want to see the source code of these tools, you can consult the creator's site at GitHub.

La wallgen syntax is simple:

wallgen [opciones] comando [etiquetas]

The available options being –help or -h that allows to obtain help information about a command that it precedes. The available commands are:

  • pic: use an image instead of a gradient.
  • poly: generate a background with polygons using a gradient.
  • shape: generates an image with beautiful shapes.
  • slants - generates image with multi-colored lines

With each of these commands, multiple labels can be used to designate shapes, colors, patterns, etc. For example, here you go various samples how to use it:

wallgen poly 2000 -c "#ff0000" -c "#000000" -c "#0000ff"
wallgen shape 2000 -t diamond -c "#ff0099" -c "#00ddff"
wallgen slants 2000 --swirl
wallgen pic poly foto-base.png -p 50000

I recommend that you do tests, vary parameters and check the result they give. I hope you like your new custom wallpapers ...


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.