A chromecast-like wallpaper changer app using UnSplash API for GNome based linux distros that support GIO library.
- Get API key from UnSplash : https://api.unsplash.com/
- git clone this repository
- Make edits indicated in source code
- Execute python script using python3
- Just like that a new wallpaper is installed on your machine!
-
On execute
-
Retrieves Background Img Link
a. Call UnSplash API URL : 'https://api.unsplash.com/search/photos? page='+PAGE_NUM+'&query='+QUERY_TERM+'&client_id='+self.client_id
b. Extract Randomly Picked Img Link -
Downloads Img using Img Link
a. Using subprocess python library
i. Uses "curl -o filename IMG_URL" to download image
b. Using gio python library
i. Sets background image