You are not logged in.

#1 2010-04-04 23:26:25

schen
Member
Registered: 2009-06-06
Posts: 468

Dwm transparency patch and chromium[Solved]

Unfortunately, I have ran into a new problem. Chromium always disappears when it is focused. I use DWM with transparency patch.
http://omploader.org/vNDF2dg

Last edited by schen (2010-04-04 23:55:19)

Offline

#2 2010-04-04 23:36:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Dwm transparency patch and chromium[Solved]

What rule have you applied for Chromium in your config.h?

Transparency diff patch wrote:

static const Rule rules[] = {
-    /* class      instance    title       tags mask     isfloating   monitor */
-    { "Gimp",     NULL,       NULL,       0,              True,        -1 },
-    { "Firefox",  NULL,       NULL,       1 << 8,       False,       -1 },
+    /* class      instance    title       tags mask     isfloating   monitor   opacity */
+    { "Gimp",     NULL,       NULL,       0,            True,             -1,       -1 },
+    { "Firefox",   NULL,       NULL,       1 << 8,    False,            -1,       -1 },
+    { "URxvt",    NULL,       NULL,       0,            False,            -1,       0.95  },
};

Also, the wiki does warn that the patch is buggy...
http://dwm.suckless.org/patches/transparency


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2010-04-04 23:45:06

schen
Member
Registered: 2009-06-06
Posts: 468

Re: Dwm transparency patch and chromium[Solved]

Yes, I am aware that it is buggy. big_smile

Here is the configuration for Chromium

 /* class      instance    title       tags mask     isfloating    monitor */
        { "Chromium", NULL,       NULL,       1 << 8,        False,        -1 },

Offline

#4 2010-04-04 23:51:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Dwm transparency patch and chromium[Solved]

I don't use the patch, but I would try adding an opacity field as per the diff and assigning Chromium a value (perhaps start with -1 and tweak from there) and see how that goes...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2010-04-04 23:55:01

schen
Member
Registered: 2009-06-06
Posts: 468

Re: Dwm transparency patch and chromium[Solved]

Perfection! You are really an expert in DWM!

Offline

#6 2010-04-05 00:06:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Dwm transparency patch and chromium[Solved]

Not at all - the people who write suckless code are just very good about documenting how to use it. Mark this solved?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB