You are not logged in.

#1 2014-04-08 14:28:36

Chetyre
Member
Registered: 2013-03-27
Posts: 34

[SOLVED]Compton, Conky and RXVT-Unicode not playing nicely

Hello. I'm having some problems making my desktop how I want it. My window manager is fluxbox.

First problem is just a minor inconvenience, but annoying. When I login, a transparent terminal spawns to my specification, but it is skewed.

http://i.imgur.com/hrEEh3H.jpg


However, as soon as I open any window it fixes itself

http://i.imgur.com/WXQZ9e3.jpg

Second problem is that I can't figure out how to remove the shadow under conky. I know that it is coming from the slit, but it just won't go away. I can get it to go away if I set conky to desktop instead of panel, but then when I launch any window it overlaps with the conky bar, and that is unaceptable. Maybe there is a fluxbox configuration option that reserves some space so nothing can overlap it? But I couldn't find anything.

Here are the config files I think are relevant:

.Xdefaults:

urxvt*.transparent:true
urxvt*scrollBar:false
urxvt*borderLess:true
urxvt*foreground:blue
urxvt*.highlightColor: yellow
urxvt*.colorUL: #4682B4
urxvt*.cursorBlink: 1
urxvt*font: xft:Terminus:pixelsize=12
urxvt*.perl-ext-common: default,matcher,tabbedex,readline,clipboard
urxvt*.url-launcher: /usr/bin/firefox
urxvt*.matcher.button: 1
URxvt.tabbed.autohide:true

.conkyrc:

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_class conky
own_window_type panel
own_window_hints undecorate,above,sticky,skip_taskbar,skip_pager 

#borders
draw_borders no

#shades
draw_shades no

#position
gap_x 6
gap_y 6
alignment top_left

#behaviour
update_interval 1

#colour
default_color  8f8f8f
wn_window_colour 262626

#font
use_xft yes
xftfont terminus:pixelsize=10

#to prevent window from moving
use_spacer left
minimum_size 1600 0
short_units yes
pad_percents 2
#mpd
#mpd_host localhost
#mpd_port 6600
imap localhost xxx@xxxxxxx.xxx xxxxxxx -i 120
#color = e0e0e0
TEXT
${voffset -1} Cpu: ${color 000000}${font}${cpu}% ${color} Mem: ${color 000000}${font}${mem} ${color} | ${color} Uptime: ${color 000000}${font}${uptime_short}${color}  | ${color} Download Speed: ${color 000000}${font}${downspeed wlp0s26u1u4}/s ${color}Total Downloaded: ${color 000000}${totaldown wlp0s26u1u4} ${color} | ${color} Upload Speed: ${color 000000}${upspeed wlp0s26u1u4}/s ${color} Total Uploaded: ${color 000000}${totalup wlp0s26u1u4} ${color}  |  ${color}Root: ${color 000000}${font}${fs_free /} ${color} Home: ${color 000000}${font}${fs_free /home} ${color} | ${color} Arch-pkg: ${color 000000}${font}${execi 300 perl /home/lucas/.scripts/conky-updates.pl}${color}  |  Email: ${color 000000}${imap_unseen} new messages ${color} | ${color} Weather: ${color 000000} ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SBBR temperature}°C ${color}

.compton

shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-exclude = [ "name = 'Notification'", "class_g = 'URxvt'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'" ];
shadow-ignore-shaped = false;

# Opacity
menu-opacity = 0.8;
inactive-opacity = 0.8;
frame-opacity = 0.7;
inactive-opacity-override = false;
alpha-step = 0.06;
blur-kern = "3x3box"
blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];
opacity-rule = [ ]

# Fading
fading = true;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-exclude = [ ];

# Other
backend = "glx"
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = "opengl-swc";
dbe = false;
paint-on-overlay = true;
focus-exclude = [ "class_g = 'Cairo-clock'" ];
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];

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

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

Last edited by Chetyre (2014-04-10 16:51:23)

Offline

#2 2014-04-08 21:43:40

kolos
Member
Registered: 2010-05-15
Posts: 57

Re: [SOLVED]Compton, Conky and RXVT-Unicode not playing nicely

