壁纸的配置文件trusty.xml在 /usr/share/backgrounds/contest/ 目录下,需要通过管理员权限修改。打开终端,输入命令,
命令为:sudo gedit /usr/share/backgrounds/contest/trusty.xml
然后输入密码,就可以看到配置文件了
<background>
<starttime>
<year>2009</year>
<month>08</month>
<day>04</day>
<hour>00</hour>
<minute>00</minute>
<second>00</second>
</starttime>
<!-- This animation will start at midnight. -->
<static>
<duration>10</duration> //更换图片时间为10秒
<file>/usr/share/backgrounds/Sea_Fury_by_Ian_Worrall.jpg</file>
</static>
<transition>
<duration>0.0</duration>图片渐变时间为0秒
<from>/usr/share/backgrounds/Sea_Fury_by_Ian_Worrall.jpg</from>
<to>/usr/share/backgrounds/Reflections_by_Trenton_Fox.jpg</to>
</transition>
<static>
<duration>10</duration>
<file>/usr/share/backgrounds/Reflections_by_Trenton_Fox.jpg</file>
</static>
<transition>
<duration>0.0</duration>
<from>/usr/share/backgrounds/Reflections_by_Trenton_Fox.jpg</from>
<to>/usr/share/backgrounds/Partitura_by_Vincijun.jpg</to>
</transition>
<static>
<duration>10</duration>
<file>/usr/share/backgrounds/Partitura_by_Vincijun.jpg</file>
</static>
<transition>
<duration>0.0</duration>
<from>/usr/share/backgrounds/Partitura_by_Vincijun.jpg</from>
<to>/usr/share/backgrounds/Backyard_Mushrooms_by_Kurt_Zitzelman.jpg</to>
</transition>
<static>
<duration>10</duration>
<file>/usr/share/backgrounds/Backyard_Mushrooms_by_Kurt_Zitzelman.jpg</file>
</static>
<transition>
<duration>0.0</duration>
<from>/usr/share/backgrounds/Backyard_Mushrooms_by_Kurt_Zitzelman.jpg</from>
<to>/usr/share/backgrounds/Water_web_by_Tom_Kijas.jpg</to>
</transition>
<static>
<duration>10</duration>
<file>/usr/share/backgrounds/Water_web_by_Tom_Kijas.jpg</file>
</static>
<transition>
<duration>0.0</duration>
<from>/usr/share/backgrounds/Water_web_by_Tom_Kijas.jpg</from>
<to>/usr/share/backgrounds/Mono_Lake_by_Angela_Henderson.jpg</to>
</transition>
<static>
<duration>10</duration>
<file>/usr/share/backgrounds/Mono_Lake_by_Angela_Henderson.jpg</file>
</static>
<transition>
<duration>0.0</duration>
<from>/usr/share/backgrounds/Mono_Lake_by_Angela_Henderson.jpg</from>
<to>/usr/share/backgrounds/Jelly_Fish_by_RaDu_GaLaN.jpg</to>
</transition>
<static>
<duration>10</duration>
<file>/usr/share/backgrounds/Jelly_Fish_by_RaDu_GaLaN.jpg</file>
</static>
<transition>
<duration>0.0</duration>
<from>/usr/share/backgrounds/Jelly_Fish_by_RaDu_GaLaN.jpg</from>
<to>/usr/share/backgrounds/Ibanez_Infinity_by_Jaco_Kok.jpg</to>
</transition>
<static>
<duration>10</duration>
<file>/usr/share/backgrounds/Ibanez_Infinity_by_Jaco_Kok.jpg</file>
</static>
<transition>
<duration>0.0</duration>
<from>/usr/share/backgrounds/Ibanez_Infinity_by_Jaco_Kok.jpg</from>
<to>/usr/share/backgrounds/Foggy_Forest_by_Jake_Stewart.jpg</to>
</transition>
<static>
<duration>10</duration>
<file>/usr/share/backgrounds/Foggy_Forest_by_Jake_Stewart.jpg</file>
</static>
<transition>
<duration>0.0</duration>
<from>/usr/share/backgrounds/Foggy_Forest_by_Jake_Stewart.jpg</from>
<to>/usr/share/backgrounds/Beach_by_Renato_Giordanelli.jpg</to>
</transition>
<static>
<duration>10</duration>
<file>/usr/share/backgrounds/Beach_by_Renato_Giordanelli.jpg</file>
</static>
<transition>
<duration>0.0</duration>
<from>/usr/share/backgrounds/Beach_by_Renato_Giordanelli.jpg</from>
<to>/usr/share/backgrounds/Berries_by_Tom_Kijas.jpg</to>
</transition>
<static>
<duration>10</duration>
<file>/usr/share/backgrounds/Berries_by_Tom_Kijas.jpg</file>
</static>
<transition>
<duration>0.0</duration>
<from>/usr/share/backgrounds/Berries_by_Tom_Kijas.jpg</from>
<to>/usr/share/backgrounds/Forever_by_Shady_S.jpg</to>
</transition>
<static>
<duration>10</duration>
<file>/usr/share/backgrounds/Forever_by_Shady_S.jpg</file>
</static>
<transition>
<duration>0.0</duration>
<from>/usr/share/backgrounds/Forever_by_Shady_S.jpg</from>
<to>/usr/share/backgrounds/Sea_Fury_by_Ian_Worrall.jpg</to>
</transition>
</background>
这个文件我修改过,原本
<duration>10</duration>
中间的数字应该为1795.0,单位为秒。可以将它改为你想要的更换图片的时间,我更改为10,就是每10秒换一次图片。
<duration>0.0</duration>
这个是图片的渐变时间,原本应该是5秒,因为个人喜好设置为了0。
可以按照自己的喜好更换文件夹和图片,注意图片文件的权限要为root(在文件所在目录下输入命令:sudo chown root 文件名 ),如果权限不正确的话就无法读出你要显示的图片,修改完成后保存退出。
最后输入命令:sudo update-grub 刷新一下,然后设置壁纸。
最后,你可以看到那些壁纸在自己的桌面上不停的切换了。