Matthias Clasen
matthias.clasen@gmail.com 2012
Jana Svarova
jana.svarova@gmail.com 2013
Petr Kovar
pknbe@volny.cz 2019
How do I make extra backgrounds available to my users?
Fran Diéguez
frandieguez@gnome.org 2010-2025

# Engadir fondos de pantalla adicionais

You can make extra backgrounds available to users on your system by following the steps below.

# Estabelecer fondos de pantalla adicionais

Create an XML file, for example filename.xml. In this file, use keys from the org.gnome.desktop.background GSettings schema to specify extra backgrounds and their appearance.

A continuación móstrase unha lista das teclas máis empregadas:

# org.gnome.desktop.background schemas GSettings keys

Nome da chave | Valores posíbeis | Descrición
picture-options | “ningún, "fondo de pantalla", "centrado", "escalado", "estirado", "ampliar", "ampliar" | Determina como se representa a imaxe establecida por wallpaper_filename.
color-shading-type | «horizontal», «vertical» e «sólido» | Como sombrear a cor de fondo.
primary-color | predeterminado: #023c88 | Cor esquerda ou superior ao deseñar gradientes ou a cor sólida.
secondary-color | predeterminado: #5789ca | Cor dereita ou inferior ao deseñar gradientes, non usados para cor sólida.

You can view a complete list of org.gnome.desktop.background keys and possible values using dconf-editor or the gsettings command-line utility. See for more information.

A continuación está un ficheiro de mostra nomedeficheiro.xml:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd"> <wallpapers> <wallpaper deleted="false"> <name>Company Background</name> <name xml:lang="de">Firmenhintergrund</name> <filename>/usr/local/share/backgrounds/company-wallpaper.jpg</filename> <options>zoom</options> <shade_type>solid</shade_type> <pcolor>#ffffff</pcolor> <scolor>#000000</scolor> </wallpaper> </wallpapers>

Place the filename.xml file in the /usr/share/gnome-background-properties/ directory.

Users will have the extra backgrounds available for configuration from Settings Background.

# Especificar varios fondos de pantalla

In one configuration file, you can specify multiple `<wallpaper>` elements to add more backgrounds.

See the following example with two `<wallpaper>` elements, adding two different backgrounds:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd"> <wallpapers> <wallpaper deleted="false"> <name>Company Background</name> <name xml:lang="de">Firmenhintergrund</name> <filename>/usr/local/share/backgrounds/company-wallpaper.jpg</filename> <options>zoom</options> <shade_type>solid</shade_type> <pcolor>#ffffff</pcolor> <scolor>#000000</scolor> </wallpaper> <wallpaper deleted="false"> <name>Company Background 2</name> <name xml:lang="de">Firmenhintergrund 2</name> <filename>/usr/local/share/backgrounds/company-wallpaper-2.jpg</filename> <options>zoom</options> <shade_type>solid</shade_type> <pcolor>#ff0000</pcolor> <scolor>#00ffff</scolor> </wallpaper> </wallpapers>