You are not logged in.

#1 2016-05-29 09:20:15

MriX
Member
Registered: 2016-05-29
Posts: 4

[SOLVED] Conky Black Background

Hello,

since I have upgraded conky, my old configuration isnt working.
I always get a black background, but I want a transparent background.

My conky config file:

conky.config = {
	use_xft = true,
	font = '123:size=8',
	xftalpha = 0.1,
	update_interval = 1,

	own_window = true,
	own_window_type = 'desktop',
	own_window_transparent = true,
	own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
	double_buffer = true,

	alignment = 'top_left',
	gap_x = 40,
	gap_y = 40,
	minimum_width = 250,
	minimum_height = 200,
	maximum_width = 750,

	draw_shades = false,
	draw_outline = false,
	draw_borders = false,

	no_buffers = true,
	cpu_avg_samples = 2,
	net_avg_samples = 1,
	override_utf8_locale = true,

	color0 = 'EAEAEA',
	color1 = '1793D1',
};

conky.text = [[
${color0}${font GE Inspira:pixelsize=120}${time %H:%M}${font}${voffset -87}${offset 10}${color1}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color0}${font GE Inspira:pixelsize=22}${time  %B} ${time %Y}${font}${voffset 28}${font GE Inspira:pixelsize=58}${offset -184}${time %A}${font}
${voffset 6}${offset 12}${font Ubuntu:pixelsize=10}${color1}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color1}RAM ${offset 9}$color$mem / $memmax${offset 30}${color1}WLAN${offset 9}$color${addr wlp12s0}${offset 30}${color1}CPU ${offset 9}$color${cpu cpu0}%
]];

Thanks for help!

Last edited by MriX (2016-06-02 18:39:25)

Offline

#2 2016-05-29 20:53:45

astiak
Member
From: London, UK
Registered: 2010-12-14
Posts: 16

Re: [SOLVED] Conky Black Background

I tried your config on my system (xfce as DE), and transparency worked fine. It may be related to your DE.

You could try adding the following in your config:

own_window_transparent = false,
own_window_argb_visual = true,
own_window_argb_value = 0,

Offline

#3 2016-05-30 05:12:13

MriX
Member
Registered: 2016-05-29
Posts: 4

Re: [SOLVED] Conky Black Background

I used the config you suggested before the conky update (Version 1.10.1-2) and it worked well. But since I have upgraded to Version 1.10.2-2, conky haven't started. So other Forums said that in this Version argb_visual and value wont work. So I removed it from my config and it started again!
The bad news: No transparent background

My DE is Gnome.

Offline

#4 2016-05-30 22:11:10

astiak
Member
From: London, UK
Registered: 2010-12-14
Posts: 16

Re: [SOLVED] Conky Black Background

Well, I thought I might be behind and checked my mirror lists just to be certain, but the latest version of conky for me is conky 1.10.2-1. I've just installed gnome and tried your conky script. I confirm that

own_window_transparent = true

does not work, however

own_window_argb_visual = true,
own_window_argb_value = 0,

did work in enabling transparency, and it runs OK.

Offline

#5 2016-05-31 15:42:17

MriX
Member
Registered: 2016-05-29
Posts: 4

Re: [SOLVED] Conky Black Background

Thank you for your help! Sorry I meant Version 1.10.2-1.

Now I found my mistake. In the past I compile conky from github and I havent removed this version, I have only installed Version 1.10.1-2.
When I updated conky (to Version 1.10.2-1) through the official Arch Repos, conky used some new and old config files. Then I manually remove the old compiled version and reinstalled conky. Now it works fine big_smile

Offline

Board footer

Powered by FluxBB