Coder Social home page Coder Social logo

bing-wallpaper-for-mac's Introduction

bing-wallpaper-for-mac

Bing wallpaper for mac

This program is written in python specifically for OSX and tested on Yosemite 10.10.2 running python 2.7.9 and 3.4.3

###Notes

  • The app calls the python scripts on execution.
  • In order to save space, the script assumes that only 1 image is kept in the ~/Pictures/bing-wallpaper folder.
  • Place all the files into a single folder. Here it is in the Applications folder within the user's home directory - ~/Applications/Bing Wallpaper
  • Open the plist file with your favorite editor and change the username to your username

Image

###The App

  • The application is split in the following ways:
    • The checker app checks to ensure there is internet connectivity, then checks to see if an image file already exists in the ~/Pictures/bing-wallpaper folder.
      • If there are files, it will check to see if the file was created today.
        • If the file was created today, stop and don't do anything
        • Else, run the app to download the wallpaper.
      • If there are no files, run the app to download the wallpaper
    • The wallpaper downloader app ensures that you only have the latest wallpaper in your folder. It makes sure to delete all files from that folder before downloading the new wallpaper.

###Plist File

  • Copy the plist file to ~/Library/LaunchAgents
cp bing.wallpaper.mac.plist ~/Library/LaunchAgents
  • Edit the plist file to reflect your username
  • Save and close
  • Run the following terminal command
launchctl load ~/Library/LaunchAgents/bing.wallpaper.mac.plist

###Uninstall

  • To uninstall run this command
launchctl unload ~/Library/LaunchAgents/bing.wallpaper.mac.plist
  • Delete the ~/Applications/Bing Wallpaper folder and its contents
  • Delete the ~/Pictures/bing-wallpaper folder and its contents

###Thanks Feel free to share your comments and thoughts. I am new to github.

bing-wallpaper-for-mac's People

Contributors

networkprogrammer avatar nyarasha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bing-wallpaper-for-mac's Issues

Option to not delete the image daily?

Hi, is there any option easily enabled to keep the images for previous days? I'd rather clean out the folder manually rather than lose some really great images...

urlretrieve timeout

I tried to install your app and initially the setup works fine
I had an issue with the paths and it was fixed
but.. when I run GetWallpaper.py it just times out, so when I run the app it's stuck at 50%

so after some digging I found that the wallpaper is actually downloaded to ~/Downloads folder but the app then do nothing

what I also found is that any code after

req = urlretrieve(image_url, filename)

is not being called

so there's nothing being printed out and hence the automator flow keeps waiting for the file name but nothing is returned

Multiple Monitors

What would I need to change to make it update the background on my external monitors as well? It is properly changing the backgound on my laptop primary display, but I also have a Apple monitor connected that I would like to be updated as well.

Cool script, BTW.

pointing to python script

Assuming the user has placed "Bing Wallpaper" folder inside of /Applications and not /Users/USERNAME/Applications the automator script should direct to /Applications not ~/Applications

File result incorrect

The file now has:
th?id=OHR.SeptimiusSeverus_ROW8081151443_1920x1080.jpg&rf=NorthMale_1920x1080.jpg&pid=hp

Multiple monitors support

Hi. I've been using it on my osx for months now and love it everyday. Thanks for creating this! I believe what would make this better would be to incorporate multiple monitors support. Currently, only the main screen's wallpaper is updated. I've looked into osx preferences to no avail. Thanks!

Battery usage

Since I set this to run automatically using launchctl load ~/Library/LaunchAgents/bing.wallpaper.mac.plist the battery life on my MacBook Air has been cut in half or more.

I ran the uninstall command while I had 11 minutes of battery remaining at 9%. Now I'm at 9% with 34 minutes remaining.

Since it only works once a day, can you make the background task only run once a day?

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.