start page | rating of books | rating of authors | reviews | copyrights

Book HomeLinux in a NutshellSearch this book

Chapter 17. An Alternative Window Manager: fvwm2

Contents:

Running fvwm2
Configuration Files
A Modular Approach
How to Implement Window Manager Customizations
A Quick Tour of the fvwm Environment
Specifying Click-to-Type Focus
Raising the Focus Window Automatically
Changing the Size of the Desktop
Having Multiple Desktops
Making the Same Window Appear on Every Page
Starting Windows on Different Desktops and Pages
If It's Too Hard (or Easy) to Move the Pointer Between Pages
Adding Keyboard Shortcuts
Customizing Menus
The FvwmWinList: Switching the Focus

Among the more appealing characteristics of a Linux system are its flexibility, its independence from industry-dominating standards, and the degree of control a user has over his own working environment. Most flavors of Linux come with a default desktop environment replete with handy tools and menus and a consistent look and feel. The most widely used of these desktop environments are GNOME and KDE, the customization of which are detailed in Chapter 15, "GNOME", and Chapter 16, "KDE", respectively.

Both of these environments put a PC-like wrapper around what is basically a no-frills Unix-based system suitable for personal computers. For some people this is a good thing. But if you don't want a lot of dialog boxes cluttering up the screen, and you're comfortable editing configuration files to customize your environment, you might instead try the fvwm2 window manager.

fvwm2 is the latest generation of a window manager called fvwm, but in neither case has it been entirely clear what fv stands for. Virtual seems a reasonable guess for the v. fvwm predates both GNOME and KDE as a program that can provide multiple virtual screens to expand your desktop real estate. But the meaning of the f in fvwm has led to much speculation. In fact, among the latest group of the program's developers are a number of cat lovers who claim the f stands for feline.

The first important concept you should understand in order to work with fvwm is that your desktop can be larger than the area of your screen. In fact, fvwm2 can let you have acres of desktop real estate in the form of virtual screens, or pages. In a typical default environment, you might have a single desktop composed of four virtual screens/pages arranged in a two-by-two grid.

You can run applications on any of the screen pages you want and navigate the entire desktop in a variety of ways. And if the default environment doesn't suit you, well, you can specify a grid of any size you like. How about three screens across and two down? No problem.

And if that isn't enough space for you, you can also have multiple desktops, each composed of multiple pages! You might use separate desktops for different applications or different projects, whatever you like. fvwm2 provides the tools for you to navigate whatever space you design.

fvwm2 is also customizable in a vast number of other ways, some of the more significant of which this chapter will summarize. What it all boils down to is maximum workspace and maximum flexibility.

17.1. Running fvwm2

Most flavors of Linux will come with some reasonably current version of fvwm2. If you're running GNOME or KDE, the easiest way to switch over to fvwm2 is to:

  1. Invoke the window manager in your X client's startup file. (Depending on your environment, this file may be called .xinitrc, .startx, .xsession, or .Xclients.)

  2. Then restart X.

Here is an excerpt from a simple startup file that has been edited to run fvwm2:

xterm -geometry +50+0 &
xterm -geometry -0+0&
fvwm2 &
xterm -title login -iconic

Although hypothetically you can run fvwm2 along with GNOME or KDE, they provide greatly overlapping functionality. What you get is an ugly hybrid and not fvwm at all.



Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.