Maybe it something similar to a problem that I had with openbox & urxvt, solved with
(sleep 2s && urxvt) &
in the autostart


och noes!

Offline

#3 2014-04-08 23:10:42

Chetyre
Member
Registered: 2013-03-27
Posts: 34

Re: [SOLVED]Compton, Conky and RXVT-Unicode not playing nicely

Neat, I didn't know we could group commands in parenthesis.

Unfortunately that didn't work...

Offline

#4 2014-04-08 23:21:30

progandy
Member
Registered: 2012-05-17
Posts: 5,307

Re: [SOLVED]Compton, Conky and RXVT-Unicode not playing nicely

You set "own_window_class conky", so maybe use the lowercase "conky" in compton, too.

Since you are running compton, you might want to use true transparency instead of fake transparency for urxvt:
https://wiki.archlinux.org/index.php/Rx … ansparency
Otherwise you might want to use xdotool to wait for conky to load and only then run urxvt:

xdotool search --sync --onlyvisible --class "conky" exec urxvt &

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2014-04-08 23:41:52

Chetyre
Member
Registered: 2013-03-27
Posts: 34

Re: [SOLVED]Compton, Conky and RXVT-Unicode not playing nicely

using lowercase conky in compton doesn't change anything. I'm pretty sure that shadow is not from conky, but from the slit. When I set the slit to autohide in the init file, the shadow hides as well. And there is no shadow in any other conky window type I've tried, except type panel. Unfortunately, it is the only one so far with the behavior I want.

I would like to use true transparency in urxvrt, since that does solve the skew issue and I think it looks better. However, in doing so the terminal is quite useless since there is a lot of text that I can't see, because the font becomes the same color as certain backgrounds. Unless there is a way to separate it? I want it to look like the one on the left (left = fake transparency, right = true transparency).

http://i.imgur.com/lUwk4F4.jpg

Last edited by Chetyre (2014-04-09 02:50:27)

Offline

#6 2014-04-09 02:45:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Compton, Conky and RXVT-Unicode not playing nicely

Please use thumbnails rather than big screenshots: https://wiki.archlinux.org/index.php/Fo … s_and_Code

Offline

#7 2014-04-09 02:51:23

Chetyre
Member
Registered: 2013-03-27
Posts: 34

Re: [SOLVED]Compton, Conky and RXVT-Unicode not playing nicely

I'm sorry. I've removed the img tags, is that enough?

Offline

#8 2014-04-09 03:15:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Compton, Conky and RXVT-Unicode not playing nicely

Chetyre wrote:

I'm sorry. I've removed the img tags, is that enough?

Yup, links or thumbnails are fine.

Offline

#9 2014-04-10 01:41:40

Chetyre
Member
Registered: 2013-03-27
Posts: 34

Re: [SOLVED]Compton, Conky and RXVT-Unicode not playing nicely

I figured out the true transparency thing. That only happens when using xft fonts. I don't know why, however. Anyway, that is the small problem out. Now I just need to remove the shadow from under conky.

Offline

#10 2014-04-10 03:45:46

progandy
Member
Registered: 2012-05-17
Posts: 5,307

Re: [SOLVED]Compton, Conky and RXVT-Unicode not playing nicely

Does the slit have a classname?


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#11 2014-04-10 03:53:13

Chetyre
Member
Registered: 2013-03-27
Posts: 34

Re: [SOLVED]Compton, Conky and RXVT-Unicode not playing nicely

That's what I'm currently researching. It doesn't have a class name, just a window type. I found a patch proposal to add classnames to fluxbox windows (http://comments.gmane.org/gmane.comp.wi … .devel/300), but I couldn't find it. I don't think it was submited.

EDIT: I must be blind (well I was in bed already when I found the post...) the patch was RIGHT THERE. I'm going to try and apply it when i can, but I'm horrible at this kind of stuff.

EDIT2: I'm marking the thread as solved. I've applied the patches, and now the slit has the "WM_CLASS(STRING) = "fluxboxslit", "FluxboxSlit"" property. Compton was easily able to exclude that shadow. Thank you all for your help and patience.

Last edited by Chetyre (2014-04-10 16:50:52)

Offline

Board footer

Powered by FluxBB