https://github.com/ssimunic/Daily-Reddit-Wallpaper
Change your wallpaper to the most upvoted image of the day from /r/wallpapers or any other subreddit on system startup
https://github.com/ssimunic/Daily-Reddit-Wallpaper
daily-wallpaper reddit subreddit wallpaper
Last synced: 10 months ago
JSON representation
Change your wallpaper to the most upvoted image of the day from /r/wallpapers or any other subreddit on system startup
- Host: GitHub
- URL: https://github.com/ssimunic/Daily-Reddit-Wallpaper
- Owner: ssimunic
- License: gpl-3.0
- Created: 2016-06-24T20:39:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-03-05T23:07:45.000Z (over 4 years ago)
- Last Synced: 2024-12-13T01:33:55.837Z (over 1 year ago)
- Topics: daily-wallpaper, reddit, subreddit, wallpaper
- Language: Python
- Homepage: http://ssimunic.github.io/Daily-Reddit-Wallpaper/
- Size: 166 KB
- Stars: 306
- Watchers: 12
- Forks: 50
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: change_wallpaper_reddit.py
- License: LICENSE
Awesome Lists containing this project
README
# Daily Reddit Wallpaper
[](https://travis-ci.org/ssimunic/Daily-Reddit-Wallpaper)
This script changes your wallpaper to most upvoted image of the day on [/r/wallpapers](https://www.reddit.com/r/wallpapers/) or from any other subreddit.
**Run it on startup for new wallpaper on every session.**
*Supported: Linux (gnome, kde, mate, lxde), Windows and OS X*
Dependencies
=======
Make sure you have [Python](https://www.python.org/downloads/) installed and PATH variable set.
Ubuntu
------
If you don't have ```pip ``` for Python:
```
sudo apt-get install python-pip
```
You will need modules ```requests``` and ```praw``` installed, which are in requirements.txt:
```
pip install -r requirements.txt
```
Windows
------
Follow [this guide](https://pip.pypa.io/en/stable/installing/) to install ```pip``` and configure PATH variable.
The rest is the same.
Using script
=======
Simply run:
```
python /home/silvio/Scripts/change_wallpaper_reddit.py
```
If you wanna use other subreddit, include argument with the subreddit name:
```
python /home/silvio/Scripts/change_wallpaper_reddit.py --subreddit art
```
If you don't want to change your wallpaper daily, you can use newest, hourly, weekly, monthly or yearly wallpaper too by adding one of the following arguments: ```new```, ```hour```, ```week```, ```month```, ```year``` to the script.
Example:
```
python /home/silvio/Scripts/change_wallpaper_reddit.py --time week
```
NSFW images are disabled by default, to enable them add ```--nsfw```.
On OS X, you can specify display number with option ```--display```. Use 0 for all display (default), 1 for main display and so on.
To change default location where image will be saved, use ```--output folder/subfolder```.
Running on startup
=======
Ubuntu
------
To make managment of the script simple, we can accomplish this using built-in Startup Applications.

Click on Add.

Note: you can use ```--subreddit``` and ```--time``` arguments here aswell.
Windows
------
We will be using Task Scheduler for this. You can find it in Windows search.
Once you open it, click on ```Create Basic Task```
Follow the procedure.




In ```Add arguments``` field type the location of the script. Example
```
"D:\change_wallpaper_reddit.py"
```
or
```
"D:\change_wallpaper_reddit.py" --subreddit art --time week
```
Running every minute or hour
=======
Look into using cronjobs on Linux or Task Scheduler on Windows for performing this.
Configuration file
=======
Instead of writing arguments every time you run the script, you can also use configuration file which should be located at ```~/.config/change_wallpaper_reddit.rc```.
Example of configuration file:
```
subreddit=art
time=day
```