reddit-backgrounds

0.2.4 • Public • Published

Gnome: Automatically fetch wallpapers from reddit

Simple script that fetches a random, high-rated, lanscape-ish shaped image from a specified reddit (currently hard-coded to "/r/earthporn"), and then sets that as background on Gnome.

Sample

Inspired by styli.sh. What I was missing from styli.sh is the ability to only fetch landscape images. A lot of the images on the reddits I liked were portrait, so no good for a desktop background. This script also avoid duplicates and records a history (in ~/.local/share/reddit-background/history.json) where you can also get a description of the current image.

The script now also adds the description of the image as a caption onto the image itself.

Installation:

Install ImageMagick, e.g., on Ubuntu using

sudo apt install imagemagick

Then:

sudo npm install -g reddit-backgrounds

Usage:

gnome-reddit-background

To add a cron-job that replaces your background every hour, run crontab -e and add:

0 * * * * gnome-reddit-background

Readme

Keywords

none

Package Sidebar

Install

npm i reddit-backgrounds

Weekly Downloads

1

Version

0.2.4

License

MIT

Unpacked Size

1.51 MB

Total Files

8

Last publish

Collaborators

  • chfritz