fork from ujnzxw/oh-my-earth
ubuntu & dwm & feh
添加:
1.晚上六点之后改为显示图片,而不是地球卫星图
2.添加infinity new tab的图片源
安装使用:
-
cd ~ <你想安装的位置> git clone https://github.com/ujnzxw/oh-my-earth.git sudo bash install.sh
-
测试是否工作 oh-my-earth
设置系统周期执行
- 设置一个打开cron job crontab -e
- 添加如下行,为每十分钟调用一次 */10 * * * * <INSTALLATION_PATH>
- oh-my-earth is a Python 2.7 Script that fetches near-realtime picture of Earth as your Wallpaper
- The picture is taken by Himawari 8 (向日葵8号)
- The web site of Himawari 8
oh-my-earth differs in that:
- It doesn't install python3 and extra python packages, python2.7 is enough and is default version for most OS
- The installation procedure is simplify
- More easier to customization by yourself
##Supported Desktop Environments
- Unity 7
- Mate 1.8.1
- Pantheon
- LXDE
- OS X
- GNOME 3
- KDE
You can configure the level of detail, by modifying the script. You can set the global variable level
to 4
, 8
, 16
, or 20
to increase the quality (and thus the file size as well). Please keep in mind that it will also take more time to download the tiles.
On xfce4, you can set which displays you want to change the background of using the xfce displays variable. If you get an error and you're not sure which display to use, you can find your display in the output of:
xfconf-query --channel xfce4-desktop --list | grep last-image
If you use nitrogen for setting your wallpaper, you have to enter this in your ~/.config/nitrogen/bg-saved.cfg
.
[:0.0]
file=/home/USERNAME/.cache/ujnzxw/latest.png
mode=4
bgcolor=#000000
Please install PIL package first
Others:
sudo easy_install image sudo easy_install pytz sudo easy_install tzlocal sudo easy_install appdirs
cd ~ <OR OTHER PATH YOU WANT>
git clone https://github.com/ujnzxw/oh-my-earth.git
# Configure
cd ~/oh-my-earth/
vi config.py
# Install
sudo bash install.sh
# Test whether it's working
oh-my-earth
# Set oh-my-earth to be called periodically
- Set up a cronjob
crontab -e
- Add the line:
*/10 * * * * <INSTALLATION_PATH>
# Remove the cronjob
crontab -e
# Remove the line
*/10 * * * * <INSTALLATION_PATH>
# Remove the data directory
rm -rf ~/oh-my-earth <OR OTHER PATH YOU INSTALLED>
# Remove the soft link
rm -rf /usr/local/bin/oh-my-earth
MIT License © 2017 Steven ZHAO