Compositing
If you have set up your graphics card properly, you should have direct rendering enabled. To determine this we'll run the glxinfo command which is part of the mesa-progs package.
$ glxinfo | grep direct direct rendering: Yes
Compiz-fusion, or just compiz, is the most popular compositing tool. Since it isn't mainstream and can't be guaranteed to work in every envrionment, its packages are typically masked by the gentoo devs.
Since we'll be using emerald as our window decorator, we'll also need to make sure the emerald USE flag is set for the compiz-fusion package.
$ sudo nano -w /etc/portage/package.use/x11-wm
Ensure the file has the following contents.
x11-wm/compiz-fusion emerald
Try emerging the packages.
Emerge the packages.
$ sudo emerge -av x11-plugins/compiz-plugins-main x11-libs/compiz-bcop x11-wm/compiz-fusion x11-plugins/compiz-plugins-extra x11-libs/libcompizconfig x11-wm/compiz dev-python/compizconfig-python x11-libs/compizconfig-backend-gconf x11-wm/emerald x11-themes/emerald-themes x11-apps/fusion-icon x11-apps/ccsm
They will likely be masked, so portage will ask if you would like to unmask them. Say yes, then run
$ sudo etc-update
To apply the proposed changes. Run the command again to emerge the packages.
Once the emerge has completed, you'll want to set up your basic settings so when you run compiz for the first time you'll have a usable configuration. First, select Settings -> Emerald Theme Manager from your menu and select the theme you want. Next, select Settings -> CompizConfig Settings Manager from your menu. I recommend the following options:
- Desktop
- Desktop Cube
- Rotate Cube
- Viewport Switcher
- Effects
- 3D Windows
- Cube Reflection and Deformation
- Minimize Effect
- Window Decoration
- Wobbly Windows
- Extras
- Window Previews
- Utility
- Mouse position polling
- Regex Matching
- Window Management
- Application Switcher
- Move Window
- Place Windows
- Resize Window
Of course, you are welcome to add or remove any of the options here; these will simply provide you with a working configuration. Once you have enabled the options, click Close to exit CCSM.
You can now launch compiz by clicking on fusion-icon. It should replace your existing window manager with compiz using emerald as the window decorator. Compiz can be difficult to get working properly, especially in the cases of dual display configurations and older video hardware.
TO-DO: I still haven't found a way to get compiz to start nicely with X/Xfce. I still click on fusion-icon after logging in every time.