Difference between revisions of "Configuring the CentOS 6 GNOME Desktop Background"

From Techotopia
Jump to: navigation, search
m (Text replacement - "<hr> <table border=" to "<htmlet>ezoicbottom</htmlet> <hr> <table border=")
m (Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">")
 
Line 1: Line 1:
<table border="0" cellspacing="0">
+
<table border="0" cellspacing="0" width="100%">
 
<tr>
 
<tr>
 
<td width="20%">[[A Guided Tour of the CentOS 6 GNOME Desktop|Previous]]<td align="center">[[CentOS 6 Essentials|Table of Contents]]<td width="20%" align="right">[[Installing and Customizing CentOS 6 Desktop Themes|Next]]</td>
 
<td width="20%">[[A Guided Tour of the CentOS 6 GNOME Desktop|Previous]]<td align="center">[[CentOS 6 Essentials|Table of Contents]]<td width="20%" align="right">[[Installing and Customizing CentOS 6 Desktop Themes|Next]]</td>
Line 86: Line 86:
 
<htmlet>ezoicbottom</htmlet>
 
<htmlet>ezoicbottom</htmlet>
 
<hr>
 
<hr>
<table border="0" cellspacing="0">
+
<table border="0" cellspacing="0" width="100%">
 
<tr>
 
<tr>
 
<td width="20%">[[A Guided Tour of the CentOS 6 GNOME Desktop|Previous]]<td align="center">[[CentOS 6 Essentials|Table of Contents]]<td width="20%" align="right">[[Installing and Customizing CentOS 6 Desktop Themes|Next]]</td>
 
<td width="20%">[[A Guided Tour of the CentOS 6 GNOME Desktop|Previous]]<td align="center">[[CentOS 6 Essentials|Table of Contents]]<td width="20%" align="right">[[Installing and Customizing CentOS 6 Desktop Themes|Next]]</td>

Latest revision as of 20:02, 27 October 2016

PreviousTable of ContentsNext
A Guided Tour of the CentOS 6 GNOME DesktopInstalling and Customizing CentOS 6 Desktop Themes


You are reading a sample chapter from the CentOS 6 Essentials Essentials book.

Purchase a copy of the fully updated CentOS 8 edition in eBook ($24.99) or Print ($36.99) format

CentOS 8 Essentials Print and eBook (ePub/PDF/Kindle) editions contain 31 chapters and over 260 pages. Learn more...

Buy Print Preview Book


The CentOS 6 GNOME desktop allows the background to be changed either to a solid or graded color, to any image you choose to specify or a slideshow made up of multiple images. In this chapter of we will look at the steps involved configuring the desktop background.


Contents


Changing the CentOS 6 GNOME Desktop Background

There are three methods for changing the background, either by clicking with the right hand mouse button on the current desktop background and selecting Change Desktop Background, selecting the Administration -> Preferences -> Appearance desktop menu option and selecting the Background tab, or clicking with the right hand-mouse button on an image in the web browser and selecting Set As Desktop Background from the resulting popup menu. The latter method allows you find images from one of the many web sites that provide them and quickly make one of them your background.

Regardless of which method you use, the Desktop Background Preferences dialog will appear as illustrated in the following figure:


The CentOS 6 Desktop Background Preferences dialog


Selecting a Background from the Wallpaper List

The background preferences dialog provides a list of pre-installed wallpaper background images from which to choose. Those images that are shown stacked are slideshows, as is the case in the far right background in the previous figure.

As each example is selected the background will automatically change to reflect the new selection. Additional images may be added to the gallery by clicking on the Add… button and navigating to the image file. The Style menu provides a range of options for handling images that do not precisely match the screen dimensions. Choices include zooming, tiling, scaling and fitting.


Creating a Solid or Graded Background

If you prefer a background consisting of a solid color simply select the blank option located at the top left of the gallery list, make sure the Solid Color option is selected next to Colors and click on the color box to select a color.

The background may also be created by specifying a color gradient transition from one color to another. The gradient may be horizontal or vertical. With the blank wallpaper option selected, change the Color menu to Vertical or Horizontal Gradient. Using the two color boxes located to the right of the menu, specify the start and end colors. The desktop will then create a background image based on these settings. For example, the following figure shows a horizontal gradient from blue to yellow:


A CentOS 6 background using horizontal color gradients


Specifying a Background Image

As mentioned previously, there are two ways to specify an image file for the CentOS 6 desktop background. One way is to open an image (for example in a web browser), clicking with the right mouse button and selecting Set as Desktop Background from the resulting menu. This will cause the following dialog to appear asking how the image is to be positioned on the desktop:

Setting an image as the CentOS 6 desktop background


From this dialog, select whether the image should be tiled, stretched or centered. If space is going to be visible around the edges of the image be sure to select a suitable color for the border area using the color box. Click on Set Desktop Background to apply the settings.

Creating a Slideshow Background

A slideshow background is comprised of a multiple images that are displayed in sequence at predefined time intervals. CentOS 6 is supplied with the Cosmos example slideshow which may be selected from the desktop preference tool as outlined previously in this chapter. The files associated with the slideshow are located in the /usr/share/backgrounds/cosmos subdirectory. The directory contains each of the images that comprise the slide show together with an XML file outlining the sequence in which the images are to be displayed and duration of each sequence. An excerpt from the background-1.xml file reads as follows:

<background>
  <starttime>
    <year>2009</year>
    <month>08</month>
    <day>04</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/cosmos/cloud.jpg</file>
  </static>
  <transition>
    <duration>5.0</duration>
    <from>/usr/share/backgrounds/cosmos/cloud.jpg</from>
    <to>/usr/share/backgrounds/cosmos/comet.jpg</to>
  </transition>
.
.

The format is largely straightforward, requiring that a start and end date and time be specified followed by the definitions for the various transitions. If you intend to create your own desktop slideshow, the Cosmos XML file provides the ideal template from which to start.


You are reading a sample chapter from the CentOS 6 Essentials Essentials book.

Purchase a copy of the fully updated CentOS 8 edition in eBook ($24.99) or Print ($36.99) format

CentOS 8 Essentials Print and eBook (ePub/PDF/Kindle) editions contain 31 chapters and over 260 pages. Learn more...

Buy Print Preview Book



PreviousTable of ContentsNext
A Guided Tour of the CentOS 6 GNOME DesktopInstalling and Customizing CentOS 6 Desktop Themes