Slideshow na pulpicie
Znalazłem chwilę od baaardzo długiego czasu, leżąc w łóżku stwierdziłem, że jedna i ta sama tapeta po jakimś czasie staje się nudna, monotonna a po wysłuchaniu wykładów Pani Prof. F.. i Pana Prof. D.. elementem stymulującym rozwój depresji ![]()
Zamarzył mi się slideshow a’la MAC OS.
Rozwiązanie było prostsze niż mi się wydawało, wystarczyło utworzyć katalog, w którym zamieściłem kolekcję najciekawszych tapet:
1 | sudo mkdir /usr/share/backgrounds/custom |
Następnie stworzenie pliku XML, na podstawie którego są zmieniane tapety, wygląda mniej więcej tak:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | <background> <static> <duration>10</duration> <file>/usr/share/backgrounds/custom/1.png</file> </static> <transition> <duration>3</duration> <from>/usr/share/backgrounds/custom/1.png</from> <to>/usr/share/backgrounds/custom/2.png</to> </transition> <static> <duration>10</duration> <file>/usr/share/backgrounds/custom/2.png</file> </static> <transition> <duration>3</duration> <from>/usr/share/backgrounds/custom/2.png</from> <to>/usr/share/backgrounds/custom/3.png</to> </transition> <static> <duration>10</duration> <file>/usr/share/backgrounds/custom/3.png</file> </static> <transition> <duration>3</duration> <from>/usr/share/backgrounds/custom/3.png</from> <to>/usr/share/backgrounds/custom/4.png</to> </transition> <static> <duration>10</duration> <file>/usr/share/backgrounds/custom/4.png</file> </static> </background> |
W elemencie „static” mamy element „duration” w w/w przykłacie jest to długość wyświetlania tapety podana w sekundach, drugi element „duration” zawarty w „transition” posiada wartość 3, jest to czas, również w sekundach, odpowiadający za długość trwania efektu przenikania tapet.
Posiadając już taki plik, nazwijmy go background.xml, kopiujemy go do katalogu z naszą kolekcją, następnie zmieniamy tło pulpitu wybierając nasz plik xml, to wszystko
.

