Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Desktop Effects & Customization
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Desktop Effects & Customization
This section is for all your compositing needs. This includes Beryl, Compiz, xcompmgr, and other fancy apps which take advantage of compositing managers such as kiba-dock and avant window decorator

 
Thread Tools Display Modes
Old August 25th, 2007   #1
phaedOne
5 Cups of Ubuntu
 
phaedOne's Avatar
 
Join Date: Apr 2006
Location: Miami, FL
Beans: 19
Ubuntu 7.04 Feisty Fawn
Arrow HOWTO: Put a real-transparent shell on your desktop (requires Compiz-Fusion)

I will show how to create a transparent shell using only gnome-terminal and Compiz-fusion. Check out the attached screenshots.

Part 1:

Create a new profile in gnome-terminal (Edit->Profiles->New), name it "trans". Set the following characteristics:

Cursor blinks: off
Show menubar: off
Initial title: trans
Dynamically-set title: Isn't displayed
Color scheme: Black on white
Transparent Background: on
Set the transparency down to "None"
Scrollbar: disabled

The important part here is that now the gnome-terminal is gonna have the title trans. We can now target the gnome-terminal windows that are using trans profile from inside CompizConfig by using title=^trans$
  • The ^ at the begining means for the title to match it must start with the word trans, The $ at the end means the title must end after trans. This prevents it from matching other phrases that include "trans" for example "The transformers" (See:Regular Expressions). You can match windows by other things than their title (See: [How To] Use opacity values and Window Rules).

Part 2:

Have an instance of gnome-terminal open with the trans profile so you can see whats happening to it as you follow the rest of the howto. Open CompizConfig (System->Preferences->CompizConfig).

Make sure you have the regEx plugin enabled.

Go to the Window Decoration plugin and add !title=^trans$ to the Decoration windows field. This will skip adding window borders to our trans terminals.

Go to the Window Rules plugin. Add title=^trans$ to the following fields (This will turn the terminals into a widget-like windows, Sticky will put them on all sides of the cube):
  • Skip taskbar, Skip pager, Below, Sticky, Non resizable windows, Non minimizable windows, Non maximizable windows, Non closable windows
In the Fixed Size Windows section click add. Use title=^trans$ for the the Sized Window field and put the height and width you want for your shells.

Go to the Place Windows plugin, go to the Windows with fixed positions tab, in Windows with fixed positions click add. Put title=^trans$ in Positioned Windows field and put x and y coordinates of the default position you want for your shell (top-left corner is 0,0). After they have loaded you can move them by Alt-Dragging them.

To run the transparent gnome-terminal use:
Code:
gnome-terminal --window-with-profile=trans
Edit:
The guide will put the same shell repeated on all sides of the cube. You could put a different shell on each side of the cube. To do this create a profile following the fist part of the instructions above but change the title to trans1. Now make three new profiles using this first profile as its base. Change the titles of these profiles to: trans2, trans3, trans4. Now follow the second part of the instructions above using title=^trans[1-4]$ instead of title=^trans$ to match the windows. Now you want to set each one to appear on a fixed side of the cube. Go to the Place Windows plugin, go to the Windows with fixed positions tab, in Windows with fixed viewports. Here add each of your four windows ( title=^trans1$, title=^trans2$, ...) along with the viewport you want them to be in.


dock: avant-window-navigator
widgets: conky / theme


Attached Thumbnails
Click image for larger version

Name:	scrn1.jpg
Views:	1166
Size:	362.2 KB
ID:	41655   Click image for larger version

Name:	Screenshot.jpg
Views:	1687
Size:	542.3 KB
ID:	41656  

Last edited by phaedOne; August 31st, 2007 at 08:51 PM..
phaedOne is offline   Reply With Quote
Old August 25th, 2007   #2
ESPOiG
Ubuntu Extra Shot
 
ESPOiG's Avatar
 
Join Date: Nov 2005
Location: Perth, Western Australia
Beans: 341
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to ESPOiG
Re: HOWTO: Put a shell on your desktop (requires Compiz*)

very good ill try that soon

1 question what is the dock program?
__________________
Bet im the Only Celtic FC supporter in Perth using UBUNTU - if not gimme a Yell
ESPOiG is offline   Reply With Quote
Old August 26th, 2007   #3
psyopper
Ubuntu Extra Shot
 
psyopper's Avatar
 
Join Date: Apr 2007
Location: Portland, Oregon
Beans: 340
Ubuntu 8.04 Hardy Heron
Re: HOWTO: Put a shell on your desktop (requires Compiz*)

Good one!! I had been working on doing this with Devilspie a few month back but got frustrated with the window sizing and placement scheme. This is much easier - size the window, place it then lock it down and clean it up with Window Rules and Window Decoration in Compiz-Fusion.

