You are not logged in.

#1 2014-01-16 21:06:12

lenieco
Member
Registered: 2012-04-27
Posts: 33

awesome transparency with unagi [solved]

Hi, could you help me?. I have installed awesome and I want that console be transparent using unagi from AUR, but it doesn't work... It is already running but the windows don't get transparent. Any suggestions?

I'm using xterm.

I'll like to have a desktop like this:

http://awesome.naquadah.org/w/images/Ge … esktop.png

Thanks.



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by lenieco (2014-01-22 12:58:11)

Offline

#2 2014-01-16 21:18:11

cccplex
Member
Registered: 2014-01-15
Posts: 7

Re: awesome transparency with unagi [solved]

I read that the reccomended way to do it is add the opacity rule to the rc.lua configuration of awesome. I'm trying this out myself now with compton and is working for the terminal.

edit: now my clipboard is working in vim smile

So I added this to the awful.rules.rules list.
    { rule = { class = "UXTerm" },
      properties = {opacity = 0.8} },

Last edited by cccplex (2014-01-16 21:33:18)

Offline

#3 2014-01-16 21:51:02

lenieco
Member
Registered: 2012-04-27
Posts: 33

Re: awesome transparency with unagi [solved]

Hi, thanks for your reply.

I installed compton from AUR and added the rule to my rc.lua but it still doesn't work.

Restarted awesome and started compton from a terminal, the screen blinks but it doesn't turn transparent and I get this error:

[xx@machete ~]$ compton
[     3.46 ] error 3 (BadWindow) request 2 minor 0 serial 419 ("BadWindow (invalid Window parameter)")

Offline

#4 2014-01-17 10:01:12

cccplex
Member
Registered: 2014-01-15
Posts: 7

Re: awesome transparency with unagi [solved]

Did you open a UXTerm? For other applications you have to set a specific rule.
There is a configuration file where you can tweak things.

compton manpage wrote:

compton could read from a configuration file if libconfig
       support is compiled in. If --config is not used, compton will
       seek for a configuration file in $XDG_CONFIG_HOME/compton.conf
       (~/.config/compton.conf, usually), then ~/.compton.conf, then
       compton.conf under $XDG_DATA_DIRS (often
       /etc/xdg/compton.conf).

I have set the backend to GLX (depends on your driver) and comented out the opacity lines.

Offline

#5 2014-01-17 11:23:58

ayekat
Member
Registered: 2011-01-17
Posts: 1,599

Re: awesome transparency with unagi [solved]

lenieco wrote:

I'm using xterm.

You should be aware that xterm does not support background transparency, so if you want to add some kind of transparency to xterm, this would make the text transparent, too.

This is probably fine for unfocused windows, but for focused windows this might perhaps get a little annoying :-)

If you want to use a non-VTE terminal that support Unicode, it seems urxvt (rxvt-unicode) is where it is these days (and it also supports background transparency, as I have seen on other people's screens).


pkgshackscfgblag

Offline

#6 2014-01-17 23:57:11

lenieco
Member
Registered: 2012-04-27
Posts: 33

Re: awesome transparency with unagi [solved]

cccplex wrote:

Did you open a UXTerm? For other applications you have to set a specific rule.

Yes, I did it, and didn't work.

In fact it is rules problem. I tried adding the opacity line in the all classes section and transparency works!, with unagi and with compton, but I still don't know why it doesn't work with the specific xterm rule. This is the Rules section of my rc.lua

-- {{{ Rules
awful.rules.rules = {
    -- All clients will match this rule.
    { rule = { },
      properties = { border_width = beautiful.border_width,
                     border_color = beautiful.border_normal,
                     focus = awful.client.focus.filter,
                     keys = clientkeys,
                     buttons = clientbuttons,
                     opacity = 0.8 } },
    { rule = { class = "MPlayer" },
      properties = { floating = true } },
    { rule = { class = "pinentry" },
      properties = { floating = true } },
    { rule = { class = "gimp" },
      properties = { floating = true } },
    -- Set Firefox to always map on tags number 2 of screen 1.
    -- { rule = { class = "Firefox" },
    --   properties = { tag = tags[1][2] } },
    -- compton transparencia
{ rule = { class = "xterm" },
      properties = {opacity = 0.8} },
}
-- }}}

I tried class = "UXTerm" and with class = "urxvt" using urxvt off course, but any of them work.

ayekat wrote:

You should be aware that xterm does not support background transparency, so if you want to add some kind of transparency to xterm, this would make the text transparent, too.

This is probably fine for unfocused windows, but for focused windows this might perhaps get a little annoying :-)

I'm using transparency on xterm and until now is fine for me, thanks for your recommendations..

Offline

#7 2014-01-18 07:59:25

cccplex
Member
Registered: 2014-01-15
Posts: 7

Re: awesome transparency with unagi [solved]

Try with "XTerm" instead. Capitals matter apparently.

Offline

#8 2014-01-22 12:57:50

lenieco
Member
Registered: 2012-04-27
Posts: 33

Re: awesome transparency with unagi [solved]

Thanks!, I did it and is working smile

Offline

Board footer

Powered by FluxBB