Skip to content

Commit

Permalink
Changed a little bit the Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
federicotorrielli committed Dec 24, 2020
1 parent 84a2857 commit 0dccbb4
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This script changes your wallpaper to most upvoted image of the day on [/r/wallp

Dependencies
=======
Make sure you have [Python](https://www.python.org/downloads/) installed and PATH variable set.
Make sure you have [Python3](https://www.python.org/downloads/) installed and PATH variable set.

Ubuntu
------
Expand All @@ -25,6 +25,21 @@ You will need modules ```requests``` and ```praw``` installed, which are in requ
pip install -r requirements.txt
```

Arch
------
If you don't have ```pip``` for Python:
```
pacman -S python-pip
```
or, with yay:
```
yay -S python-pip
```
Then just install the requirements.txt with:
```
pip install -r requirements.txt
```

Windows
------
Follow [this guide](https://pip.pypa.io/en/stable/installing/) to install ```pip``` and configure PATH variable.
Expand All @@ -37,21 +52,21 @@ Your api_key will be the Reddit API secret and your client_id the first and smal

![Reddit API](https://camo.githubusercontent.com/d53f92cd85d1279a239444acee25179e8e6d8bb5/687474703a2f2f692e696d6775722e636f6d2f65326b4f5231612e706e67)

Then, simply run:
Then, in the current project folder, run:
```
python /home/silvio/Scripts/change_wallpaper_reddit.py
python 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
python 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
python change_wallpaper_reddit.py --time week
```

NSFW images are disabled by default, to enable them add ```--nsfw```.
Expand Down

0 comments on commit 0dccbb4

Please sign in to comment.