/ 软件 / 2884浏览

Ubuntu怎样制作可变换的桌面背景?

模板在/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>

大功告成。

22

  1. Bigman

    一直没有机器装个linux界面玩,用的linux就是文本界面,干活而已

    Unknown · Unknown
  2. S

    Bigman:你那是专业做服务器编程了。俺们是用Linux来发发邮件上上网啥的而已

    Unknown · Unknown

回复 S 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注