Christopher Negus

Linux Bible


Скачать книгу

on the desktop area, which supports drag-and-drop between applications, a desktop menu (right-click to see it), and icons for launching applications. A Computer icon consolidates CD drives, floppy drives, the filesystem, and shared network resources in one place.

GNOME also includes a set of Preferences windows that enable you to configure different aspects of your desktop. You can change backgrounds, colors, fonts, keyboard shortcuts, and other features related to the look and behavior of the desktop. Figure 2.15 shows how the GNOME 2 desktop environment appears the first time you log in, with a few windows added to the screen.

image

Figure 2.15 The GNOME 2 desktop environment.

      The desktop shown in Figure 2.15 is for Red Hat Enterprise Linux. The following sections provide details on using the GNOME 2 desktop.

      Using the Metacity window manager

      The Metacity window manager seems to have been chosen as the default window manager for GNOME because of its simplicity. The creator of Metacity refers to it as a “boring window manager for the adult in you” and then goes on to compare other window managers to colorful, sugary cereal, whereas Metacity is characterized as Cheerios.

      NOTE

      To use 3D effects, your best solution is to use the Compiz window manager, described later in this chapter. You can't do much with Metacity (except get your work done efficiently). You assign new themes to Metacity and change colors and window decorations through the GNOME preferences (described later). Only a few Metacity themes exist, but expect the number to grow.

Basic Metacity functions that might interest you are keyboard shortcuts and the workspace switcher. Table 2.1 shows keyboard shortcuts to get around the Metacity window manager.

Table 2.1 Keyboard Shortcuts

      You can use other keyboard shortcuts with the window manager as well. Select System arr Preferences arr Keyboard Shortcuts to see a list of shortcuts, such as the following:

      ● Run Dialog– To run a command to launch an application from the desktop by command name, press Alt+F2. From the dialog box that appears, type the command and press Enter. For example, type gedit to run a simple graphical text editor.

      ● Lock Screen– If you want to step away from your screen and lock it, press Ctrl+Alt+L. You need to type your user password to open the screen again.

      ● Show Main Menu– To open an application from the Applications, Places, or System menu, press Alt+F1. Then use the up and down arrow keys to select from the current menu, or use the right and left arrow keys to select from other menus.

      ● Print Screen– Press the Print Screen key to take a picture of the entire desktop. Press Alt+Print Screen to take a picture of the current window.

      Another Metacity feature of interest is the workspace switcher. Four virtual workspaces appear in the Workspace Switcher on the GNOME 2 panel. You can do the following with the Workspace Switcher:

      ● Choose current workspace– Four virtual workspaces appear in the Workspace Switcher. Click any of the four virtual workspaces to make it your current workspace.

      ● Move windows to other workspaces– Click any window, each represented by a tiny rectangle in a workspace, to drag and drop it to another workspace. Likewise, you can drag an application from the Window list to move that application to another workspace.

      ● Add more workspaces– Right-click the Workspace Switcher, and select Preferences. You can add workspaces (up to 32).

      ● Name workspaces– Right-click the Workspace Switcher, and select Preferences. Click in the Workspaces pane to change names of workspaces to any names you choose.

      You can view and change information about Metacity controls and settings using the gconf-editor window (type gconf-editor from a Terminal window). As the window says, it is not the recommended way to change preferences, so when possible, you should change the desktop through GNOME 2 preferences. However, gconf-editor is a good way to see descriptions of each Metacity feature.

      From the gconf-editor window, select apps arr metacity, and choose from general, global_keybindings, keybindings_commands, window_keybindings, and workspace_names. Click each key to see its value, along with short and long descriptions of the key.

      Changing GNOME's appearance

      You can change the general look of your GNOME desktop by selecting System arr Preferences arr Appearance. From the Appearance Preferences window, select from three tabs:

      ● Theme– Entire themes are available for the GNOME 2 desktop that change the colors, icons, fonts, and other aspects of the desktop. Several different themes come with the GNOME desktop, which you can simply select from this tab to use. Or click Get more themes online to choose from a variety of available themes.

      ● Background– To change your desktop background, select from a list of backgrounds on this tab to have the one you choose immediately take effect. To add a different background, put the background you want on your system (perhaps download one by selecting Get more backgrounds online and downloading it to your Pictures folder). Then click Add, and select the image from your Pictures folder.

      ● Fonts– Different fonts can be selected to use by default with your applications, documents, desktop, window title bar, and for fixed width.

      Using the GNOME panels

      The GNOME panels are placed on the top and bottom of the GNOME desktop. From those panels, you can start applications (from buttons or menus), see what programs are active, and monitor how your system is running. You can also change the top and bottom panels in many ways – by adding applications or monitors or by changing the placement or behavior of the panel, for example.

Right-click any open space on either panel to see the Panel menu. Figure 2.16 shows the Panel menu on the top.

image

Figure 2.16 The GNOME Panel menu.

      From GNOME's Panel menu, you can choose from a variety of functions, including these:

      ● Use the menus

      ● The Applications menu displays most of the applications and system tools you will use from the desktop.

      ● The Places menu lets you select places to go, such as the Desktop folder, home folder, removable media, or network locations.

      ● The System menu lets you change preferences and system settings, as well as get other information about GNOME.

      ● Add to Panel– Add an applet, menu, launcher, drawer, or button.

      ● Properties– Change the panel's position, size, and background properties.

      ● Delete This Panel– Delete the current panel.

      ● New Panel– Add panels to your desktop in different styles and locations.

      You can also work with items on a panel. For