https://github.com/davidde/photo_background
Simple script that downloads a random photo from unsplash.com, and sets it as the desktop background.
https://github.com/davidde/photo_background
Last synced: 10 months ago
JSON representation
Simple script that downloads a random photo from unsplash.com, and sets it as the desktop background.
- Host: GitHub
- URL: https://github.com/davidde/photo_background
- Owner: davidde
- License: mit
- Created: 2018-04-29T10:28:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T18:01:03.000Z (almost 8 years ago)
- Last Synced: 2025-05-24T06:37:09.186Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# photo_background
Simple script that downloads a random photo from [Unsplash](https://unsplash.com/), and sets it as the desktop background.
I was loosely inspired by [this Rust code](https://github.com/faebser/beautiful-wallpaper-every-day/blob/master/src/main.rs);
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.