This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Compiz and transparency

Tags: None
(comma "," separated)
lcon
Registered Member
Posts
15
Karma
0
OS

Compiz and transparency

Mon Nov 09, 2009 2:06 am
Hi I'm using kubuntu with kde 4.3.3. I thought transparency would work with compiz effects enabled too - but I can't manage to get it.
It works with kwin effects on, but I prefer using compiz.
Anyone can help?

Thanks!

L

Last edited by lcon on Wed Nov 11, 2009 10:28 am, edited 1 time in total.
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS

Re: Compiz and transparency

Mon Nov 09, 2009 2:33 am
Transparency of what? Are you sure the compiz transparency effects are turned on?


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
lcon
Registered Member
Posts
15
Karma
0
OS

Re: Compiz and transparency

Mon Nov 09, 2009 11:33 am
panel transparency - I meant.
I've read in some old posts that this depends on plasma theme: I'm using Air theme, but panel remains blue with no transparency if compiz effects are enabled.
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS

Re: Compiz and transparency

Mon Nov 09, 2009 3:49 pm
Is the compiz transparency effect enabled?


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar
Timo
Registered Member
Posts
51
Karma
0
OS

Re: Compiz and transparency

Mon Nov 09, 2009 7:54 pm
Also remember to 'kquitapp plasma-desktop' and run 'plasma-desktop' again if you used 'compiz --replace'. Most of the time the panel will otherwise not get the compositing compiz provides.

Also you can follow this guide on how to make compiz be the default wm in kde without kwin ever starting:

Code: Select all
$ sudo vim /bin/startcompiz
#!/bin/bash
compiz --replace

where startcompiz must be made executable
Code: Select all
chmod a+x /bin/startcompiz


and place in your ~/.bashrc at the end:
Code: Select all
export KDEWM=startcompiz


that way your panel should get the compositing on fresh login.
lcon
Registered Member
Posts
15
Karma
0
OS

Re: Compiz and transparency

Mon Nov 09, 2009 11:57 pm
I've created the script in /usr/local/bin and then run it at start. (I don't have a .bashrc in my home)
Compiz is on but panel is still gray if the theme is air and blue if it's oxygen.
I've tried to set up transparency in compiz, but didn't manage to do it...


EDIT: Finally it works! Great! I've run "kquitapp plasma-desktop" and then plasma-desktop and the panel has gone transparent... How can I make it automatic?
User avatar
Timo
Registered Member
Posts
51
Karma
0
OS

Re: Compiz and transparency

Tue Nov 10, 2009 7:50 am
You will have to make compiz start automatically as described by me.

If you don't have a file ~/.bashrc - create it with any texteditor - thats what I have done.

this is mine:
some nice option, the important part is the "export KDEWM=startcompiz"
Code: Select all
export LS_OPTIONS='--color=auto'
eval `dircolors`
alias ls='ls $LS_OPTIONS'
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

export KDEWM=startcompiz


Have fun

*edit* - and remove any "compiz --replace" from your autostart! Otherwise you will be replaceing the working compiz with a not working one!
lcon
Registered Member
Posts
15
Karma
0
OS

Re: Compiz and transparency

Wed Nov 11, 2009 12:02 am
Hi Timo!
I've followed the instructions you suggested me in your last post and created a .bashrc file in my home with no results.
Even Compiz is off.
Probably you use a different distribution, I'm on Kubuntu Karmic.
Do you think there could be another way to reach the goal instead of Kquitapp plasma, and so on?
Thanks
User avatar
Timo
Registered Member
Posts
51
Karma
0
OS

Re: Compiz and transparency  Topic is solved

Wed Nov 11, 2009 6:55 am
Hm, now that is strange. Let me check if I missed a step:

1. create a file named "startcompiz"
Code: Select all
kate startcompiz


2. write in that file:
Code: Select all
#!/bin/bash
compiz --replace


3. close the editor

4. move the file to /bin/ (or somewehere in your path)
Code: Select all
sudo mv startcompiz /bin/


5. make that file executable
Code: Select all
sudo chmod a+x /bin/startcompiz


6. edit your .bashrc
Code: Select all
sudo kate .bashrc


7. add the line
Code: Select all
export KDEWM=startcompiz

to the bottom of the file (or create the file and just add this line)

8. close editor

9. check your .bash_profile
Code: Select all
kate .bash_profile

there should be a line in the saying
Code: Select all
source ~/.bashrc

if not, add it.

10. close editor

Now log out of KDE.
Since all these scripts are just "on login" we should not need to restart. So just log back in and compiz should be your windowmanager. If no windowborders are shown, thats emerald. You can either add it to the startcompiz script (after a little sleep of 5 or so) or you can just put it in autostart OR in the compiz-window-decorator plugin setting (last one is probably the cleanest way of doing it).
lcon
Registered Member
Posts
15
Karma
0
OS

Re: [SOLVED]Compiz and transparency

Wed Nov 11, 2009 10:31 am
Timo thank you!
I missed .bash_profile!
Now all works perfectly!

I've added SOLVED!

Again thank you so much!

Luigi
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

Re: Compiz and transparency

Wed Nov 11, 2009 11:27 am
Changed to the new way of marking topics as solved.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]