5.4 Customizing X11

There are a number of things you can customize in X11. For example, you can customize your xterm window, set X11 application preferences, customize the X11 application and Dock menus , and specify which window manager to use.

5.4.1 Dot-files, Desktops, and Window Managers

To customize X11, you can create an .xinitrc script in your Home directory. A sample .xinitrc script is provided in /etc/X11/xinit/xinitrc .

Using the script as a starting point, you can specify which X11-based applications to start when X11 is launched, including which window manager you'd like to use as your default. The default window manager for X11 is the Quartz window manager (or quartz-wm ). The tab window manager (or twm ) is also bundled with X11, but many other window managers are available. You can visit the following web sites to get instructions and binaries for a wide variety of window managers and DTEs.


Fink

http://fink. sourceforge .net


DarwinPorts

http://darwinports.opendarwin.org


GNU-Darwin

http://gnu-darwin.sourceforge.net


OroborOSX

http://oroborosx.sourceforge.net

If you're going to use your own .xinitrc file and want to use the Quartz window manager, make sure you start the Quartz window manager with the command:

 exec /usr/X11R6/bin/quartz-wm & 

Once you've installed X11, you will probably want to install additional X11 applications, window managers, and perhaps other DTEs (even if you are using Apple's window manager, you can still run most binaries from other DTEs such as GNOME and KDE even without using that DTE as your desktop). One of the easiest ways to install additional window managers is to use Fink. Table 5-1 lists some of the window managers and desktops that can be installed via Fink. (For information on installing and updating Fink, see Chapter 11.)

Table 5-1. Window managers available for Fink

Window manager/desktop

Fink package name

Blackbox

blackbox

Enlightenment

enlightenment

FVWM

fvwm, fvwm2

GNOME

bundle-gnome

IceWM

icewm

KDE

bundle-kde

mwm

lesstif

Oroborus

oroborus, oroborus2

PWM

pwm

Sawfish

sawfish

Window Maker

windowmaker

XFce

xfce


Fink has entire sections (http://fink.sourceforge.net/pdb/sections.php) devoted to GNOME and KDE, where you will find an extensive set of libraries, utilities, and plug-ins. Also included in the GNOME section are GTK+, glib , and Glade. Installing GNOME and KDE may be especially useful if you want to develop software for these desktops.

Fink installs everything in its /sw directory. So, for example, if you've installed lesstif and want to use the mwm window manager, you must include /sw/bin in your path , or include /sw/bin/mwm & in your .xinitrc file to start the Motif window manager. However, if you've installed Fink according to its instructions, /sw/bin will already be in your path (see Chapter 11).

You can customize the xterm window in Apple's X11 in the same way you would customize xterm on any other system running X11. You can, for example, set resources in an .Xdefaults file in your home directory or use escape sequences to set the title bar (see Section 1.4.1 in Chapter 1).

5.4.2 X11 Preferences, Application Menu, and Dock Menu

You can also customize your X11 environment by setting X11's preferences via the X11 Preferences window ( figs/command.gif -,) and adding programs to its Application menu. X11's preferences are organized into three categories: Input, Output, and Security. The X11 preferences are described in Table 5-1 and have the following options:

5.4.2.1 Input

The following options are used for controlling how X11 interacts with input devices:


Emulate three-button mouse

Determines whether Option-click and figs/command.gif -click mimic the middle and right buttons .


Follow system keyboard layout

Allows input menu changes to overwrite the current X11 keymap .


Enable key equivalents under X11

Enabled menu bar key equivalents, which may interfere with X11 applications that use the Meta modifier.

By default, all three of these options are enabled.

5.4.2.2 Output

The following options are used for configuring X11's look and feel:


Colors

This pop-up menu offers the following options:

  • From Display

  • 256 Colors

  • Thousands

  • Millions

By default, the Color pop-up is set to "From Display"; if you change this setting to something else, you will need to relaunch X11 for the change to take effect.


Full-screen mode

This option is unchecked by default. When unchecked, X11 runs in rootless mode, which means that X11 windows can reside side-by-side with Aqua windows . In full-screen mode, use Option- figs/command.gif -A to toggle full-screen X11 and Aqua.


Use system alert effect

Determines whether X11's beeps will use the system alert, as specified in the Sound Effects System Preference. If unchecked, X11 windows will use a standard Unix system beep to sound an alert.

5.4.2.3 Security

The following options are used to configure X11's security features:


Authenticate connections

Determines whether X11 creates Xauthority access-control keys. If the system's IP address changes, you should relaunch X11, since the old keys will become invalid.


Allow connections from network clients

If you use this option, be sure to select Authenticate connections to ensure the security of your system. If this is disabled, remote applications won't be able to connect.

Both of these settings are checked by default. If you make any changes to these settings, you must quit and restart X11 for the change to take effect.

5.4.2.4 Customizing X11's Applications menu

X11's Applications menu can be used to quickly launch X11 applications, so you don't have to enter their command path. You can add other X11 applications to this menu and assign keyboard shortcuts by selecting Applications Customize to bring up the X11 Application Menu dialog window, shown in Figure 5-5.

Figure 5-5. X11 Application Menu customization window
figs/mug2_0505.gif

The same X11 Application Menu customization window can be opened by Control-clicking on X11's Dock icon and selecting Customize from the contextual menu. When you Control-click on X11's Dock icon, you will see that the applications shown in Figure 5-5 are listed there as well. X11's context menu allows you to quickly launch other X11 applications and to switch between windows of currently running X11 applications.



Mac OS X Panther for Unix Geeks
Mac OS X Panther for Unix Geeks
ISBN: 0596006071
EAN: 2147483647
Year: 2003
Pages: 212

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net