npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bing-wallpaper-daily-mac-multimonitor

v1.4.0

Published

Script for download bing.com daily wallpaper

Downloads

19

Readme

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 every day.

Set wallpaper (dekstop picture) automatically every day

using npx

  1. First install Node.js https://nodejs.org/en/
  2. Run in Terminal npx --yes bing-wallpaper-daily-mac-multimonitor@latest enable-auto-update

using bing-wallpaper.sh

  1. copy bing-wallpaper.sh to your computer eg. your to ~/Desktop folder
  2. open Terminal app
  3. run cd ~/Desktop
  4. run chmod +x bing-wallpaper.sh
  5. run ./bing-wallpaper.sh enable-auto-update

Note: do not remove bing-wallpaper.sh file from your computer. It is needed to download and set wallpaper every day

Tips:

  • provide parameter -d <number> to set wallpaper from different day eg. 1 for yesterday
  • provide parameter -c <country-code> to get country specific Bing picture of the day. Use code like en-US, cs-CZ.
  • provide parameter -m <monitor number> to set wallpaper only on certain monitor
  • provide --auto-update-name <name> to have multiple auto update scripts running

See all parameters providing parameter --help

Script Parameters

  enable-auto-update             Enable automatic update of wallpapers every day
                                 the picture if the filename already exists.
  disable-auto-update            Disable automatic update of wallpapers every day
                                 the picture if the filename already exists.
  info                           Show description of current wallpaper.
  --auto-update-name <name>      Name of your auto update when enabling/disabling
                                 Using custom name enables setting multiple automatic update configurations.
                                 Eg. Set on monitor 1 todays wallpaper and on monitor 2 wallpaper from yesterday                                                           
  -f --force                     Force download of picture. This will overwrite
                                 the picture if the filename already exists.
  -s --ssl                       Communicate with bing.com over SSL.
  -q --quiet                     Do not display log messages.
  -c --country <coutry-code>     Specify market country/region eg. en-US, cs-CZ
                                 Pictures may be different for markets on some days.
                                 See full list of countries on https://learn.microsoft.com/en-us/previous-versions/bing/search/dd251064(v=msdn.10)
  -d --day <number>              Day for which you want to get the picture.
                                 0 is current day, 1 is yesterday etc.
                                 Default is 0.
  -n --filename <file name>      The name of the downloaded picture. Defaults to
                                 the upstream name.
  -p --picturedir <picture dir>  The full path to the picture download dir.
                                 Will be created if it does not exist.
                                 [default: $HOME/Pictures/bing-wallpapers/]
  -r --resolution <resolution>   The resolution of the image to retrieve.
                                 Supported resolutions: ${RESOLUTIONS[*]}
  --resolutions <resolutions>    The resolutions of the image try to retrieve.
                                 eg.: --resolutions "1920x1200 1920x1080 UHD"
  -m --monitor <num>             Set wallpaper only on certain monitor (1,2,3...)
  --all-desktops-experimental    Set wallpaper on all desktops
                                 Fixing osascript bug when wallpaper is not set for Desktop 2.
                                 Known issue: Minimized apps are removed from Dock.
                                 If something goes wrong delete Library/Application Support/Dock/desktoppicture.db
                                 and restart your Mac.                           
  -h --help                      Show this screen.
  --version                      Show version.

How it works?

Command ./bing-wallpaper.sh enable-auto-update creates a launch agent (plist file in ~/Library/LaunchAgents/). Agent will run script bing-wallpaper.sh every day and automatically update your wallpapers to latest Bing picture of the day.

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.