Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 13158  / 2 Years ago, sat, may 28, 2022, 10:07:23

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?


More From » conky

 Answers
3

I've found a solution to the unwanted shadow here: http://linuxexchange.org/questions/821/how-to-avoid-ugly-compizgnome-shadow-for-conky




  1. Start the CompizConfig Settings Manager

  2. Select Effects > Window Decoration

  3. Go into Shadow windows box and after the value any add & !(class=Conky) to apply this rule to all windows except Conky



This is in deed a workaround rather than a solution, because why Conky draws a larger window than needed still remains a mystery to me ;-)




  • Note: Probably this also requires adding this line to the conky
    config file: own_window_class Conky


  • Note: A workaround for the black background appearing for some minutes under Ubuntu 13.04: add a command to change desktop wallpaper back and forth after the conky command, e.g. sleep 5 && conky -c /home/user/.conkyrc && sleep 2 && gsettings set org.gnome.desktop.background picture-uri file:///home/user/Pictures/bckgrnd.jpg && gsettings set org.gnome.desktop.background picture-uri file:///home/user/Pictures/background.jpg



[#32565] Saturday, May 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ightrushi

Total Points: 129
Total Questions: 125
Total Answers: 127

Location: French Southern and Antarctic Lands
Member since Fri, Jan 6, 2023
1 Year ago
;