模板在/usr/share/gnome-background-properties/cosmos.xml
进去后看见一个文件标签,实际的 XML 代码在/usr/share/backgrounds/cosmos/background-1.xml
此模板就是默认桌面的动态组图,仿照代码即可制作出自己的动态变幻桌面。
比如,想要把所有图片都放进去,就新建/usr/share/gnome-background-properties/bg.xml,用 sudo gedit bg.xml 修改指向目录路径。
接着拷贝/usr/share/backgrounds/cosmos/background-1.xml 到/usr/share/backgrounds/bg/background-1.xml,修改和增加其中的如下代码段。此 XML 代码简明易懂,一望便知,不需解释。
<static> <duration>1795.0</duration> <file>/usr/share/backgrounds/bg/BusquedaNocturna.jpg</file> </static> <transition> <duration>5.0</duration> <from>/usr/share/backgrounds/bg/BusquedaNocturna.jpg</from> <to>/usr/share/backgrounds/bg/Cornered.jpg</to> </transition>
大功告成。
一直没有机器装个 linux 界面玩,用的 linux 就是文本界面,干活而已
Bigman:你那是专业做服务器编程了。俺们是用 Linux 来发发邮件上上网啥的而已