root@guilherme
(usa Ubuntu)
Enviado em 07/11/2009 - 20:46h
Não sei se aqui é o melhor lugar para perguntar isso, mas vamos lá: No Ubuntu 9.10, tem um wallpaper pré instalado que fica mudando sozinho num determinado período de tempo. Na verdade, são vários wallpapers que mudam entre sí. Mas não tem como customizar nada, ou seja, diminuir o tempo de duração de cada wall, adicionar outros à sequência, ou criar uma sequência do zero com os meus wallpapers.
Hackeando um pouco, eu fui na pasta dos wallpapers pré instalados /usr/share/backgrounds e me deparei com uma pasta (cosmos) onde havia esses walls da sequência, e lá havia esse arquivo (cujo nome era "background-1.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>1795.0</duration>
<file>/usr/share/backgrounds/cosmos/cloud.jpg</file>
</static>
−
<transition>
<duration>5.0</duration>
<from>/usr/share/backgrounds/cosmos/cloud.jpg</from>
<to>/usr/share/backgrounds/cosmos/comet.jpg</to>
</transition>
−
<static>
<duration>1795.0</duration>
<file>/usr/share/backgrounds/cosmos/comet.jpg</file>
</static>
−
<transition>
<duration>5.0</duration>
<from>/usr/share/backgrounds/cosmos/comet.jpg</from>
<to>/usr/share/backgrounds/cosmos/earth-horizon.jpg</to>
</transition>
−
<static>
<duration>1795.0</duration>
<file>/usr/share/backgrounds/cosmos/earth-horizon.jpg</file>
</static>
−
<transition>
<duration>5.0</duration>
<from>/usr/share/backgrounds/cosmos/earth-horizon.jpg</from>
<to>/usr/share/backgrounds/cosmos/blue-marble-west.jpg</to>
</transition>
−
<static>
<duration>1795.0</duration>
<file>/usr/share/backgrounds/cosmos/blue-marble-west.jpg</file>
</static>
−
<transition>
<duration>5.0</duration>
<from>/usr/share/backgrounds/cosmos/blue-marble-west.jpg</from>
<to>/usr/share/backgrounds/cosmos/galaxy-ngc3370.jpg</to>
</transition>
−
<static>
<duration>1795.0</duration>
<file>/usr/share/backgrounds/cosmos/galaxy-ngc3370.jpg</file>
</static>
−
<transition>
<duration>5.0</duration>
<from>/usr/share/backgrounds/cosmos/galaxy-ngc3370.jpg</from>
<to>/usr/share/backgrounds/cosmos/helix-nebula.jpg</to>
</transition>
−
<static>
<duration>1795.0</duration>
<file>/usr/share/backgrounds/cosmos/helix-nebula.jpg</file>
</static>
−
<transition>
<duration>5.0</duration>
<from>/usr/share/backgrounds/cosmos/helix-nebula.jpg</from>
<to>/usr/share/backgrounds/cosmos/jupiter.jpg</to>
</transition>
−
<static>
<duration>1795.0</duration>
<file>/usr/share/backgrounds/cosmos/jupiter.jpg</file>
</static>
−
<transition>
<duration>5.0</duration>
<from>/usr/share/backgrounds/cosmos/jupiter.jpg</from>
<to>/usr/share/backgrounds/cosmos/sombrero.jpg</to>
</transition>
−
<static>
<duration>1795.0</duration>
<file>/usr/share/backgrounds/cosmos/sombrero.jpg</file>
</static>
−
<transition>
<duration>5.0</duration>
<from>/usr/share/backgrounds/cosmos/sombrero.jpg</from>
<to>/usr/share/backgrounds/cosmos/whirlpool.jpg</to>
</transition>
−
<static>
<duration>1795.0</duration>
<file>/usr/share/backgrounds/cosmos/whirlpool.jpg</file>
</static>
−
<transition>
<duration>5.0</duration>
<from>/usr/share/backgrounds/cosmos/whirlpool.jpg</from>
<to>/usr/share/backgrounds/cosmos/cloud.jpg</to>
</transition>
</background>
Sei que isso é um código sobre a alteração automática dos wallpapers, mas como eu posso alterar... ou fazer outra sequência...
Desde já agradeço.