Coder Social home page Coder Social logo

reddit_wallpaper's Introduction

Reddit wallpaper getter

Run this script at startup to set your background to a random image from reddit, by default using /r/wallpapers. It works with gnome, smii, spectrwm, and perhaps others. Not KDE or XFCE as far as I know.

Note: Reddit sometimes throttles requests to it's json API, or sometimes the request times out. Try again if it fails to work.

Note2: It only currently support image links from imgur.com

Requirements:

  • Python 2.7+ or 3

For tiling window managers:

  • feh (sudo apt-get install feh)

Usage:

You can just run:

$ ./reddit_wallpaper_getter.py

Output of --help:

usage: reddit_wallpaper_getter.py [-h] [--destination DESTINATION]
                                  [--overwrite-existing OVERWRITE_EXISTING]
                                  [--output-name OUTPUT_NAME]
                                  [--reddit-json-url REDDIT_JSON_URL]
                                  [--set-wallpaper SET_WALLPAPER]
                                  [--min-resolution MIN_RESOLUTION]

Use reddit for wallpapers

optional arguments:
  -h, --help            show this help message and exit
  --destination DESTINATION
                        Destination directory (default: /home/b/.r_wallpapers)
  --overwrite-existing OVERWRITE_EXISTING
                        Overwrite file if exists? (True / False), default is
                        False
  --output-name OUTPUT_NAME
                        Output filename (defaults to imgur name)
  --reddit-json-url REDDIT_JSON_URL
                        Specify a subreddit .json url. (default http://www.red
                        dit.com/r/wallpapers/top.json?t=week&limit=50)
  --set-wallpaper SET_WALLPAPER
                        Set wallpaper? (True / False), default is True
  --min-resolution MIN_RESOLUTION
                        Specify resolution (format is NxN, example:
                        1920x1080). Enter from 3 to 5 digits. We'll try to
                        guess the resolution based on the post title and
                        permalink

reddit_wallpaper's People

Contributors

benwah avatar

Stargazers

Ezequiel Ramos avatar louise! avatar akahanaton avatar Yask Srivastava avatar Vicente Marçal avatar  avatar Johnathan Radünz Nunes avatar Taha avatar Nick avatar Husam Bilal avatar Jason Harris avatar Puneeth avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.