<commit_before>﻿# reddit_wallpaper

## Requirements

imagemagick and bc need to be installed

    apt-get install imagemagick bc

## Install

Clone:

    git clone git://github.com/iwvelando/reddit_wallpaper.git

You'll need to edit reddit_wallpaper/reddit_wallpaper.sh to suit your own system:

(Likely) required changes:
- Line 8: Change walldir to the directory where you want the finished wallpapers to be moved to
- Line 7: If you're not allowed to or don't want to write to /tmp you'll also need to change scratchdir; this is where images will be pulled, manipulated, and combined before being moved to walldir.
- Lines 17,18: Specify the desired wallpaper resolution which is probably your monitor resolution.

Now you can simply execute reddit_wallpaper/reddit_wallpaper.sh either from a terminal or just by clicking it in your favorite file manager.

## Usage and Customization

- Line 6: List of subreddits the wallpapers will be created from
- Line 10: (Optionally) set the background image for the wallpapers if there is any empty space leftover after the images have been combined
- Line 11: Refresh interval in seconds; this is how frequently you query imgur for these subreddits and update the wallpapers
- Line 52: You can use this line instead of line 53 to use either a transparent background or a solid color background and to force-stretch each image to fit flush in the grid<commit_msg>Clarified readme a bit<commit_after>﻿# reddit_wallpaper

## Requirements

imagemagick and bc need to be installed

    apt-get install imagemagick bc

## Install

Clone:

    git clone git://github.com/iwvelando/reddit_wallpaper.git

You'll need to edit reddit_wallpaper/reddit_wallpaper.sh to suit your own system:

(Likely) required changes:
- Line 8: Change walldir to the directory where you want the finished wallpapers to be moved to
- Line 7: If you're not allowed to or don't want to write to /tmp you'll also need to change scratchdir; this is where images will be pulled, manipulated, and combined before being moved to walldir.
- Lines 17,18: Specify the desired wallpaper resolution which is probably your monitor resolution.

Now you can simply execute reddit_wallpaper/reddit_wallpaper.sh either from a terminal or just by clicking it in your favorite file manager. The finished wallpapers should appear in walldir (as set in the script).

## Usage and Customization

- Line 6: List of subreddits the wallpapers will be created from
- Line 10: (Optionally) set the background image for the wallpapers if there is any empty space leftover after the images have been combined
- Line 11: Refresh interval in seconds; this is how frequently you query imgur for these subreddits and update the wallpapers
- Line 52: You can use this line instead of line 53 to use either a transparent background or a solid color background and to force-stretch each image to fit flush in the grid
{'fraction_non_alphanumeric': 0.041091160220994474, 'fraction_numerical': 0.010359116022099447, 'mean_word_length': 4.435272045028142, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4241941', 'n_tokens_mistral': 797, 'n_tokens_neox': 749, 'n_words': 428}