Skip to content

A simple script to change your Mac wallpapers automatically

License

Notifications You must be signed in to change notification settings

siyuanxu/macosplash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Macosplash

Macosplash 可以通过 unsplash 的开放 API 来获取图片并定时设定为 macOS 的桌面背景。

Requirements

  • macOS
  • Python 2.X 3.X
  • pip

Tested under macOS High Sierra python 2.7 python 3.5 python 3.6

思路

  1. unsplash 可以很方便的自己制作或者使用他人的 collection。并通过 source API 随机抽取特定 collection 中的照片,而且还支持指定尺寸或者作者等等特性。
  2. Python 的 appscript 库可以很好的与 macOS 平台的 AppleScript 相连接。
  3. launchctl 可以在 macOS 中设置定时任务

使用

  1. download release

  2. 如果希望修改图源为自己的 collection 或者需要更高分辨率的图片,可以在 init_macosplash.py 的 user configuration 部分进行相应修改,切换桌面背景的间隔也在这里修改。

  3. 运行 init_macosplash.py

TODO

  • 打包成 .app 文件
  • 简单的 gui 来设置图源或者延时。

About

A simple script to change your Mac wallpapers automatically

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages