Conky with XFCE 4.20 disappears

Not sure what is going on the conky works fine under Cinammon and Openbox

here is the conky code

--[[

#=====================================================================================
# Date    : March 21 2023
# Author  : thefrog
# Version : 1.0.0
# License : Distributed under the terms of GNU GPL version 2 or later
#=====================================================================================
# CONKY
# For commands in conky.config section:
# http://conky.sourceforge.net/config_settings.html
#
# For commands in conky.text section:
# http://conky.sourceforge.net/variables.html
#
#======================================================================================

]]
conky.config = {
	alignment = 'middle_left',
	gap_y = 5,
	minimum_width = 50,
	minimum_height=50,
	background = true,
	
default_color = '02FF00',
	color2 = 'ff0000', -- red
	color1 = '02FF00', --green
	color3 = 'e8ab49', -- orange
	color4= 'b58bf0', -- purple
	color5="ffffff",  --  white
	color6 = 'b13916',  --  red-autumn
	color7 = 'f0efef',   -- offwhite
	
	
	update_interval = 1,
	double_buffer = true,
	font = 'Verdana=14',
	draw_shades = false,
	no_buffers = true,
	own_window = true,
	own_window_class = "Conky",
	own_window_type = 'desktop',
	own_window_transparent = false,
	own_window_argb_visual = true,
	own_window_argb_value = 150,
	use_xft = true,
	
-------------------------------------
--  Icon Sources
-------------------------------------
template0="~/.config/conky/images/weather-icons/64px-green",


-------------------------------------
--  API Key
--  To get API Key, first you have to sign up here https://openweathermap.org/appid
-------------------------------------
template6="e5d8c78d4d04129f7a9bd767d892b7b2",


-------------------------------------
--  City ID
--  Find your City ID here https://openweathermap.org/city
-------------------------------------
template7="5164466",


-------------------------------------
--  Temp Unit (default, metric, imperial)
-------------------------------------
template8="imperial",


-------------------------------------
--  Locale (e.g. "es_ES.UTF-8")
--  Leave empty for default
-------------------------------------
template9=""
	
}
conky.text = [[
$alignc${font Tahoma :size=40}${color4}\
${time %I}:${time %M}${font}${color4}
${hr}
#code taken from Jelly Conky from zagortenay333
${execi 300 l=${template9}; l=${l%%_*}; curl -s "api.openweathermap.org/data/2.5/forecast/daily?APPID=${template6}&id=${template7}&cnt=5&units=${template8}&lang=$l" -o ~/.cache/forecast.json}\
${execi 300 l=${template9}; l=${l%%_*}; curl -s "api.openweathermap.org/data/2.5/weather?APPID=${template6}&id=${template7}&cnt=5&units=${template8}&lang=$l" -o ~/.cache/weather.json}\
\
\
\
\
${font Tahoma :size=28}${color4}\
${voffset 5}\
$alignc${execi 300 jq ".main.temp" ~/.cache/weather.json | awk '{print int($1+0.5)}' # round num}°${font}
\
\
\
\
${voffset 5}\
$alignc${color7}${execi 300 jq -r ".weather[0].description" ~/.cache/weather.json}${font}${color4}
#end code
$hr

${image $HOME/.config/conky/images/myne/icons/os.png -p 65,190 -s 32x32}
$alignc${color4}${execi 6000 lsb_release -d | grep 'Descr'|awk {'print $2 " " $3" " $4" " $5'}}

${image $HOME/.config/conky/images/myne/icons/kernel.png -p 65,255 -s 32x40}
$alignc${color7}${kernel}

${image $HOME/.config/conky/images/myne/icons/update.png -p 65,330 -s 32x32} 
$alignc${execpi 12000 checkupdates | wc -l} - ${execpi 3600 paru -Qu | wc -l}${color4}
$hr

$alignc${color7}${cpu cpu0} % CPU
${color4}${cpubar cpu0}
$alignc${color7}${voffset 12}${mem} / ${memperc} % RAM
${color4}${membar}
$alignc${color7}${voffset 12}${fs_free /} / ${fs_free_perc /} % HDD
${color4}${fs_bar /}
$hr
${image $HOME/.config/conky/images/myne/icons/Battery.png -p 45,610 -s 64x64}
$alignc${voffset 25}${font Verdana :size=16}${color7}${battery_short BAT0}
]]

Should note this is a fresh install.
Lenovo Legion 5
Nvidia GTX 1650
Nvidia Driver Version 570.86.16
X11 session

Should note that it only seems to disappear when the desktop is clicked on and not the panel or a open window

1 Like

This is what it looks like before you click the desktop and it disappears.

I have many years to use conky but from my old configs, try to change this:

own_window_type = 'desktop'

to this:

own_window_type = 'override'

1 Like

that does it. but it kills the transparancy.

Try to change this:

own_window_transparent = false,

to true.

yeah didn’t work. I tried that first lol
I do have picom so that not the issue either (or maybe it is lol)
either way with or without picom it has no transparency :thinking:

Try with this settings, from here:

own_window_type = ‘normal’,
own_window_transparent = false,

  • Window type of normal is required because XFCE uses a xfdesktop desktop window to show the background, so using the same type might cause conky to get layered behind it.
1 Like

well unfortunately none of that actually works right.
Adding normal puts a title bar around it I put in hints

did get a bit more information about the window it appears that its treating the conky as a sub window instead of its own even though I have own_window = 'true'
changing the own window to false brings very unwanted behavior lol (black desktop as it covers the whole desktop)
so I have ended up trading one set of issues for another. :confused:

1 Like

Ok got it fixed. I changed the own_window_type
own_window_type = 'dock' and now it works.

Well it introduced a new problem now it always on top :rofl:

Good thing bad luck exist or I’d have none at all.

ok reboot it works now hmm must have been the hints not take affect at first :thinking:

Didn’t you find it here?
https://wiki.archlinux.org/title/Conky

1 Like

no I originally followed @fog link.

I just thought maybe changing it to dock would be better (seemed like I had to do this for KDE way back when i installed it for that brief moment.) and when the conky reloaded it was as should be except being over everything I decided to reboot and now it seems its working.

own_window_hints = ‘below’ is what I found to work just not until the reboot. (could been because I had been messing with it so much and changing so much in a short time)

conky now has this code

own_window_class = Conky,
own_window_type = ‘dock’,
own_window_hints = ‘below’
own_window_transparent = false,
own_window_argb_visual = true,
own_window_argb_value = 100,
1 Like

This is the end result

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.