Skip to content

Commit aa3d193

Browse files
author
Igor Barsi
committed
- Removed virtualenv from repo, should be created after clean clone.
- Added `.gitignore`. - Updated README.
1 parent 4e637e4 commit aa3d193

File tree

594 files changed

+11
-169741
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

594 files changed

+11
-169741
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Project
2+
/desktop-randomizer

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ pick a random one, save/update locally and set as my current desktop background.
55

66
### GETTING STARTED ###
77
1. Ensure you have a Python environment setup on your machine.
8-
2. Create an image file in your "Desktop Images" folder called `RandomizedImage.jpg` (this name can be changed in `config.json`).
9-
3. Install `virtualenv` and activate it in this project's root by running `virtualenv desktop-randomize/bin/activate`.
10-
4. Run `./main.py` to update Desktop image.
8+
2. Run `pip install virtualenv`.
9+
3. Create your virtualenv by running `virtualenv desktop-randomizer` (this path has been added to `.gitignore`).
10+
4. Activate virtualenv by running `source desktop-randomizer/bin/activate`.
11+
5. Install frozen dependencies by running `pip install -r requirements.txt`.
12+
6. Create an image file in your "Desktop Images" folder called `RandomizedImage.jpg` (this name can be changed in `settings.py`).
13+
7. Run `./main.py` to update Desktop image.
1114

1215
#### OPTIONAL ####
1316
This script could be configured to run automatically to keep your desktop _extra_ fresh.
@@ -22,8 +25,8 @@ midnight).
2225

2326
### NOTES ###
2427
Currently, Unsplash's "new" page is used to scrape random images. This can be changed to point to another site, but then all image
25-
config props (ie. `image_*`) in `config.json` must be updated for the script to scrape appropriately. Also, if Unsplash ever decides
26-
to modify their markup then the `image_xpath_logic` config prop will need to be updated, too.
28+
config props (ie. `IMAGE_*`) in `settings.py` must be updated for the script to scrape appropriately. Also, if Unsplash ever decides
29+
to modify their markup then the `IMAGE_XPATH_LOGIC` config prop will need to be updated, too.
2730

2831
This repo was built with OS X only support in mind. It wouldn't take much to support Windows (ie. change "Desktop Images" folder path),
2932
but it wasn't necessary for me at the time of implementation.

com.user-name.desktop-randomizer.plist.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<false/>
2222

2323
<key>RunAtLoad</key>
24-
<false/>
24+
<true/>
2525

2626
<key>StartCalendarInterval</key>
2727
<dict>

desktop-randomizer/.Python

Lines changed: 0 additions & 1 deletion
This file was deleted.

desktop-randomizer/bin/activate

Lines changed: 0 additions & 78 deletions
This file was deleted.

desktop-randomizer/bin/activate.csh

Lines changed: 0 additions & 36 deletions
This file was deleted.

desktop-randomizer/bin/activate.fish

Lines changed: 0 additions & 76 deletions
This file was deleted.

desktop-randomizer/bin/activate_this.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

desktop-randomizer/bin/easy_install

Lines changed: 0 additions & 11 deletions
This file was deleted.

desktop-randomizer/bin/easy_install-2.7

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)