Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 904 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 904 Bytes

WallChanger

A chromecast-like wallpaper changer app using UnSplash API for GNome based linux distros that support GIO library.

To use the app:

  1. Get API key from UnSplash : https://api.unsplash.com/
  2. git clone this repository
  3. Make edits indicated in source code
  4. Execute python script using python3
  5. Just like that a new wallpaper is installed on your machine!

Here's how the app works:

  1. On execute

  2. 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

  3. 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