Skip to content

davidde/photo_background

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

photo_background

Simple script that downloads a random photo from Unsplash, and sets it as the desktop background.

I was loosely inspired by this Rust code; finding it hard to follow, I decided to rewrite it in Python.

Dependencies

pip install requests pillow

Usage

photo_background.py [-h] [subject]

  • positional arguments:
    subject: The subject of the photograph

  • optional arguments:
    -h, --help: show this help message and exit

Problems

Linux

  • Only Gnome based distro's are supported.
  • When using Python from Anaconda, you might run into the following notification:
    "GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications."
    If this occurs, settings are not saved, and the background will not be changed. There is an easy fix though:
    Add "export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/" to your .bashrc or .zshrc.

About

Simple script that downloads a random photo from unsplash.com, and sets it as the desktop background.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages