Help using conky

I checked in a virtualbox and in Mabox the original conky works, its
sysinfo_grey.conkyrc. I will try to see the parts you suggested.

conky.config = {

	own_window = true,
	own_window_type = 'desktop',
-- own_window_argb_visual yes
-- own_window_argb_value 125
	own_window_transparent = true,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	own_window_colour = '#000000',
	own_window_class = 'Conky',
	own_window_title = 'Mabox Quakeworld Monitor Conky',

	gap_x = 15,
	gap_y = 50,
	alignment = 'top_right',
	minimum_width = '200',
	minimum_width = 200,




	use_xft = true,
	font = 'Cantarell:size=9',
	xftalpha = 1,
	override_utf8_locale = true,
	draw_shades = false,--yes
	default_shade_color = '#000000',
	draw_outline = false,
	default_outline_color = '#000000',


	color2 = '#777777',
	color3 = '#006600',
	cpu_avg_samples = 2,
	default_color = '#FFFFFF',

	draw_borders = false,--yes

	stippled_borders = 5,
	border_inner_margin = 5,
	border_outer_margin = 0,
	border_width = 2,


	background = true,
	no_buffers = true,
	imlib_cache_size = 0,

	double_buffer = true,
	update_interval = 1,


};

conky.text = [[
${voffset 8}$color${font Cantarell:size=16}${time %A}$font${voffset -18}$alignr${color3}${font Cantarell:size=38}${time %e}$font
$color${voffset -20}$color${font Cantarell:size=18}${time %B}$font${voffset -1} $color${font Cantarell:size=20}${time %Y}$font
#${voffset 10}$alignr$color Kraków (PL) ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EPKK temperature temperature 15}°C
#
${voffset 10}${goto 40}${color}CPU$alignr$cpu%
$color2${goto 40}$alignr${cpubar 4,165}
${voffset 5}${goto 40}$font$color2${top name 1}$alignr$color${top cpu 1}%
${goto 40}$color2${top name 2}$alignr$color${top cpu 2}%
${goto 40}$color2${top name 3}$alignr$color${top cpu 3}%
${goto 40}$color2${top name 4}$alignr$color${top cpu 4}%
#
${voffset 10}${goto 40}${color}RAM$alignr$mem/$memmax
$color2${goto 40}$alignr${membar 4,165}
${goto 40}${voffset 5}$color2${top_mem name 1}$alignr$color${top_mem mem_res 1}
${goto 40}$color2${top_mem name 2}$alignr$color${top_mem mem_res 2}
${goto 40}$color2${top_mem name 3}$alignr$color${top_mem mem_res 3}
${goto 40}$color2${top_mem name 4}$alignr$color${top_mem mem_res 4}
#
${voffset 10}$alignr disk ${color2}${fs_used /} - ${fs_size /}
$alignr$color memory ${color2}$mem - $memmax
#${alignr}${color2}${font Cantarell:size=9}swap $swapmax - $swap
#
${voffset 10}$alignr${color} Mabox Linux ${execi 10000 awk -F'=' '/DISTRIB_RELEASE=/ {printf $2" "} /CODENAME/ {print $2}' /etc/lsb-release}
#
${voffset 10}$alignr${execi 1200 whoami}@${nodename}
${alignr}${color2}${font Cantarell:size=9}uptime ${color}${uptime_short}
${alignr}${color2}${font Cantarell:size=9}${alignr}kernel ${color}${kernel}
${alignr}${color2}${font Cantarell:size=9}${alignr}arch ${color}${machine}
${alignr}${color2}${font Cantarell:size=9}${alignr}filesystem ${color}${fs_type}
${voffset 10}${alignr}${color} available updates ${color3}${font Cantarell:bold:size=10}${execpi 1800 pamac checkupdates -aq| wc -l}${font}${color}
${alignr}${color} installed pkgs: ${color2}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color2}${execi 10000 pacman-mirrors -G}
]];

Well - there is nothing obviously causing that from the conky end - what are you running it on? I just fired up the conky here, and apart from no pamac being present, and the pacman-mirrors not being here either, everything worked. Does this come from Manjaro by any chance?

Anyway - try changing the transparent setting to false to see if that helps, and perhaps the own_window_type to normal. Also, you might enable the argb setting (removing the - - in front of those commands) as another possible fix. Beyond that it is tough to say. Which DE are you using (if you know).

Hi, I am using lxqt. I was previously using Manjaro and in a virtualbox Mabox. I am trying no to see if adding compton may help or brake everything. I will try to change those variables.
It has improved¡, at least the LSD on, it is better though not perfect. The grey info still doesn’t work.Screenshot from 2021-01-04 13-12-55

As I’m thinking of setting it up, why do you recommend this version?
Also, should I use conky-cairo-no-nvidia as I have an AMD card?

Well - I know it the best - and it is a VERY configurable version as well. You can specify any version from 1.13 (very stable) to the very latest (1.11.7 git), you can choose nvidia or not (me not - I’m all AMD) and do things like adding special support for Audacious (graphic bars etc) if you wish. Just don’t yay it in - git clone or download it from the AUR, and edit the PKGBUILD file for the options you want.

I know the guy maintaining it - he is the developer for conkywx - a toolkit for conky goodies including weather and widgets and gauges and calendars and… as you can spot on my screenshots - so I know his version will always be most usable :grin:

2 Likes

I decided to give it a go and picked a theme (lsd something). It’s running just fine, without issues.
But the image is white, so I put it in Gimp, changed its color and saved it with a different name. I loaded it into the conkyrc, but it keeps showing white.

Why is this happening? Shouldn’t it load the image as is?

conkyrc

conky.config = {
update_interval = 1,
total_run_times = 0,
net_avg_samples = 1,
cpu_avg_samples = 1,
imlib_cache_size = 0,
double_buffer = true,
no_buffers = true,
use_xft = true,
font = ‘Play:size=9’,
override_utf8_locale = true,
text_buffer_size = 2048,
own_window_class = ‘Conky’,
own_window = true,
own_window_type = ‘normal’,
own_window_transparent = true,
own_window_hints = ‘undecorated,sticky,skip_taskbar,skip_pager’,
alignment = ‘top_right’,
gap_x = 40,
gap_y = 50,
minimum_width = 330, minimum_height = 495,
default_bar_width = 30, default_bar_height = 8,
draw_shades = false,
default_color = ‘#383838’,
default_shade_color = ‘#000000’,
color0 = ‘#f0544c’,
color1 = ‘#ffffff’,
color2 = ‘#ffffff’,
lua_load = ‘/home/jimmy213/.conky/rings.lua’,
lua_draw_hook_pre = ‘ring_stats’,
own_window_argb_value = 0,
own_window_argb_visual = true,
own_window_colour = ‘#000000’,
};
conky.text = [[
${goto 20}${voffset -10}${color0}${font Play:style=bold:size=25}${exec whoami}
${goto 115}${voffset 5}${color}${font Play:style=Bold:size=10}GPU${voffset -0}${color}${goto 220}GPU
${goto 115}${font Play:style=Bold:size=10}${color0}${hwmon 0 temp 1}°C${goto 220}${font Play:style=Bold:size=9}-rpm
${goto 40}${voffset 60}${font Play:style=bold:size=40}${color}${time %H:%M}${font}${goto 50}${voffset 30}${font Play:style=bold:size=11}${color slate grey}${time %a}${color}, ${time %e %b %G}
${goto 220}${voffset -20}${font Play:style=Bold:size=10}RAM
${alignc -65}${font Play:style=Bold:size=10}${color0}${memperc}%${color}
${goto 60}${voffset 55}CPU${voffset -0}${color}${goto 170}CPU
${goto 60}${font Play:style=Bold:size=10}${color0}${cpu cpu0}%${goto 170}${font Play:style=Bold:size=10}${color0}${hwmon 1 temp 2}°C
${goto 115}${voffset 40}${font Play:style=Bold:size=10}${color}Freq
${goto 100}${font Play:style=Bold:size=9}${color0}${freq}MHz
${image /home/jimmy213/.conky/lsdg.png -p 10,0 -s 330x495}
]];

Image

PS: Sorry for hijacking this thread. If I should move it to another one, let me know.

You might want to try this way instead first:

own_window_argb_value = 255,
own_window_argb_visual = true,
own_window_colour = ‘#000000’,

that argb value is transparency - 0=no opacity (full transparency) and 255=full opacity (no transparency).

I would suggest bookmarking this page for future reference:
http://ifxgroup.net/conky.htm
It really does help.

1 Like

I’ve tried that, but nothing changed.

What happens if you pass this value to false in removing transparency?

own_window_transparent = false,

Where did you place your picture exactly ?

Nothing changes.
If I put own_window_type = 'override' (with the other variables unchanged), then I get the correct color (the correct image), but with a black background.

image

I’ve made a folder .conky and I put everything in there (.conkyrc, rings.lua, lsd.png, lsdg.png (the edited one)). I call the image with its full path like ${image /home/jimmy213/.conky/lsdg.png -p 10,0 -s 330x495}

I’m late to this discussion, but if the black image background is the remaining problem, I think I remember above that you mentioned changing the image’s background color with gimp from white to black. If that’s true, then conky is displaying the image correctly and you’ll need to use gimp to adjust the image’s background color again (or to render it transparent) to your liking.

If I’ve misunderstood the question, apologies.

B–

The image has a transparent background, I’m sure of that.

It seems as if something is stuck (?) in Conky. With own_window_type = 'normal' there is no background color, but the molecule (the png image) is shown white (like I’m loading the original pic) rather than the edited grey (that I specified it to load into the .conkyrc).

Just a thought … have you killed and restarted conky since you edited the image? I’m not sure whether conky will reload the base image dynamically, or whether it only loads once when initially started.

killall -KILL conky

Yes, I did that.
Generally, if you edit the .conkyrc and save the changes while it’s running, it reloads itself.

I even tried to load an unrelated image (my avatar that I also use here) and it doesn’t load correctly.
Ezio became Jesus.

image

I have zero basis for this, but I wonder if the lua engine is rendering incorrectly because the image size doesn’t match/fit the window size parameters? Have you tried adjusting (playing with) the image size specs in the line:

Again, a total longshot; otherwise, I’m stumped… sorry!

1 Like

I think I played with the image size, but I’ll recheck it just in case.
Thanks for trying to solve this.

Did I not see a ‘background_color’ value of #000000 ? That could be what it’s showing… (especially if the pic is transparent)

I changed my desktop image (for testing) and it seems that Conky adds opacity to the loaded image (the molecule).

image

The problem seems to be the way that Conky makes the window transparent. The images should show as is.

I found this.
ARGB Visual

So, right now it uses the “true transparency” options (second example). I want the “fake” one (first example). But if I set those options, I get a distorted background.

image

PS: I use KDE (kwin) if that matters.

Just out of curiosity, have you checked your compositor settings to be sure it’s enabled? I’m sure you have …