admin管理员组

文章数量:1516870

Ubuntu 20.04动态壁纸

默认你已经下好gnome的主题编辑器tweaks了。
如果没有下载,使用

sudo apt install gnome-tweaks

进行下载

打开 /usr/share/backgrounds/contest/ ,有一个 focal.xml ,里面存放的就是动态壁纸的信息。

将这个xml文件复制一份,然后进行编辑,例如

<background><starttime><year>2020</year><month>04</month><day>01</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/1.png</file></static><transition><duration>5.0</duration><from>/usr/share/backgrounds/1.png</from><to>/usr/share/backgrounds/2.png</to></transition><static><duration>1795.0</duration><file>/usr/share/backgrounds/2.png</file></static><transition><duration>5.0</duration><from>/usr/share/backgrounds/2.png</from><to>/usr/share/backgrounds/3.png</to></transition><static><duration>1795.0</duration><file>/usr/share/backgrounds/3.png</file></static><transition><duration>5.0</duration><from>/usr/share/backgrounds/3.png</from><to>/usr/share/backgrounds/4.png</to></transition><static><duration>1795.0</duration><file>/usr/share/backgrounds/4.png</file></static><transition><duration>5.0</duration><from>/usr/share/backgrounds/4.png</from><to>/usr/share/backgrounds/1.png</to></transition><!--  <static>
    <duration>1795.0</duration>
    <file>/usr/share/backgrounds/ryan-stone-skykomish-river.jpg</file>
  </static>
  <transition>
    <duration>5.0</duration>
    <from>/usr/share/backgrounds/ryan-stone-skykomish-river.jpg</from>
    <to>/usr/share/backgrounds/hardy_wallpaper_uhd.png</to>
  </transition>
  <static>
    <duration>1795.0</duration>
    <file>/usr/share/backgrounds/hardy_wallpaper_uhd.png</file>
  </static>
  <transition>
    <duration>5.0</duration>
    <from>/usr/share/backgrounds/hardy_wallpaper_uhd.png</from>
    <to>/usr/share/backgrounds/Focal-Fossa_WP_4096x2304_GREY.png</to>
  </transition> --></background>

然后,打开tweaks,在壁纸设置一栏填入你编辑的xml文件的地址

然后按alt+F2,输入 r 重启gnome,就可以使用动态壁纸了

本文标签: 一步到位动态壁纸编程