Makeea / background-changer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSx Background Changer

This tool, when installed, will grab images from Unsplash. It will the apply different images to the background of each of your desktops, virtual or otherwise once daily at 5 AM. If your computer is asleep at that time, it will run when it wakes up.

How to manually trigger if you want to change images

From a terminal type: launchctl start local.backgroundchanger

Installation

The following instructions presume you have git installed:

  1. Open up a terminal session
  2. Run the following set of commands, move to step 3 when you get a prompt:
cd ~
git clone https://github.com/brainomite/background-changer.git
cd background-changer
chmod u+x background-changer.sh
chmod u+x wait.sh
chmod u+x setup.sh
./setup.sh
  1. When prompted, go to System Preferences" > Desktop & Screen Savers
  2. Ensure that Change Picture is not checked
  3. For each (doesn't have to be every) desktop you wish to have changed automatically daily. Select a picture to be a background, using the + sign on the bottom left of the windows where you can change the desktop. Please note EACH picture must be different, if any two (or more) are the same, they will get the same unsplash image.
  •  If a background reverts (sometimes happens). Just set the image again
    
  1. Press any key in the terminal that is waiting
  2. Shortly you will see your desktop images change
  3. Installation Complete!

How to remove:

Running the following set of commands in the terminal will remove all traces.

cd ~
launchctl unload Library/LaunchAgents/local.backgroundchanger.plist
rm /Users/aaronyoung/Library/LaunchAgents/local.backgroundchanger.plist
rm -fr background-changer

About

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%