Code Monkey home page Code Monkey logo

8bit-background's Introduction

How to use

This is currently built for OSX, but with minimal modification could be used on any *NIX system.

The tod.sh script is what changes your desktop background based on the time of day. However in order for this to be automatic, you must set it up to run via cron. The following crontab entry works on OSX 10.8.5, and should work with no modification for any system.

First, execute EDITOR=nano crontab -e from the command line. Add a line to the bottom that matches the following, but replace the path with the path to the tod.sh script on your own machine. Vim does not work to edit crontab on OSX for some reason, hence the EDITOR=nano.

0 * * * * /Users/Paul/Repositories/8bit-background/tod.sh

This will schedule the script to run once an hour.

Multiple monitors

By default, tod.sh sets the background for your primary monitor. If you want it to set the background of a particular monitor, pass the -m flag with the integer value representing the monitor you want to set. This is based on the order in which your desktops are configured in OSX. Passing 1 will set your primary monitor, 2 your secondary monitor, and so forth. You can set the desktop on all available monitors with the -a flag.

Credits

These images come from Pokemon Sapphire (or that's what I've been led to believe by Reddit). If you are the original author and would like credit, please send me a message so I can properly credit you for your work.

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.