Skip to content

A python script to download a searched image from unsplash and set it as a background using feh

Notifications You must be signed in to change notification settings

kevinhowbrook/i3-backgrounds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i3 Backgrounds

Description

This is a simple script that downloads a random image from Unsplash and sets it as the desktop background. The idea is to do this for i3 with a key binding so you can change your background with a keypress.

Requirements

  • Unsplash API key

Running

  1. Clone the repository into ~/shared/i3-backgrounds
  2. Copy local.config.py to config.py
  3. Add your Unsplash API key to config.py
  4. Run with python main.py

You can clone it to another location but you'll have to adjust a few paths in main.py for the download image location.

Setup to run with an i3 binding

Add this to your i3 config file, this would configure mod+i to run the script. Now mod_i will change your background. :)

bindsym $mod+i exec --no-startup-id ~/shared/i3-backgrounds/main.py

About

A python script to download a searched image from unsplash and set it as a background using feh

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages