如何自定义桌面壁纸幻灯片?

Pit*_*kos 4 wallpaper 11.10 slideshow

我花了一些时间并尝试了各种方法,但没有任何效果。这是我迄今为止尝试过的(手动更改幻灯片):

  1. 创建一个新文件夹 /usr/share/backgrounds/mywallpapers 并在其中添加我自己的 background-1.xml。
  2. 将一堆我自己的壁纸文件复制到 /usr/share/backgrounds/
  3. 将 /usr/share/backgrounds/Contest/background-1.xml 复制到 /usr/share/backgrounds/

我注销并登录,但Appearance应用程序仍然没有任何变化。

我听说过Wallch,但我不希望某些应用程序一直在后台运行。我什至不确定 Wallch 是否可以与 Gnome 3 一起使用。我也尝试过gnome-3-wp(Gnome 3 壁纸幻灯片应用程序),但它似乎在 Ubuntu 11.10 Oneiric 上坏了。

有人有解决方案吗?

小智 5

我想我迟到了但是...

我创建了一个 xml 背景(带有完整的路径描述),并将其保存在 /usr/share/backgrounds/my-background.xml

然后我编辑了 /usr/share/gnome-background-properties/ubuntu-wallpapers.xml 添加

<wallpaper deleted="false">
 <name>My background</name>
 <filename>/usr/share/backgrounds/my-background.xml</filename>
 <options>zoom</options>
</wallpaper> 
Run Code Online (Sandbox Code Playgroud)

只需保存文件,新的幻灯片壁纸就会显示在外观窗口中

希望它对你有用:D


小智 5

此外,在编辑/usr/share/gnome-background-properties/ubuntu-wallpapers.xml 时,完全省略选项标签将允许您在设置的外观 GUI 中选择平铺、缩放、居中、缩放、填充或跨度.

使用上述 Locutus 示例的示例:

<wallpaper deleted="false">
 <name>My background</name>
 <filename>/usr/share/backgrounds/my-background.xml</filename>
</wallpaper>
Run Code Online (Sandbox Code Playgroud)


Pit*_*kos 1

好的,经过一些进一步的实验后,一个小的解决方法是您可以以 root 身份编辑 /usr/share/background-1.xml 。

您更改下面的行

<!-- This animation will start at midnight. -->
Run Code Online (Sandbox Code Playgroud)

并替换图片源,使它们与您的照片相对应,如下所示。

<static>
  <duration>1795.0</duration>
  <file>/home/manos/futuristicHD/2907.jpg</file> <!-- first wallpaper -->
</static>
<transition>
  <duration>5.0</duration>
  <from>/home/manos/futuristicHD/2907.jpg</from> <!-- first wallpaper -->
  <to>/home/manos/futuristicHD/62977.jpg</to>    <!-- second wallpaper -->
</transition>
Run Code Online (Sandbox Code Playgroud)

有两点需要注意:

  1. 只有完整路径才有效。
  2. <to>path/lastfoto.jpg</to>整个 xml 文件中的最后一行必须与<file>path/firstfoto.jpg</file>xml 文件中的第一行相对应。