This python script, by Koant, has been around since at least 2008, but I’ve only recently stumbled across it. It’s easy to start using and is available for Windows, Mac and Linux users!
I’ll help you get started in Linux since that’s what I’ve set it up on. If you need more help or want more configuration options you should look to the information that Koant has posted on his website.
- mkdir wallpaperfm
- cd wallpaperfm
- wget http://ledazibao.free.fr/wallpaperfm/wallpaperfm.py
- chmod a+x wallpaperfm.py
Create Your Wallpaper
- ./wallpaperfm.py -u YOURLASTFMUSERNAME
That’s the most basic set of options you can use to create your wallpaper (which you will find after running the script in the “wallpaperfm” folder that was created).
There are three options for the type of wallpaper created:
To specify one of these modes, simply run the wallpaper script with the mode flag set to your choice.
- ./wallpaperfm.py -u YOURLASTFMUSERNAME -m collage
There are plenty of other settings you can specify such as size, canvas size, filename, profile period, final opacity, cache, excluded albums, local copy, etc.
Suggestions and Ideas
User Interface and Packaging
I’m sure that this script could be simplified further for Linux users (and more specifically, Debian/Ubuntu users) if a user interface were created. It actually seems like a rather simple task since the parameters for the script are well bounded.
Adding this interface to an installer package would also be a very simple task and would most likely get more attention to such a neat tool!
Cron Jobs, Regularly Updating Your Wallpaper
Another thing, if your music preferences are constantly changing like mine, you may be interested in updating your wallpaper in regular intervals. To do this you can setup a Cron job that runs in the background.
While this may sound difficult and confusing, its really not at all and this helps explain a lot. I can even walk you through the steps.
- sudo apt-get install gnome-schedule
- Open the application (in Ubuntu) through the Applications menu -> System Tools -> Scheduled tasks.
- Click the New button and select the Recurrent task type.
- Give the task a description.
- Enter the command that runs your script. If you followed the steps above then it should be something similar to:
/home/YOURUBUNTUNAME/wallpaperfm/wallpaperfm.py -u YOURLASTFMUSERNAME -m collage -f /home/YOURUBUNTUNAME/wallpaperfm/wallpaper
- Set the Time & Date option to hourly, daily, weekly, or monthly.
- Click the “Add” button to add it to your list of Scheduled Tasks and you’re done!
Have any other suggestions or tips? Leave ’em in the comments!