Skip to content

Changes desktop background image according to the last song scrobbled by a last.fm user.

Notifications You must be signed in to change notification settings

undead404/song-background-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

song-background-image

Changes desktop background image according to the last song scrobbled by a last.fm user.

My screenshot

Usage

0. Clone this repository && change current directory to the script's folder

git clone https://github.com/undead404/song-background-image.git && cd song-background-image

1. Create in the script's folder an .env file with content as followed:

API_KEY={your api key} (request it here) API_SECRET={your api secret} (corresponding to your API_KEY) LASTFM_USERNAME={your last.fm username}

2. Install requirements

# pip3 install -r requirements.txt

3. Set up cron to launch the script

$ crontab -e

I set the script to change my background image every minute:

* * * * * /usr/bin/python3/ /home/undead404/projects/song-background-image/root.py >> /home/undead404/projects/song-background-image/log.txt

About

Changes desktop background image according to the last song scrobbled by a last.fm user.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published