如何添加更多壁纸?
如何增加菜单上显示的壁纸数量,以便在11.10中使用我的背景自定义桌面?
我以root身份将更多图像添加到/usr/share/background
的相应文件夹中,但列表不会保持持久性。
11:10中的图像单独变化。 所以我想增加资金来改善环境。 当我将图像复制到文件夹/usr/share/backgrounds
,列表会更新并增加。 但这只是第一次。 此后,系统忽略其他图像,并且资金列表首先变为原始图像。
有帮助吗?
您可能想要安装wallch 从软件中心并将其添加到启动应用程序。 如前所述,这是为此目的而制作的应用程序。
好吧,我想我找到了答案。 首先,您应该使用chown
命令获得/usr/share/backgrounds
和/usr/share/backgrounds/contest/precise.xml
所有权。 然后,您可以将您喜欢的图像复制到/usr/share/backgrounds
。 然后,您可以修改precise.xml
以执行所需的工作。
在文本编辑器中打开precise.xml
。 假设您要添加的图像名为ABSTRACT-AnotherBlue_1024x768.png
。 然后你应该复制身体程序的一部分并修改它,如:
1795.0 /usr/share/backgrounds/ABSTRACT-AnotherBlue_1024x768.png 5.0 /usr/share/backgrounds/Twilight_Frost_by_Phil_Jackson.jpg /usr/share/backgrounds/Twilight_Frost_by_Phil_Jackson.jpg
请注意,下一个图像名称是Twilight_Frost_by_Phil_Jackson.jpg
,因此您应该在之前复制此片段:
1795.0 /usr/share/backgrounds/Twilight_Frost_by_Phil_Jackson.jpg 5.0 /usr/share/backgrounds/Twilight_Frost_by_Phil_Jackson.jpg /usr/share/backgrounds/Precise_Pangolin_by_Vlad_Gerasimov.jpg
现在保存并退出。 然后重新启动计算机。 你完成了!
我编写了一个perl脚本来构建xml文件。 因此,如果您有一个包含大量图像的目录,并且您希望将它们用于当天发生变化的背景,您只需运行一次即可构建列表。
#! /usr/bin/perl use strict; use warnings; # Change the value below to the directory where you images are stored! my $dir = "/~/Pictures/backgrounds"; my $transition_duration = '5.0'; my $duration = '1795.0'; # Change the value below to the xml file to build. my $bg_list_file = "/usr/share/backgrounds/contest/saucy.xml"; my @pictures; opendir(DIR, $dir) or die $!; while (my $file = readdir(DIR)){ next unless (-f "$dir/$file"); push @pictures, $file; } my $last_file; open (my $fh, '>', $bg_list_file) or die "Could not open file '$bg_list_file' $1"; print $fh " \n\t\n\t\t2009 \n\t\t08 \n\t\t04 \n\t\t00 \n\t\t00 \n\t\t00 \n\t \n"; foreach my $pic (@pictures){ my $xml = "\t\n\t\t$duration \n\t\t$dir/$pic \n\t "; if (defined $last_file and length $last_file){ $xml = "\t\n\t\t$transition_duration \n\t\t$dir/$last_file \n\t\t$dir/$pic \n\t \n$xml"; } $last_file = $pic; print $fh "$xml\n"; } print $fh " "; close $fh; exit;
希望能帮助到你!
你想在这两个中的哪一个?
- 创建一个图像文件夹,该文件夹将以设定的时间速率排队并更改为您的背景图像
要么
- 将您的背景更改为您自己的个人照片,下载的照片等…?
如果要执行第二步,您只需导航到文件>图像查看器>右键单击照片>设置为桌面背景。 您还可以在文件夹中创建自己的个人背景图像集,打开外观应用程序并通过+和 – 符号添加它们来选择文件夹/图像。 如果你想要做第一个, wallch
(上面列出)将是你最好的选择。
您可以安装gnome-backgrounds
软件包以获取上游GNOME附带的软件包。 如果您想在控制中心的主要“壁纸”列表中添加更多内容,而不是仅将它们显示在下拉列表中的“图片”选项下,您可以将它们打包并在$XDG_DATA_HOME/gnome-background-properties
创建XML文件$XDG_DATA_HOME/gnome-background-properties
目录,例如bjnobrega-wallpapers.xml
,类似于/usr/share/gnome-background-properties
存在的其他XML文件。 如果你看一个,你应该做的很明显。 图像本身可以在文件系统的任何位置,只要您可以阅读它们。
要让它们显示在“图片”列表下,您可以将它们放在“图片”文件夹设置的任何位置(通常是〜/图片我认为),它们会显示出来。 或者您可以单击列表下的[+]图标,然后选择许多图片,它们将显示在“图片”标题下。
我认为它在/usr/share/backgrounds
。
只需制作一个~/Pictures/wallpapers
并从/ usr / share / wallpapers链接到该文件夹,这样它们就会在壁纸选择中显示为子文件夹,并且您不必每次都输入root密码。 这可能有所帮助