Ubuntu – strange conky background behavior

conky

I have created a custom conky showing weather forecasts in 3 cities like this:
conky window type override1

But recently I've begun to see a strange behavior. After a few seconds, a white background a bit larger appears underneath like this:
conky window type override2

I've attempted to overcome this by trying a number of changes in the configuration file .conkyrc and the only effective one was changing own_window_type value from override to normal. But then I not only have this conky disappear when I choose to minimize all windows, but it also displays a transparent background of the same size like this:

conky window type normal

My conky window settings are like this:

update_interval 1
total_run_times 0
cpu_avg_samples 1
net_avg_samples 1
no_buffers yes
double_buffer yes
imlib_cache_size 0

background yes
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
minimum_size 300 480
maximum_width 300
alignment top_right
gap_x 2
gap_y 28

draw_borders no
draw_graph_borders no
stippled_borders 0
border_inner_margin 0
border_outer_margin 0
border_width 0

text_buffer_size 1024
override_utf8_locale yes
use_xft yes
xftfont Ubuntu:size=10
xftalpha 1.0
uppercase no
temperature_unit celsius
draw_shades no
draw_outline no
default_color C0C0C0
default_shade_color 000000
default_outline_color C0C0C0
color1 C0C0C0
color2 B2B2B2
color3 808080
color4 D4D4D4

TEXT
${image ~/.conky/base.png -p 0,0 -s 300x480}

Can somebody tell what might be causing (and how can I overcome) this unwanted canvas underneath my conky window?

Best Answer

A):

Your .conkyrc states own_window yes. This means that conky has it's own window. By stating own_window_type normal the window is being told to act "normally". Thus the conky-window will as well as any other window minimize when the "Show desktop" option is used.

B):

What would keep conky in its place is changing own_window_type normal to own_window_type dock. The drawback of this method is having to place conky on the right spot on your desktop again using gap x and gap y. Gap x is now counted from the left side of the desktop edge instead of the right side. Gap y is still counted from above. So suppose your screen resolution is 1440x900 and gap x used to be 2 and conky maximum with is 300, the new gap x would be 1440-300-2=1138

C):

In addition, to entirely lose any visible dock borders change the line own_window_transparent yes with the lines: own_window_argb_visual yes and own_window_argb_value 0. If own_window_argb_value is set to 255 the conky window will have no transparency and be black.

For further configuration settings:

http://conky.sourceforge.net/config_settings.html

Related Question