Code Monkey home page Code Monkey logo

bing-wallpaper-daily-mac-multimonitor's Introduction

Bash Script for download and set current Bing Daily Wallpaper automatically on all (or selected) monitors for macOS

alt text

How it works?

Script downloads current Bing Daily Wallpaper to ~/Pictures/bing-wallpapers/ and sets it as wallpaper on all your monitors.

Set wallpaper (dekstop picture) automatically every day

Using launchd (recommended way)

  1. Copy com.bing-wallpaper-daily-mac-multimonitor.plist to ~/Library/LaunchAgents/

  2. Copy bing-wallpaper.sh to ~/bing-wallpaper.sh

  3. Run launchctl load -w ~/Library/LaunchAgents/com.bing-wallpaper-daily-mac-multimonitor.plist in terminal (it can ask for permitions for the first time)

Tip: use com.bing-wallpaper-daily-mac-multimonitor-uhd.plistfor UHD 4K images Tip: provide parameter -m <monitor number> to bing-wallpaper.sh in appropriate .plist file to set wallpaper only on certain monitor

How it works?

Script bing-wallpaper.sh is run every 30 minutes and checks if there is a new image on Bing.com. New image is downloaded and set as desktop picture on your all monitors.

Optionally you can edit com.bing-wallpaper-daily-mac-multimonitor.plist file to run script in different interval or schedule runs on specific time of day. (run launchctl unload -w ~/Library/LaunchAgents/com.bing-wallpaper-daily-mac-multimonitor.plist edit plist file and again load it)

For More info about launchd see https://www.launchd.info/ Configuration section.

Set current Bing.com wallpaper manually

with npm

(How install use script without npm see Usage (without npm) below)

  1. First install Node.js https://nodejs.org/en/

  2. For getting current Bing Daily Wallpaper to your desktop run in terminal:

npx bing-wallpaper-daily-mac-multimonitor

OR

npm -g install bing-wallpaper-daily-mac-multimonitor

then run in terminal

bing-wallpaper-daily-mac-multimonitor
  1. For automatic setup of wallpaper every day contine with instructions below

without npm

Run ./bing-wallpaper.sh terminal for a single download of current Bing image.

Download wallpaper in UHD resolution

Add -r UHD parameter after bing-wallpaper-daily-mac-multimonitor or ./bing-wallpaper.sh command:

bing-wallpaper-daily-mac-multimonitor -r UHD

OR

./bing-wallpaper.sh -r UHD

Daily download of wallpaper using cron

You need to edit crontab in order to run script periodically.

In terminal

export EDITOR=nano && crontab -e

copy and paste crontab script:

MAILTO=""
# min hour mday month wday command
*/30 * * * * bing-wallpaper-daily-mac-multimonitor

Press control + x then y and enter

This will run script every 30 minutes (but download new image only when it change).

bing-wallpaper-daily-mac-multimonitor's People

Contributors

lpikora avatar andjelx avatar

Watchers

 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.