Matthias Clasen
matthias.clasen@gmail.com 2012
Jana Svarova
jana.svarova@gmail.com 2013
Petr Kovar
pknbe@volny.cz 2019
Hoe stel ik extra achtergronden ter beschikking van mijn gebruikers?
Nathan Follens
nfollens@gnome.org 2022.

# Extra achtergronden toevoegen

U kunt extra achtergronden ter beschikking stellen van de gebruikers van uw systeem door de stappen hieronder te volgen.

# Extra achtergronden instellen

Maak een XML-bestand aan, bijvoorbeeld bestandsnaam.xml. Gebruik in dit bestand sleutels van het GSettings-schema org.gnome.desktop.background om extra achtergronden en hun uiterlijk in te stellen.

Hieronder vindt u een lijst van de meestgebruikte sleutels:

# org.gnome.desktop.background schemas GSettings keys

Sleutelnaam | Mogelijke waarden | Beschrijving
picture-options | "none", "wallpaper", "centered", "scaled", "stretched", "zoom", "spanned" | Determines how the image set by wallpaper_filename is rendered.
color-shading-type | "horizontal", "vertical", and "solid" | How to shade the background color.
primary-color | default: #023c88 | Left or top color when drawing gradients, or the solid color.
secondary-color | default: #5789ca | Right or bottom color when drawing gradients, not used for solid color.

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.

Below is a sample filename.xml file:

<?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.

# Meerdere achtergronden instellen

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>