JWM question... Transparency?

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

JWM question... Transparency?

#1 Post by DaveS »

Lucid Puppy 5.1.1, JWM. Is it possible to enable any level of transparency in JWM, and if so, how?
Spup Frugal HD and USB
Root forever!

User avatar
upnorth
Posts: 287
Joined: Mon 11 Jan 2010, 19:32
Location: Wisconsin UTC-6 (-5 DST)
Contact:

http://packages.ubuntu.com/lucid/xcompmgr

#2 Post by upnorth »

http://packages.ubuntu.com/lucid/xcompmgr
or
http://packages.ubuntu.com/maverick/xcompmgr
xcompmgr is only 30k or 27k
Either one should work.

it can be launched manually, but the best way is to launch from .xinitrc just before jwm is launched.

# rox -p /root/Choices/ROX-Filer/PuppyPin
#fi

#===================
if [ "$CURRENTWM" = "jwm" ];then
xcompmgr&
fi
#===================


#exec $CURRENTWM
#v2.11 GuestToo suggested this improvement...
which $CURRENTWM && exec $CURRENTWM
[ -x $CURRENTWM ] && exec $CURRENTWM
exec jwm

###END###


You make it conditional this way so it only launches if jwm is the window manager - otherwise use just xcompmgr& by itself further up.

Jwm has some "sane defaults" but you can add tags to your jwmrc-theme like:
<TrayStyle>
<Opacity>.6</Opacity>
<Font>DejaVu Sans-14:Bold</Font>
<Foreground>white</Foreground>
<Background>#718995</Background>
</TrayStyle>
for example.

The opacity tag accepts values between 0 and 1. 8)

ADDED:one more thing
In the file /etc/profile, around line 89, you can comment out this line:
#export XLIB_SKIP_ARGB_VISUALS=1
but it may not be necessary. You can experiment with this, but leave it alone and see if trans works first without commenting it out. It really depends on what apps are going to use argb visuals.

I just got xcompmgr going in 431 without commenting out the line, but did have to add to end of xorg.conf:

Code: Select all

Section "Extensions"
Option "Composite" "1"
EndSection
This is probably required for the 4.x versions of puppy.


Quirky may have xcompmgr by default - not sure. Wary 07 has ver 1.4 i think.
In this shot the effect is overdone at .6 opacity to illustrate:
Attachments
snap_argb_jwm640.jpg
jwm transparency
(107.33 KiB) Downloaded 1583 times
Last edited by upnorth on Tue 21 Sep 2010, 02:39, edited 1 time in total.

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#3 Post by DaveS »

PERFECT thanks...............
Spup Frugal HD and USB
Root forever!

elpablo75
Posts: 11
Joined: Wed 02 Jun 2010, 12:35

#4 Post by elpablo75 »

Hi there. I need help. I'm trying to make xcompmgr work on puppy 4.3.1 but i always get No extension...
I'm not good in compiling.I downloaded the package from debian packages instead of the ubuntu repo. The only available version is for squeeze. I've seen that in lupu 5.01 everything work good and easily, but in puppy 4.3.1... Any suggestion?


User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#6 Post by technosaurus »

the old thread mentioned that kcompmgr was a better solution than xcompmgr, but it would be worth seeing if unagi could work too
http://projects.mini-dweeb.org/projects/unagi
Unagi is a modular compositing manager which aims to be efficient, lightweight and responsive. It is currently written in C programming language and based on XCB library client library. Any existing window manager can be used as long as it implements properly EWMH and ICCCM specifications (or at least parts of it which are needed), which is generally the case nowadays.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

elpablo75
Posts: 11
Joined: Wed 02 Jun 2010, 12:35

#7 Post by elpablo75 »

