Topic: Xfce: Compiz, RGBA Transparency, UI Tweaks/
-edit Aug. 4, 2011- This tutorial is a year old and I have no idea if it still works. I'm not using transparency these days so I don't really feel like testing it and risk breaking my system, use at your own risk. If I do find a wallpaper that begs for RGBA transparency and try it again, I'll definitely post my results here. As is pointed out in the following thread, Xfce has nice transparency built in, configurable under Window Manager Tweaks. - end edit-
I have a brand new installation of Statler Xfce I'm getting to know. Let's copy this desktop theme I made...
<edit>Conky and tint2 workarounds are posted later on, or post a message for help.</edit>
<Jan. 25, 2011 edit> A note about using RGBA transparency with xfce-panel that I had entirely forgotten about... the Notification Area applet will not function properly with Compiz enabled. Please remove it from the panel before enabling Compiz. The workaround is to install xfce4-xfapplet-plugin and gnome-applets and use the Gnome applet version of Notification Area via XfApplet (panel->Add New Item->XfApplet->Notification Area). The drawback is that gnome-applets pulls gnome-menu and gnome-panel with it, which won't get used but won't screw anything up either.</edit>
Up front I should say that I'm ignoring Conky as I don't use it and I haven't done any experimenting with getting Conky to work with Compiz or alpha transparency. To disable Conky until the Conky gurus can tell you how to make it work, just rename the hidden file (Ctrl+h to reveal it) .conkyrc in your home/USER_NAME folder to .conkyrc.bak
I've done a lot in a short time, we'll take this in steps...
The first thing we need is to enable Compiz. If you don't have a graphics card & driver capable of running Compiz, you can stop here. I have an integrated Nvidia card, instructions for enabling Nvidia drivers are here...
http://crunchbanglinux.org/forums/topic
r-squeeze/
Reboot, everything looking good? Install Compiz via a terminal...
sudo apt-get update && sudo apt-get install compiz compizconfig-settings-manager compiz-fusion-plugins-main compiz-gnome compiz-gtkIf you want extra plugins like fire on the desktop (I didn't bother), do...
sudo apt-get install compiz-fusion-plugins-extraThere are additional instructions for editing xorg.conf that I didn't need...
http://wiki.debian.org/Compiz
Start Compiz by opening the run dialog (Alt+F2) and running...
compiz --replaceYou should now have a basic Compiz session with almost no plugins enabled. Make sure Compiz starts at login by loggin out and checking the box in the logout window for "Save session for future logins". You'll probably lose tint2 when you log in. We'll fix this later but for now start it by opening the Run dialog and running
tint2Let's set shadows so that they're ready for transparency. Open the CompizConfig Settings Manager (In your Xfce Menu under Settings). On the left pane, choose "Effects" and then "Window Decoration". Under "Shadow Windows", delete "any" and copy/paste the following...
normal | dock | tooltip | popupmenu | dropdownmenu | !notificationI'm using xfce4-panel (we'll get to it), but if you use tint2 or another dock or panel and you want to remove the shadow, remove...
normal | dock | (Logout/in or restart tint2 to see the change.)
This is the magic formula I created to have shadows render properly with transparency enabled. Guard it with your life and don't argue.
We need some blur to make text readable when we enable transparency, so go to "Back" and then to "Blur Windows" and set "Blur Filter" to "Gaussian" and "Gaussian Radius" to "5". Close the window.
We need to make sure Compiz is starting at login. Log out and make sure to check the box to "Save session for future logins". Reboot.
Everything good? Let's get these glassy windows going. We need to edit our sources.list file. Again, in a terminal...
gksu gedit /etc/apt/sources.listPaste this in the bottom of the file that opens...
deb http://ppa.launchpad.net/erik-b-andersen/rgba-gtk/ubuntu lucid main...and save it, then update your sources from the terminal...
sudo apt-get update...ignore the warning and install the needed packages...
sudo apt-get install --reinstall gnome-color-chooser gtk2-engines-murrine gtk2-module-rgbaWhen it's done, remove the line from your sources.list and update again to remove the warning...
sudo apt-get updateNow open Gnome Color Chooser (under "Settings") and go to the tab on the far right (you may have to scroll) labeled "Engines". Check "Global" and set the engine to "Murrine" and under "Preferences" check both boxes to "Enable/Disable RGBA support". Then "OK", "Apply", wait for it and "Close". Log out and in and after a few seconds you should have transparency.
Here was my source for that...
http://www.webupd8.org/2010/05/enable-r
u-910.html
Iceweasel/Firefox might not play Flash without a fix. If so, we need to alter the startup script...
gksu gedit /usr/bin/firefoxBelow the line that reads
#!/bin/sh...add...
export XLIB_SKIP_ARGB_VISUALS=1We might also need to blacklist a few programs from transparency (video players especially). Open the hidden file .profile in your /home/USER_NAME folder and add this to the bottom....
export GTK_MODULES=rgba
export GTK_RGBA_APPS=allbut:firefox-bin:gnome-mplayer:totem:soffice:mplayer:gxine:inkscapeYou can add more programs to the second line, of course.
OK, that's a good start, let me know if I screwed these instructions up somewhere. To be continued...
Last edited by hhh (2011-08-08 05:08:13)






