|
|
还有很多东西没有弄,没有详细地看配置文件。
图片用gimp转化了一下格式,感觉效果还行。
这个东西弄能自动的显示现在你的地理位置的白天和黑夜的状态,当然还有其他的,不过最近太忙,
过几天在弄。
安装和配置:
首先要安装xplanet和xplanet-images两个包,然后在不同的桌面系统里面做不同的设置。
gnome里面使用方法如下:
======================
#!/bin/bash
#xplanet-gnome.sh shell script v0.2
#shows Earth on your Gnome desktop with current lighting conditions,i.e. day and night
# 设定更新时间
DELAY=10m
# 换成你自己的目录
PREFIX=/home/fender/xplanet
OUTPUT=planet.png
APPEND=2
# 指定一下分辨率
GEOMETRY=1280x1024
# 指定一些自己的精度和纬度,我在天津,就baidu了一下天津。
LONGITUDE=117.2
LATITUDE=39.13
#default is no projection,i.e. render a globe
#rectangular is the flat world map. also try ancient, azimuthal, mercator,..
#PROJECTION=rectangular
#rename background image so Gnome realises image has changed - thx to dmbasso
if [ -e "$PREFIX$OUTPUT" ]; then
rm "$PREFIX$OUTPUT"
OUTPUT="$APPEND$OUTPUT"
else
rm "$PREFIX$APPEND$OUTPUT"
fi
if [ -z $PROJECTION ]; then
xplanet -num_times 1 -output "$PREFIX$OUTPUT" -geometry $GEOMETRY -longitude $LONGITUDE -latitude $LATITUDE
else
xplanet -num_times 1 -output "$PREFIX$OUTPUT" -geometry $GEOMETRY -longitude $LONGITUDE -latitude $LATITUDE -projection $PROJECTION
fi
#update Gnome backgound
gconftool -t str -s /desktop/gnome/background/picture_filename "$PREFIX$OUTPUT"
sleep $DELAY
exec $0
======================
把这个脚本加到gnome的启动回话里面就可以了。
====================== |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|