Giter Site home page Giter Site logo

lpikora / bing-wallpaper-daily-mac-multimonitor Goto Github PK

View Code? Open in Web Editor NEW
149.0 149.0 19.0 3.41 MB

Bash Script for download and set Bing Daily Wallpaper on all monitors for macOS

License: GNU General Public License v3.0

Shell 100.00%
automatic bing bing-image-of-the-day cron daily image mac macos multimonitor picture wallpaper

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

Contributors

andjelx avatar lpikora 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  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

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

enable-auto-update is not working

Hello,

Launching the script with enable-auto-update returns the error message: "Unknown parameter: enable-auto-update" on MacOS 13.4.1(c).

No plist in LaunchAgents has been created as well.

Script fails due to missing bashrc

With autoupdate enabled, the script fails to run since on newer systems there's only a .zshrc file, but not a .bashrc.

% /bin/sh -c "source ~/.bashrc && npx --yes bing-wallpaper-daily-mac-multimonitor@latest  --all-desktops-experimental"
/bin/sh: /Users/stephan/.bashrc: No such file or directory

Can't seem to get the launchctl to work on Big Sur

❯ ll ~/Library/LaunchAgents/com.bing-wallpaper-daily-mac-multimonitor.plist
-rw-r--r-- 1 sumonto staff 566B Dec 21 20:08 /Users/sumonto/Library/LaunchAgents/com.bing-wallpaper-daily-mac-multimonitor.plist
❯ launchctl unload -w ~/Library/LaunchAgents/com.bing-wallpaper-daily-mac-multimonitor.plist
❯ launchctl load -w ~/Library/LaunchAgents/com.bing-wallpaper-daily-mac-multimonitor.plist

The desktop wallpaper does not change, nor do I see any errros being reported

Mac OS Version
BuildVersion: 20B29

Logging without events occurrence date and time

I periodically check the script's log for some errors and it is not convenient that the logged events don't have their occurrence date and time.
In my own local copy of the script in the node_modules folder, I've changed the script as follows:

print_message() {
    if [ ! "$QUIET" ]; then
        printf "%s\n" "$(date): ${1}"
    fi
}

Propose to add the same to the repo.

Fallback wallpaper

On some days Bing's picture of the day is not available for downloading, as can be seen in the screenshot below. Your bash script tries to download the image per the resolution of the user's monitor. When Bing has downloading disabled, only lower resolution URLs of the image work and higher ones (eg. 1900x1200) do not.

Bing-Picture-Download-Disabled

But when this happens, we are treated with a wallpaper that is a nasty placeholder image as seen below.

placeholder-image

It would be great if you could offer a quick and reliable way to choose a fallback wallpaper from the local disk when this happens.

Failed to create the file /Users/wuyi/Pictures/bing-wallpapers//: Is a directory

running the command fails now:

bing-wallpaper-daily-mac-multimonitor

Downloading: ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Warning: Failed to create the file /Users/wuyi/Pictures/bing-wallpapers//: Is
Warning: a directory
40 15862 40 6353 0 0 13373 0 0:00:01 --:--:-- 0:00:01 13373
curl: (23) Failure writing output to destination
Downloading: ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Warning: Failed to create the file /Users/wuyi/Pictures/bing-wallpapers//: Is
Warning: a directory
75 15862 75 11889 0 0 21636 0 --:--:-- --:--:-- --:--:-- 21636
curl: (23) Failure writing output to destination
Downloading: ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Warning: Failed to create the file /Users/wuyi/Pictures/bing-wallpapers//: Is
Warning: a directory
100 15864 100 15864 0 0 49789 0 --:--:-- --:--:-- --:--:-- 49789
curl: (23) Failure writing output to destination

Bing Daily Wallpaper broken on bing.com

The Bing homepage used to display the daily wallpaper without any action required from the user. However, now it seems that a button must be clicked in order to see the wallpaper of the day. so the script is not working as normal

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.