Python script that creates wallpaper with covers from personal top chart on Last.fm.
The script requires Python 3.10 or greater.
uv syncThe first run of the script should end up with an error. Just follow the instructions in the error message to create new configuration file.
By default, the script creates wallpaper with resolution 1920x1080 pixels.
The wallpaper will contain cover images of the top albums from personal weekly chart. If a cover image cannot be found, the album is skipped.
Change the wallpaper size:
uv run lastfm_wallpaper --size 3840x2160Show albums (and other info) in the last generated wallpaper:
uv run lastfm_wallpaper --infoUse monthly album chart:
uv run lastfm_wallpaper --days 30Show fewer covers (six in two rows):
uv run lastfm_wallpaper --rows 2 --count 6Album chart from year ago:
uv run lastfm_wallpaper --days-ago 365List available command line switches:
uv run lastfm_wallpaper --helpTo avoid specifying the arguments repeatedly, you can set the options
in configuration file (the default configuration file path is printed with
--help). E.g. on Linux ~/.config/lastfm_wallpaper.ini can contain:
[default]
api_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
api_secret = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
user = lastfm_login
size = 3840x2160
days = 90
days-ago = 1
search = ~/Music/{artist} - {album}/cover.*