Mush less overhead to do the same thing considering I'll be running CF anyway.

Thanks a bunch!!
psyopper is offline   Reply With Quote
Old August 26th, 2007   #4
walkerk
Has an Ubuntu Drip
 
walkerk's Avatar
 
Join Date: May 2007
Location: Darmstadt, Germany
Beans: 761
Re: HOWTO: Put a shell on your desktop (requires Compiz*)

Very nice. I just removed devilspie..
__________________
Signature
walkerk is offline   Reply With Quote
Old August 26th, 2007   #5
Dark Star
Has an Ubuntu Drip
 
Dark Star's Avatar
 
Join Date: Apr 2007
Location: India
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Put a shell on your desktop (requires Compiz*)

Awesome guide .. Will give it a try soon Thanks bro
Dark Star is offline   Reply With Quote
Old August 26th, 2007   #6
chm0d
5 Cups of Ubuntu
 
Join Date: Apr 2006
Location: Florida
Beans: 15
Ubuntu 7.10 Gutsy Gibbon
Re: HOWTO: Put a shell on your desktop (requires Compiz*)

I just did this and it worked great, but now I have no borders around any of my windows. Did I do something wrong? Obviously i did LOL....tell what I did. Also when we were told to put title=trans in certain spots and plugins do I use the quotes as well? I also seen one with an exclamation mark just want to make sure that is correct as well. BTW I love your conky theme great job on that.

fsckr
chm0d is offline   Reply With Quote
Old August 26th, 2007   #7
walkerk
Has an Ubuntu Drip
 
walkerk's Avatar
 
Join Date: May 2007
Location: Darmstadt, Germany
Beans: 761
Re: HOWTO: Put a shell on your desktop (requires Compiz*)

Quote:
Originally Posted by chm0d View Post
I just did this and it worked great, but now I have no borders around any of my windows. Did I do something wrong? Obviously i did LOL....tell what I did. Also when we were told to put title=trans in certain spots and plugins do I use the quotes as well? I also seen one with an exclamation mark just want to make sure that is correct as well. BTW I love your conky theme great job on that.

fsckr
dont use quotes.. and the exclamation point means exclude basically.. so !title=trans would decorate all windows except those with trans in the title which you would use for window decorations plugin. the rest should be title=trans..
__________________
Signature
walkerk is offline   Reply With Quote
Old August 26th, 2007   #8
Meyithi
First Cup of Ubuntu
 
Meyithi's Avatar
 
Join Date: Jul 2007
Location: Liverpool, UK
Beans: 8
Ubuntu 9.04 Jaunty Jackalope
Send a message via MSN to Meyithi
Re: HOWTO: Put a shell on your desktop (requires Compiz*)

chm0d for "Window Decoration", if you have "any" in there, remove it and just add !title=trans

Otherwise if you have more custom rules in there I think the seperator is "|"

Last edited by Meyithi; August 26th, 2007 at 09:05 AM..
Meyithi is offline   Reply With Quote
Old August 26th, 2007   #9
chm0d
5 Cups of Ubuntu
 
Join Date: Apr 2006
Location: Florida
Beans: 15
Ubuntu 7.10 Gutsy Gibbon
Re: HOWTO: Put a shell on your desktop (requires Compiz*)

Quote:
Originally Posted by Meyithi View Post
chm0d for "Window Decoration", if you have "any" in there, remove it and just add !title=trans

Otherwise if you have more custom rules in there I think the seperator is "|"
This did not work for me. I have !tile=trans in that field. If i put that in there without quotes nothing happens. If I put that in there with quotes every window is missing a border. So there is definitely something wrong. I have compiz-fusion 0.5.2. I have recieved some help on the compiz-fusion irc channel and the person there had the same problem that I did.

fsckr

*solved. instead of !title=trans I had to xprop | grep WM_CLASS in terminal to fine the class which for me was Gnome-terminal so I had to put !class=Gnome-terminal in that field instead of !title=trans. Hope this helps everyone else having this problem. Also thanx to amphi on #compiz-fusion on irc!

fsckr

Last edited by chm0d; August 26th, 2007 at 11:24 AM..
chm0d is offline   Reply With Quote
Old August 26th, 2007   #10
Lord Illidan
Ubuntu addict and loving it
 
Lord Illidan's Avatar
 
Join Date: Jun 2005
Location: Malta
Beans: 5,097
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to Lord Illidan
Re: HOWTO: Put a shell on your desktop (requires Compiz*)

Nice..but I have a couple of probs.

First, how can I disable show desktop plugin from moving it?

Secondly, try typing trans in a google search in firefox. The title changes to include trans, and ... havoc ensues.
Lord Illidan is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:44 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry