Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

True Transparency for aterm [Solved]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
housetroll0
n00b
n00b
Posts: 3
Joined: Tue Oct 03, 2006 8:50 pm

True Transparency for aterm [Solved]

  • Quote

Post by housetroll0 » Fri Dec 08, 2006 5:50 pm

Anybody looking to waste a little time? I have a challenge for you.
I am looking to make aterm truely transparent so that I can see my really slick screensaver that is running as my desktop background.
Making a screensaver run as a background was easy enough, just add to your .bash_profile the command to run your screensaver. I used
echo >> "/usr/lib/misc/xscreensaver/helios --root --nice --speed 3 --cameraspeed 1 --maxfps 20 &" >> ~/.bash_profile
Most of the options are to make the eyecandy not take up so much processer. From conky I can see that it typically uses less than 2% cpu for my Dell precision M65.

This is not truely setting my background to the screensaver, but constantly writing over it. So, when I use
$ aterm -tr
to get a transparent aterm, I do not see the screensaver but instead the wallpaper background (currently an ugly grey).

I have a thought on how I can get the screensaver to show up with aterm, but don't know exactly how to do it. I would try to pipe the screensaver to file or pseudofile and have the background constantly be updated with it. Anyone with any ideas, solutions?

-Troll

P.S.- Yes I know I'll be eating resources like mad, its just a mountain to climb because its there. I need a sherpa.
Last edited by housetroll0 on Fri Dec 08, 2006 8:44 pm, edited 1 time in total.
Top
RageOfOrder
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 99
Joined: Sun Aug 06, 2006 10:48 pm
Location: EH?!?!

  • Quote

Post by RageOfOrder » Fri Dec 08, 2006 6:06 pm

As far as I know you'll need something like xcompmgr, or Compiz/Beryl if you have KDE or GNOME.
...And then stuff happened.
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

Re: True Transparency for aterm

  • Quote

Post by i92guboj » Fri Dec 08, 2006 7:24 pm

housetroll0 wrote: I am looking to make aterm truely transparent so that I can see my really slick screensaver that is running as my desktop background.
Making a screensaver run as a background was easy enough, just add to your .bash_profile the command to run your screensaver. I used
echo >> "/usr/lib/misc/xscreensaver/helios --root --nice --speed 3 --cameraspeed 1 --maxfps 20 &" >> ~/.bash_profile
Most of the options are to make the eyecandy not take up so much processer. From conky I can see that it typically uses less than 2% cpu for my Dell precision M65.

This is not truely setting my background to the screensaver, but constantly writing over it. So, when I use
$ aterm -tr
to get a transparent aterm, I do not see the screensaver but instead the wallpaper background (currently an ugly grey).
That's correct. Aterm cannot do transparencies, only the old ugly trick that every application under the sun do, which consist on using the wallpapers or a portion of it as a background. Konsole, Eterm and urxvt do the same, and do does the fvwm and kde "transparent" menus and lots of other apps.

I have a thought on how I can get the screensaver to show up with aterm, but don't know exactly how to do it. I would try to pipe the screensaver to file or pseudofile and have the background constantly be updated with it. Anyone with any ideas, solutions?
Erm... even thru direct rendering it is quite resource consuming, imaging doing it as you describe :P

As someone stated you need to use the Xorg composite extension. You can search the gentoo wiki to discover how to setup composite and use xcompmgr to achieve those effects under any window manager, or you can use a window manager that can do so natively. Kwin has support for it if you compile it with the xcomposite use flag. Beryl and compiz can do so as well, and the latest metacity. Enlightenment has this capability since long ago.
Top
housetroll0
n00b
n00b
Posts: 3
Joined: Tue Oct 03, 2006 8:50 pm

  • Quote

Post by housetroll0 » Fri Dec 08, 2006 8:41 pm

Ok, thanks for the info. I just got comfortable with fluxbox so I don't want to switch WM again just yet. I emerged xcompmgr, it looks like it will work--after I get this no composite extension error corrected. Until then I'll consider this topic solved....
6th pink, RageofOrder,
Thanks alot.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

Re: True Transparency for aterm

  • Quote

Post by Sadako » Sat Dec 09, 2006 6:16 am

6thpink wrote:
housetroll0 wrote: I am looking to make aterm truely transparent so that I can see my really slick screensaver that is running as my desktop background.
Making a screensaver run as a background was easy enough, just add to your .bash_profile the command to run your screensaver. I used
echo >> "/usr/lib/misc/xscreensaver/helios --root --nice --speed 3 --cameraspeed 1 --maxfps 20 &" >> ~/.bash_profile
Most of the options are to make the eyecandy not take up so much processer. From conky I can see that it typically uses less than 2% cpu for my Dell precision M65.

This is not truely setting my background to the screensaver, but constantly writing over it. So, when I use
$ aterm -tr
to get a transparent aterm, I do not see the screensaver but instead the wallpaper background (currently an ugly grey).
That's correct. Aterm cannot do transparencies, only the old ugly trick that every application under the sun do, which consist on using the wallpapers or a portion of it as a background. Konsole, Eterm and urxvt do the same, and do does the fvwm and kde "transparent" menus and lots of other apps.
Actually, urxvt has had support for true transparency since around 7.0, so you can try that out if you can get the composite extension working (and it should be easy enough to get used to coming from aterm).

rxvt-unicode is actually the name of the package, and you'll probably have to add it to package.keywords to get the required version.
"You have to invite me in"
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

  • Quote

Post by i92guboj » Sat Dec 09, 2006 12:16 pm

Nice, believe it or not, urxvt is about the only term emulator I use. But I'm not much into eyecandy, I like it better than any other term just because it's better unicode support, its nice rendering of the fonts and its perl extension and keysyms that I use intensively. Low memory consumption and the capability to use a lot of cliente consoles attached to a single daemon are interesting features as well. There is nothing about "true transparency" or "composite" in the changelog and I can't seem to find it in the manpage (maybe it is not up to date, I don't know). I think mrxvt has built-in composite support, but did not know a thing about urxvt. Would you mind telling us which config option should we look into?

Thanks.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sat Dec 09, 2006 1:41 pm

Okay, that was really annoying.

I don't use urxvt myself, so trying to figure out how the damn thing works is a pain in the ass, as it's not mentioned anywhere.

First, you need rxvt-unicode compiled with the truetype use flag enabled, which shoudn't be a problem for most, but had me scratching my head as to why the "-depth 32" option, which is what you need to enable compositing, returned a

Code: Select all

urxvt: "depth": unknown or malformed option.
urxvt: "32": malformed option.
Anyway, to try it out start urxvt with something like this;

Code: Select all

urxvt -depth 32 -fg white -bg rgba:0000/0000/0000/cccc
This is what (the end of) the man page tells you, but it never mentions composite;
man urxvt wrote: ALPHA CHANNEL SUPPORT

If Xft support has been compiled in and as long as Xft/Xrender/X don't
get their act together, rxvt-unicode will support
"rgba:rrrr/gggg/bbbb/aaaa" (recommended, but MUST have 4 digits/compo-
nent) colour specifications, in addition to the ones provided by X,
where the additional A component specifies opacity (alpha) values. The
minimum value of 0 is completely transparent). You can also prefix any
color with "[a]", where "a" is on to four hex digits specifiying the
opacity value.

You probably need to specify "-depth 32", too, and have the luck that
your X-server uses ARGB pixel layout, as X is far from just supporting
ARGB visuals out of the box, and rxvt-unicode just fudges around.

For example, the following selects an almost completely transparent red
background, and an almost opaque pink foreground:

urxvt -depth 32 -bg rgba:0000/0000/0000/2222 -fg "[e]pink"

Please note that transparency of any kind if completely unsupported by
the author. Don't bug him with installation questions!
I really should have remebered how much of a pain it was to figure out when I mentioned this in my last post.

I also forgot how nice it is, though. Might start using it again myself.
"You have to invite me in"
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

  • Quote

Post by i92guboj » Sat Dec 09, 2006 3:02 pm

Thank you for the quick response. :)

I inmediatly though about compositing. I am not sure but for what it seems that alpha transparency can be used only in RGBA visuals and it might, probably, be something similar to the shaped transparency that some wm's like fvwm feature on some modules, that can show the windows below them, faking some kind of advanced false transparency. If this is the same, it is still a fake, though a clever one. You can make sure by puting the transparent term in front of an mplayer window while a video is running, you will see the mplayer thru a shaped bar in fvwm for example, but the video under that shaped thingie will not update.

This is just my assumption, I never used that feature and didn't even know it existed.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sat Dec 09, 2006 4:03 pm

Just tested this out, and placing the urxvt window over mplayer's just gives an ugly black box where they overlap, and the drop shadows make it even worse.

However,if I try it mplayer with "-vo x11" instead of the default xv overlay, you can see the video playing in the terminal's background, and there is very little difference with regards to cpu usage.

It's quite nice actually, here's a quick screenie (beware, large file ~700 Kb).
"You have to invite me in"
Top
widremann
Veteran
Veteran
Posts: 1314
Joined: Mon Mar 14, 2005 9:47 pm

  • Quote

Post by widremann » Sun Jun 08, 2008 5:55 pm

Hopeless wrote:Okay, that was really annoying.

I don't use urxvt myself, so trying to figure out how the damn thing works is a pain in the ass, as it's not mentioned anywhere.

First, you need rxvt-unicode compiled with the truetype use flag enabled, which shoudn't be a problem for most, but had me scratching my head as to why the "-depth 32" option, which is what you need to enable compositing, returned a

Code: Select all

urxvt: "depth": unknown or malformed option.
urxvt: "32": malformed option.
Anyway, to try it out start urxvt with something like this;

Code: Select all

urxvt -depth 32 -fg white -bg rgba:0000/0000/0000/cccc
This is what (the end of) the man page tells you, but it never mentions composite;
man urxvt wrote: ALPHA CHANNEL SUPPORT

If Xft support has been compiled in and as long as Xft/Xrender/X don't
get their act together, rxvt-unicode will support
"rgba:rrrr/gggg/bbbb/aaaa" (recommended, but MUST have 4 digits/compo-
nent) colour specifications, in addition to the ones provided by X,
where the additional A component specifies opacity (alpha) values. The
minimum value of 0 is completely transparent). You can also prefix any
color with "[a]", where "a" is on to four hex digits specifiying the
opacity value.

You probably need to specify "-depth 32", too, and have the luck that
your X-server uses ARGB pixel layout, as X is far from just supporting
ARGB visuals out of the box, and rxvt-unicode just fudges around.

For example, the following selects an almost completely transparent red
background, and an almost opaque pink foreground:

urxvt -depth 32 -bg rgba:0000/0000/0000/2222 -fg "[e]pink"

Please note that transparency of any kind if completely unsupported by
the author. Don't bug him with installation questions!
I really should have remebered how much of a pain it was to figure out when I mentioned this in my last post.

I also forgot how nice it is, though. Might start using it again myself.
I've tried that, but I get the stupid "Error: Unsupported depth 0... exiting" message, which makes no sense, because I gave it a depth of 32, not 0. Googling reveals absolutely nothing. Any ideas?
Top
Post Reply

10 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy