Coder Social home page Coder Social logo

bing-wallpaper's Introduction

bing-wallpaper

拉取bing首页的背景壁纸,然后设置成mac的默认壁纸。

热身准备

1: 运行下面命令

$> nohup ./auto.sh &

这时候,程序会每隔30分钟检查本地是否已经有今天的bing壁纸。 如果没有,则拉取最新bing首页的壁纸,然后设置本地桌面壁纸 (如果本地有今天bing的最新壁纸,则不再重复拉取,也不会设置壁纸)

2: 运行下面命令

$> cp ./dark.png ~/Pictures/bing

bing.sh的使用说明

1: 把当前的桌面壁纸设置成全黑色

$> bing.sh dark

2: 立刻把当前的桌面壁纸设置成今天的bing壁纸

$> bing.sh bing-load

3: 选择历史图片

$> bing.sh ls

160424.jpg (1)

dark.png (2)

这时候你可以看到本地bing目录的缓存图片。

例如上面例子中,可以看到有 “160424.jpg” 和 “dark.png” 两个图片。 ("160324.jpg"命名的格式就是"年月日.jpg")

如果你想选择第n个照片为壁纸,输入对应图片的游标即可。

例如选择"dark.png (2)" , 如下面命令所示:

$> bing.sh 2


最后。整个脚本代码非常简单。。。我是不是也足够无聊。。。

bing-wallpaper's People

Contributors

phoneli avatar

Stargazers

narella avatar Chiho avatar

Watchers

James Cloos avatar  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.