Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Pylogmon/earth_wallpaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
ambition_echo
Oct 28, 2022
48032e4 · Oct 28, 2022
Sep 18, 2022
Aug 9, 2022
Oct 1, 2022
Sep 23, 2022
Jul 29, 2022
Oct 1, 2022
Oct 28, 2022
Sep 16, 2022
Jul 23, 2022
Aug 8, 2022
Aug 5, 2022
Oct 28, 2022
Oct 28, 2022
Jul 30, 2022
Oct 1, 2022

Repository files navigation

🌏earth_wallpaper

实时获取地球照片作为壁纸

不仅仅是地球壁纸

Build Aur pipeline

downloads Release License

快速开始

Deepin

发布页下载earth-wallpaper-deepin-amd64.deb 安装包,双击安装即可

Debian/Ubuntu

发布页下载earth-wallpaper-other-amd64.deb 安装包,双击安装即可

Arch

AUR version AUR version

Arch用户可以到AUR下载

注意earth-wallpaper-git包已经弃用,请安装earth-wallpaper-nightlyearth-wallpaper-bin包。

使用须知

第一次运行时会弹出设置窗口,点击应用即可开始运行

支持接口

  • 向日葵八号
  • 风云四号
  • 必应壁纸 (调用 @xCss API)
  • 动漫壁纸 (调用 waifu.im API)
  • 本地壁纸 (注:目前Windows下使用本地壁纸,路径需要全英文且无空格)
  • 24h壁纸 (灵感来自于windynamicdesktop)

24h壁纸推荐下载地址:

https://github.com/MiniBusiest/24Hour-Wallppe

https://windd.info/themes/index.html

接口贡献指南

  • 在scripts文件夹下新建python脚本,注意脚本开头写清楚脚本信息
  • 第一行,source:接口名称
  • 第二行,设置界面需要配置项,可选(updateTime/wallpaperDir/wallpaperFile)
  • 可用 python 命令行参数:
    1. 屏幕分辨率高
    2. 屏幕分辨率宽
    3. 地球大小
    4. 壁纸文件夹路径
    5. 壁纸文件路径

示例代码:

# source: 风景壁纸
# updateTime

from setWallpaper import set_wallpaper


# 1. 获取壁纸
def get_wallpaper():
    ...


# 2. 设置桌面壁纸
set_wallpaper(绝对路径)

支持桌面环境

Linux

  • KDE Plasma
  • Deepin
  • GNOME
  • ubuntu:GNOME
  • Cinnamon
  • XFCE
  • MATE
  • Cutefish
  • LXQt (pcmanfm-qt)
  • LXDE (pcmanfm)

Windows

  • Windows 10 (测试环境:Windows 10 专业版 21H1,其他版本自行测试)

依赖

  • Qt5
  • Python3
  • qdbus
  • python3-pil.imagetk
  • python3-requests
  • pywin32 (Windows 10 下需要,使用 pip3 install pywin32 安装)

手动编译安装 (Linux)

  • 克隆仓库
git clone https://jihulab.com/ambition-echo/earth_wallpaper.git
cd earth_wallpaper
mkdir build && cd build
  • 编译构建
cmake ..
make
  • 打包安装
cd ../package
chmod +x ./package.sh
./package.sh

开放API

bing 壁纸: https://github.com/xCss/bing

waifu.im 动漫壁纸: https://waifu.im/

ipapi 获取ip地理位置:https://ipapi.co

软件截图

image-20220917003305855

image-20220917003345620

image-20220917003459088

image-20220917003531050