You are not logged in.

#1 2013-08-11 18:59:55

Axelman0
Member
Registered: 2010-12-02
Posts: 9

[Solved] Excluding programs from having transparency

I must be doing something wrong, since this problem is so annoying I should have found many posts in my fervent google searches, but I found nothing.

That said, I use compton compositing manager. I love the fading and transparency effects, but when I am reading with CoolReader or Firefox I'd like to not see my desktop wallpaper bleeding through. I tried using the opacity-rule[] section in compton.conf but could find no documentation or examples on its usage. So I found the --opacity-rule option and changed the line in my .xinitrc to

compton --opacity-rule "99:class_g = 'Firefox'" --opacity-rule "99:class_g = 'Cr3'" &

Whatever. Close enough. However when I fullscreen flash videos, they are still transparent! Unacceptable! I've even tried transset-df, but this only switches between 'transparent' and 'slightly less transparent'. Is there a way to fix this short of constantly stopping and restarting compton while I use my computer? And why am I the only one that seems to be having this problem?

Thanks in advance!

Edit: Oh, and I use...
Awesome WM/Openbox

Edit: Sadly, I have switched back to my old xcompmgr -cCfFnm .95 using xcompmgr-dana. I don't have active/inactive window transparency anymore but at least I still have nice looking fade effects and non-obnoxious transparency. If anyone knows of any alternatives, I have tried unagi (couldn't get it to work at all, but may try again if someone reccomends it), cairo-compmgr (terrible verticle tearing), and stock xcompmgr (a la archbang's default settings). I see dcompmgr and it looks similar to xcompmgr-dana, I will look into it.

I don't want to use a compositing window manager such as compiz because I play 3d games. While disabling a standalone compositing manager to play them is fairly simple (and translates between WMs), I am frightened by the prospect of trying to disable a WM's built in compositing every time I want to play a game.

Edit: Here is my compton.conf

# Shadow
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true; # zero the part of the shadow's mask behind the window
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 0.7;
# shadow-red = 0.0;
# shadow-green = 0.0;
# shadow-blue = 0.0;
shadow-exclude = [ "name = 'Notification'", "name *= 'VLC'", "name *= 'compton'", "name *= 'Firefox'", "class_g ?= 'Cairo-dock'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'" ];
# shadow-exclude = "n:e:Notification";
shadow-ignore-shaped = false;
# shadow-exclude-reg = "x10+0+0"

# Opacity
menu-opacity = 0.9;
inactive-opacity = 0.80;
active-opacity = 0.92;
frame-opacity = 0.7;
inactive-opacity-override = false;
alpha-step = 0.06;
# inactive-dim = 0.2;
# inactive-dim-fixed = true;
# blur-background = true;
# blur-background-frame = true;
blur-kern = "3x3box"
# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
# blur-background-fixed = true;
blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];
#opacity-rule = [ 'class_g = "Firefox":1.00' ]

# Fading
fading = true;
# fade-delta = 30;
fade-in-step = 0.03;
fade-out-step = 0.03;
# no-fading-openclose = true;
fade-exclude = [ ];

# Other
# backend = "xrender"
backend = "glx"
mark-wmwin-focused = true;
mark-ovredir-focused = true;
use-ewmh-active-win = false;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = "none";
dbe = false;
paint-on-overlay = true;
# sw-opti = true;
unredir-if-possible = true;
focus-exclude = [ "class_g = 'Cairo-clock'" ];
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];
# resize-damage = 1;

# GLX backend
glx-no-stencil = true;
glx-copy-from-front = false;
# glx-use-copysubbuffermesa = true;
# glx-no-rebind-pixmap = true;
glx-swap-method = "undefined";
# glx-use-gpushader4 = true;

# Window type settings
wintypes:
{
  tooltip = { fade = true; shadow = false; opacity = 0.75; focus = true; };
};

Well, I feel like a fool. All I had to do was set active-opacity to 1.00. My urxvt windows still show transparency since I have them set with a 32 bit background color. Now I suppose if I really want other windows to be transparent I can make a separate rule to activate that function. I still have a slight transparency on non-maximized youtube windows, but it's close enough for now.

Last edited by Axelman0 (2013-08-13 05:43:34)

Offline

#2 2013-08-12 01:58:59

Axelman0
Member
Registered: 2010-12-02
Posts: 9

Re: [Solved] Excluding programs from having transparency

I don't see an option anywhere to mark as solved, so please do so admins when you see this.

Offline

#3 2013-08-12 02:03:10

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [Solved] Excluding programs from having transparency

Axelman0 wrote:

I don't see an option anywhere to mark as solved, so please do so admins when you see this.

All you do is edit your OP and add [Solved] to the beginning of your thread title. Glad you got things worked out.

All the best,

-HG

Offline

Board footer

Powered by FluxBB