X.Org/Transparency

This guide is meant to explain how to enable transparency effects in various Window Managers and how to use other X tools for greater control.

X Composite Extension
It's essential that you first configure the X server to enable its Xcomposite extension. Add the following to ,

Restart the X server for these settings to take effect.

KDE4
KDE4's KWin4 Window Manger has built-in 3D-plugins, much like Compiz. Emerge KDE's packages with the, where applicable, enabled. See System Settings -> Desktop to enable and configure KDE's Desktop Effects.

KDE 3.x
KDE 3.x's KWin Window Manager has support for composite features provided you set the USE-flag when emerging  and  for the split ebuilds or  using the monolithic ebuilds. Open up KDE Control Center from the KMenu. On the tree on the left, click Desktop->Window Behavior. Click on the Translucency tab and check the Use translucency/shadows option. The various settings are then available for tweaking in the configuration frame. Restarting KDE may be required to enable your new settings.

Enlightenment 0.16
Enlightenment 0.16 supports the composite extension natively, including transparency and shadows and it requires no special USE-flag. In the default configuration it is not enabled, you have to right-click on the desktop and select Composite Settings. Now you are able to control the features for the different windows by right-clicking on the titlebar (the menu where you can set all differnt kinds of window properties. No restart is required.

Enlightenment DR17
Enlightenment DR17 cvs does have a module called Bling for controlling drop shadows and window fades. Just unmask and emerge after emerging. The module can be activated from Configuration->Modules->Bling.

It is crucial that you issue

as the user who is running e17.

You will also have to deactivate the Dropshadow module in order to get nice shadows which do not interfere with the Bling shadows.

Xfce
Settings -> Window Manager Tweaks -> Compositor

compton
Like xcompmgr but faster and with fixed bugs. And clearly with more options: see the Webpage at GithHub.

xcompmgr
At this point we have all we need to enable drop shadows, cool "fade out" effects and real transparency. First we need to launch xcompmgr. From a console inside of X.Org do this:

This will let you see the effects of running xcompmgr - if you don't like them, just type from the console you are running xcompmgr in. If you do like them, type and then:

The & asks xcompmgr to run in the background - when it's started this way you will have to use or  to stop xcompmgr.

This will enable xcompmgr with soft drop shadows turned on. You should now have happy little drop shadows on all your windows. You could optionally use the -s flag instead for hard shadows.

Here are some example settings for xcompmgr with shadow and fading,

To disable all of this after you have got it going, simply type this in a console,

This will turn xcompmgr off, and disable all drop shadows and transparency settings.

transset
To enable transparent window, you'll need to tool ,

Run in a terminal,

Now your cursor will have changed, simply click on the window you want to make see through. You can also pass transset a value to define how transparent to make the windows, where 0 is fully transparent and 1 is fully opaque. Try:

transset-df
If you don't want to wait and transset is not too handy for you, you can use ,

Then, you can use keyboard or mouse shortcuts to set the transparency value to the focused windows.

The scroll wheel method can be realized via xbindkeys.

This way you can adjust the transparency of any window dynamically.

Performance
To increase performance, add to your ,

Another preformance tip is enabling Backing Store, add to your ,

When enabled, you will find the following lines in your xorg log file :

This option is used to enable the server's support for backing store, a mechanism by which pixel data for occluded window regions is remembered by the server thereby alleviating the need to send expose events to X clients when the data needs to be redisplayed. This can significantly increase performance.

XOrg X11 и прозрачность