Thanks for your suggestion. But in the meanwhile i've solved the problem with xcompmgr.
Found the package for lenny, but also the squeeze one works fine, and it's more updated.
The problem was in the screen settings in xorg.conf. Depth was set to 24, when i set it to 16 it works without problems.
I've made a tutorial here:
TUTORIAL
integrating the above precious suggestions and my personal experience in this, and i want to thank you for share your know-how with us newbee.
At the end of that tutorial i've put a simple .pet that create the menu item to launch xcompmgr when you want, without keeping an open console. You can modify its settings in /usr/local/bin/xcompmgrlauncher. I'd like to create a gtk GUI to manage those settings, i've found a tutorial about it here in HOW-TO section of this forum. If i'll have problems (surely i'll have many) i'll post there.
Btw, this is what i got with xcompmgr (the theme is one created by me, nothing special, if someone like it and want it let me know):
Image

Apiep
Posts: 19
Joined: Thu 30 Dec 2010, 14:51
Location: Mojokerto, Indonesia

how about fluxbox and openbox

#8 Post by Apiep »

how about fluxbox and openbox wm?

User avatar
`f00
Posts: 807
Joined: Thu 06 Nov 2008, 19:13
Location: the Western Reserve

#9 Post by `f00 »

@Apiep - fluxbox already has an extensive pseudo-trans capability which doesn't require Xorg (but can use a compmgr if I recall correctly .. I also recall it was somewhat unstable for me in the past), openbox uses a compmgr more for quicker renders as I understand some openbox blogs, xfce4 will use a compmgr effectively for translucency effects (and has a nice ui-applet for that purpose but xfce4 is generally held to be a somewhat 'heavier' wm), e16 and e17 have differing methods for pseudo-trans and composite-style translucency (the pseudo-trans tends to be more stable and efficient), afterstep can and does use the 'extra' alpha values in an 8-character hex extensively for reveals.

Composite drawing can be quite various in how efficient it is, mostly depending on how it's integrated into a window manager's operation schedule of priorities. The deal in jwm probably gives the most 'bang for the buck' in the current general overview (as far as true translucency effects simply achieved for most users).

User avatar
sjsrikanth
Posts: 114
Joined: Mon 28 Mar 2011, 06:24
Location: Chennai, India

Transparency

#10 Post by sjsrikanth »

@elpablo75 I would love an english tutorial of the same!!!

mill0001
Posts: 358
Joined: Thu 01 Feb 2007, 16:30
Location: "People's Republik of Kalifornia"

#11 Post by mill0001 »

Hi Guys, Just reading this and wondering if there is a way to get transparency using icewm?

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#12 Post by Argolance »

Hello,
I already mentioned (somewhere in this Forum but didn't get any answer...) some translucency/shadow problems encountered with latest releases of JWM.
First, I noticed that it is no use to specify
Section "Extensions"
Option "Composite" "1"
EndSection
inside the Xorg configuration file anymore :).
Then, as a picture is better than long speeches, please see the picture below...
Has somebody got this? This happens with both of my PCs (running Racy 5.3): When moving windows, these let white areas on the screen and shadows are becoming dark...
It is a pity because latest JWM releases have got anti aliasing icons feature and I cannot take advantage of it! :cry:

Cordialement.
Attachments
191527_1024x768_easyshot.jpg
(158.95 KiB) Downloaded 565 times

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#13 Post by 01micko »

Hello Argolance,

Joe Wing is aware of the transparency bug, I have had communication with him. I am running an older version in a dev version of Slacko, jwm-523. I think that's where the bug began. Transparency works well in that version but you don't get the bugfixes for menu refresh and some full screen bugs and change of resolution. Other than that it is reasonably stable.

HTH
Puppy Linux Blog - contact me for access

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#14 Post by Argolance »

Hello,
It is why I am usually using jwm version which comes with Puppy 4.31. As my old laptop don't need special effects, so I can use latest releases of JWM.

Code: Select all

JWM vsvn-574 by Joe Wingbermuehle
compiled options: fribidi icons png shape xft xinerama xpm xrender 
system configuration: /etc/system.jwmrc
To manage transparency/shadow effects,glance at this post about a simple script I made for... (2Pfx)

Cordialement.

User avatar
`f00
Posts: 807
Joined: Thu 06 Nov 2008, 19:13
Location: the Western Reserve

#15 Post by `f00 »

@Argolance - thanks for that, maybe once I get xorg settled in a bit better with racy on my old kit.. ;)

Did notice that jwm is a bit 'off' lately as far as x/kcompmgr translucency effects (and expected window behavior) go. Racy 5.3 has vsvn-574 as stock/oem.

Here's a largish caplink @683k with some notes (the grayish one on lower left pertains to the issue) - A few examples of remnants .. mercifully I kept the cap from going real messy as can happen fairly easily (especially with my autohide oversized pager, let alone menu-o-rama and junk-shades). Wish the cap could have been smaller, but translucency and text kind of dictated the size :|

Good to hear that Joe's on it (thanks for the heads up, 01micko!) :D

___addenda 120910___
Tried a few other jwm binaries with "xcompmgr -n" translucency option - only a few seem available in the general repos (wary 5 seemed the best bet for me)

Indeed, jwm vsvn-562 exhibits much the same symptoms with translucency via xcompmgr as vsvn-574 (although initially it only manifested as 'junk' shades, further use brought up the rest of the display remnants).

jwm vsvn-505 works much better with "xcompmgr -n" translucency option, still a noticeable flicker when navigating root (obvious) and window (barely) menus. No remnants on screen and that's the major glitch that plagues later versions as far as obvious-to-the-eye stuff.

Small point - the htop process list 'roll' is almost certainly a side effect of using the -fading option in terminals that offer such (mrxvt and urxvt81). Funny, it's almost an animation of the fade/unfade (easy to see with sloppy focus).

Post Reply