Page 1 of 1

conky theme not showing transparent background

Posted: Thu Dec 07, 2023 7:10 am
by dotw
The default conky themes show transparent background but the ones i downloaded do not. How do i make them transparent

Re: conky theme not showing transparent background

Posted: Thu Dec 07, 2023 7:20 am
by Charlie Brown
Can you try changing the own_window_argb_visual to true and adding own_window_argb_value = 0,

Code: Select all

own_window_argb_visual = true,
own_window_argb_value = 0,
(After saving, change the theme to something else, then select back this one to take effect)

Re: conky theme not showing transparent background

Posted: Thu Dec 07, 2023 7:35 am
by dotw
Charlie Brown wrote: Thu Dec 07, 2023 7:20 am Can you try changing the own_window_argb_visual to true and adding own_window_argb_value = 0,

Code: Select all

own_window_argb_visual = true,
own_window_argb_value = 0,
(After saving, change the theme to something else, then select back this one to take effect)
did not find argb value but after changing "argb_ visual" to true it became transparent. However, it does not look exactly like the original theme is supposed to be

Re: conky theme not showing transparent background

Posted: Thu Dec 07, 2023 7:42 am
by Jerry3904
The easiest way is to launch Conky Manager, highlight the conky and click the gear icon on the menu bar. It has a "Transparency" tab that will let you easily change values to see if an alternative does it. (Start with the original download, not the one you have altered.)

Re: conky theme not showing transparent background

Posted: Thu Dec 07, 2023 8:26 am
by Charlie Brown
Charlie Brown wrote: Thu Dec 07, 2023 7:20 am... and adding own_window_argb_value = 0, ...
dotw wrote: Thu Dec 07, 2023 7:35 am... did not find argb value ... does not look exactly like the original theme is supposed to be

Re: conky theme not showing transparent background

Posted: Thu Dec 07, 2023 8:44 am
by ceeslans
Please share the configuration file for this conky, so we won't have to guess for possible solutions

Re: conky theme not showing transparent background

Posted: Thu Dec 07, 2023 8:58 am
by dotw
ceeslans wrote: Thu Dec 07, 2023 8:44 am Please share the configuration file for this conky, so we won't have to guess for possible solutions
https://www.pling.com/p/1980599/

Re: conky theme not showing transparent background

Posted: Thu Dec 07, 2023 9:00 am
by dotw
Charlie Brown wrote: Thu Dec 07, 2023 8:26 am
Charlie Brown wrote: Thu Dec 07, 2023 7:20 am... and adding own_window_argb_value = 0, ...
dotw wrote: Thu Dec 07, 2023 7:35 am... did not find argb value ... does not look exactly like the original theme is supposed to be
sorry for overlooking that you said "adding". I added the line but still it is not exactly like the original one

Re: conky theme not showing transparent background

Posted: Thu Dec 07, 2023 9:19 am
by Charlie Brown
... and again you changed to another theme then turned back to this one ?

Re: conky theme not showing transparent background

Posted: Thu Dec 07, 2023 9:40 am
by dotw
Charlie Brown wrote: Thu Dec 07, 2023 9:19 am ... and again you changed to another theme then turned back to this one ?
no

Re: conky theme not showing transparent background

Posted: Thu Dec 07, 2023 9:45 am
by Charlie Brown
Just do as Jerry told: Click the Gear icon and select "Transparent" (it's set to: Pseudo-Transparent)

It's so fine here and thank you for the theme btw :)

Re: conky theme not showing transparent background

Posted: Thu Dec 07, 2023 10:07 am
by Charlie Brown
... And/or just uncheck the "Show shadows under dock windows" in "Window Manager Tweaks" - Compositor tab.

Re: conky theme not showing transparent background

Posted: Thu Dec 07, 2023 11:02 am
by asqwerth
if you have these added:

Code: Select all

own_window_argb_visual = true,
own_window_argb_value = 0,
then change
own_window_transparent = true,

to

Code: Select all

own_window_transparent = false,

Re: conky theme not showing transparent background

Posted: Sat Dec 09, 2023 9:53 pm
by dotw
asqwerth wrote: Thu Dec 07, 2023 11:02 am if you have these added:

Code: Select all

own_window_argb_visual = true,
own_window_argb_value = 0,
then change
own_window_transparent = true,

to

Code: Select all

own_window_transparent = false,
still nothing. maybe the widget works properly in kde only?

Re: conky theme not showing transparent background

Posted: Sat Dec 09, 2023 11:29 pm
by asqwerth
As previously advised, post the whole conky config file in this thread so we know what it is.

Re: conky theme not showing transparent background

Posted: Sun Dec 10, 2023 10:55 am
by Charlie Brown
dotw wrote: Sat Dec 09, 2023 9:53 pm... maybe the widget works properly in kde only?..
Nope, cause mine is Xfce, it took just 2 clicks.

Use the original one, and select it in "Conky Manager" ...

Re: conky theme not showing transparent background

Posted: Sun Dec 10, 2023 11:52 am
by asqwerth
As I understand it, you have sorted out the transparency issue but are wondering why the conky doesn't look exactly like the pic in the pling page.

That is because as downloaded, the conky comes with some scripts. 2 questions for you:
1. did you save the lua script in the same place as set out in the conky config file?
2. If you want to sort out your location's current temperature, I note that there are some instructions on the pling page from the creator for you to follow relating to the weather script. Also, the weather script doesn't magically know your location so you have to insert your own location code.

Re: conky theme not showing transparent background

Posted: Tue Dec 12, 2023 12:59 am
by dotw
asqwerth wrote: Sun Dec 10, 2023 11:52 am As I understand it, you have sorted out the transparency issue but are wondering why the conky doesn't look exactly like the pic in the pling page.

That is because as downloaded, the conky comes with some scripts. 2 questions for you:
1. did you save the lua script in the same place as set out in the conky config file?
i did not do anything, it was already at this place

Re: conky theme not showing transparent background

Posted: Tue Dec 12, 2023 1:02 am
by dotw
asqwerth wrote: Sun Dec 10, 2023 11:52 am
2. If you want to sort out your location's current temperature, I note that there are some instructions on the pling page from the creator for you to follow relating to the weather script. Also, the weather script doesn't magically know your location so you have to insert your own location code.
i followed the author's instructions and got the weather id and api key from "openweather" but it is going to take a few hours to show in the conky after its first generation. the only problem now is that the cpu, ram and location does not have that background like in the original; it only shows the text.

Re: conky theme not showing transparent background

Posted: Tue Dec 12, 2023 1:28 am
by asqwerth
dotw wrote: Tue Dec 12, 2023 12:59 am
asqwerth wrote: Sun Dec 10, 2023 11:52 am As I understand it, you have sorted out the transparency issue but are wondering why the conky doesn't look exactly like the pic in the pling page.

That is because as downloaded, the conky comes with some scripts. 2 questions for you:
1. did you save the lua script in the same place as set out in the conky config file?
i did not do anything, it was already at this place
Open the conky config file itself and search for "lua". There is a line in the conky config where it mentions a file path for where the lua file must be saved.

Copy the lua file in "this place" (wherever you put extracted the conky zip file) and paste the lua file into the same spot mentioned in the conky config file. This lua script generates the circular bargraph.

Alternatively, edit the lua file location in that line of the conky config file to point to your actual location of the lua script.

Similarly, search conky config file for "bg". This is the small circular background behind the 3 circular bargraphs. Note the file location of this image as listed in the conky config file. Then copy the bg picture file that is in the extracted zip file and paste it in the file location mentioned in the conky config file. Or edit the file location in the conky config.

As for the weather script,
1. search conky config file for mentions of it and make sure to paste the script at the file location mentioned within. Or edit the file location in the conky config file.
2. open and edit script so that the location code is where your location is. If you have obtained your new api key, there is probably a line within the script where you can substitute the existing key for your new key.

The more moving parts are provided in the zip file of a conky (eg scripts, graphical images, etc), the more you have to do to make the conky work. Conky Manager can't sort those things out.

Re: conky theme not showing transparent background  [Solved]

Posted: Tue Dec 12, 2023 3:40 am
by dotw
asqwerth wrote: Tue Dec 12, 2023 1:28 am
dotw wrote: Tue Dec 12, 2023 12:59 am
asqwerth wrote: Sun Dec 10, 2023 11:52 am As I understand it, you have sorted out the transparency issue but are wondering why the conky doesn't look exactly like the pic in the pling page.

That is because as downloaded, the conky comes with some scripts. 2 questions for you:
1. did you save the lua script in the same place as set out in the conky config file?
i did not do anything, it was already at this place
Open the conky config file itself and search for "lua". There is a line in the conky config where it mentions a file path for where the lua file must be saved.

Copy the lua file in "this place" (wherever you put extracted the conky zip file) and paste the lua file into the same spot mentioned in the conky config file. This lua script generates the circular bargraph.

Alternatively, edit the lua file location in that line of the conky config file to point to your actual location of the lua script.

Similarly, search conky config file for "bg". This is the small circular background behind the 3 circular bargraphs. Note the file location of this image as listed in the conky config file. Then copy the bg picture file that is in the extracted zip file and paste it in the file location mentioned in the conky config file. Or edit the file location in the conky config.
i edited the location but still no changes

Re: conky theme not showing transparent background

Posted: Tue Dec 12, 2023 3:59 am
by asqwerth
Next time, please copy and paste the conky config text AS TEXT, enclosed within the "[ code ]" and "[ /code ]" tags (without the spaces I added before and after the word "code" to prevent the formatting from triggering). Images are not searchable nor can you copy text from images.

However I can spot the mistake this round: you should not have the "~" in front of all your file paths.

It's either:

$HOME/.conky/bla bla bla

or

/home/dotw/.conky/bla bla bla


Potentially,

~/.conky/bla bla bla

might work also if your scripts/images are found in the same main folder as the conky config, but you will have to test this yourself.


ADDED: you need to change the file location of the weather-v2.0-sh script as well.

Re: conky theme not showing transparent background

Posted: Tue Dec 12, 2023 6:38 am
by dotw
asqwerth wrote: Tue Dec 12, 2023 3:59 am Next time, please copy and paste the conky config text AS TEXT, enclosed within the "[ code ]" and "[ /code ]" tags (without the spaces I added before and after the word "code" to prevent the formatting from triggering). Images are not searchable nor can you copy text from images.

However I can spot the mistake this round: you should not have the "~" in front of all your file paths.

It's either:

$HOME/.conky/bla bla bla

or

/home/dotw/.conky/bla bla bla


Potentially,

~/.conky/bla bla bla

might work also if your scripts/images are found in the same main folder as the conky config, but you will have to test this yourself.


ADDED: you need to change the file location of the weather-v2.0-sh script as well.

Code: Select all

conky.config = {
--==============================================================================

--  Created : 2022/Jul/17
--  This theme is for conky version 1.10.8 or newer
-- 
--  MEROPE
--  ( A part of Taurus Conky themes pack )
--
--  author  : Closebox73
--  version : 2.9
--  variant : Celcius
--  license : Distributed under the terms of GPLv3
--  notes   : Created on 1366x768 Monitor

--==============================================================================

-- Size and Position settings --
alignment = 'top_right',
gap_x = 20,
gap_y = 50,
  maximum_width = 400,
minimum_height = 600,
minimum_width = 400,
  
-- Text settings --
  use_xft = true,
  override_utf8_locale = true,
  font = 'Roboto:light:size=9',
  
-- Color Settings --
  default_color = 'FFFFFF',
  default_outline_color = 'white',
  default_shade_color = 'white',
  color1 = 'FFFFFF',
  
-- Window Settings --
  background = false,
  border_width = 1,
  draw_borders = false,
  draw_graph_borders = false,
  draw_outline = false,
  draw_shades = false,
  own_window = true,
own_window_colour = '000000',
  own_window_class = 'Conky',
  draw_blended = false,
own_window_argb_visual = true,
own_window_argb_value = 0,

  own_window_type = 'desktop',
own_window_transparent = false,
  own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
  stippled_borders = 0,
  
-- Others --
  cpu_avg_samples = 2,
  net_avg_samples = 2,
  double_buffer = true,
  out_to_console = false,
  out_to_stderr = false,
  extra_newline = false,
  update_interval = 1,
  uppercase = false,
  use_spacer = 'none',
  show_graph_scale = false,
  show_graph_range = false,
  lua_load = '/home/dotw/.conky/Merope/scripts/rings-v1.2.1.lua',
  lua_draw_hook_pre = 'ring_stats',
}

conky.text = [[
${execi 300 /home/dotw/.conky/Merope/scripts/weather-v2.0.sh}\
${image /home/dotw/.conky/Merope/res/bg.png -s 70x70 -p 330,350}\
${image /home/dotw/.conky/Merope/res/bg.png -s 70x70 -p 330,430}\
${image /home/dotw/.conky/Merope/res/bg.png -p 330,510}\
${alignr}${voffset 0}${color}${font Beckman:size=45}${time %Y}${font}
${alignr}${voffset 0}${color}${font Beckman:size=45}${time %A}${font}
${alignr}${voffset 0}${color}${font Beckman:size=45}${time %d}${execi 300 /home/dotw/.conky/Merope/scripts/number}${font}
${alignr}${voffset 0}${color}${font Beckman:size=45}${time %B}${font}
${alignr}${voffset 0}${color}${font Beckman:size=45}${time %I:%M%^p}${font}
${alignr 6}${voffset 46}${color}${font Beckman:size=9}CPU${font}
${alignr 6}${voffset -5}${color}${font Beckman:size=9}${cpu cpu0}%${font}
${alignr 6}${voffset 49}${color}${font Beckman:size=9}RAM${font}
${alignr 6}${voffset -5}${color}${font Beckman:size=9}${memperc}%${font}
${alignr 6}${voffset 50}${color}${font Roboto:bold:size=9}${execi 120 cat /.cache/weather.json | jq '.main.temp' | awk '{printf "%.0f\n",$1}'}°C${font}
${alignc -164}${voffset 0}${font feather:size=30}${execi 5 /home/dotw/.conky/Merope/scripts/weather-text-icon}${font}
]]
i did not find any weather.json file in the directory

Re: conky theme not showing transparent background

Posted: Wed Dec 13, 2023 5:30 am
by asqwerth
I finally tested the conky.

I note that the bg image shows up as opaque white because the conky creator used the [draw_blended=false,] line as he is using GNOME desktop (see his pling page). It's not a line I've used before.

Once I changed that line to true in the conky config, the bg images become translucent and you can see the circular bargraphs (which are also white) overlaid on the bg images. The lua script that creates the circular graphs should work if you got its file location correct in your conky config.

The weather script works for me once I entered my own location code (city_id) and api key into the script. This assumes that you got the file locations of the weather script and the weather-text-icon script correct in your conky config. Don't change the file location of json file. That is a file generated by the weather script in that location in ~/.cache.

Any conky where there are image files overlaid over the conky text may require you to tweak the x and y positioning of the images in the conky config, as a lot depends on your screen resolution.

Final tip: cut and paste the 3 lines relating the bg images to the end of the conky text (but before the "]]" close brackets). Don't leave any empty lines at the spots where you cut and where you paste the 3 lines.

Like I said, the more moving parts to a conky, the more tweaking you have to do to get it to work and display properly.
ksnip_20231213-180253.png

Re: conky theme not showing transparent background

Posted: Thu Dec 14, 2023 11:10 am
by dotw
asqwerth wrote: Wed Dec 13, 2023 5:30 am Final tip: cut and paste the 3 lines relating the bg images to the end of the conky text (but before the "]]" close brackets). Don't leave any empty lines at the spots where you cut and where you paste the 3 lines.
following this tip made it look a bit more whiteish. but by making draw blended true, i was able to achieve this result. the weather thing wont work. i guess i will just delete the weather segment

Re: conky theme not showing transparent background

Posted: Thu Dec 14, 2023 12:12 pm
by asqwerth
Check whether the following 2 packages are installed on your system:

jq

curl

They are needed for the weather to work. You will notice that the second last line in the conky config runs a command that includes "jq" in it. I believe that whenever I install a new release of MX, I have to install jq (for my various conkies that use openweathermap data to display weather) as it doesn't come preinstalled with MX.

Re: conky theme not showing transparent background

Posted: Thu Dec 14, 2023 12:24 pm
by Charlie Brown
@dotw In case "not showing transparent background" was not the only problem, it'll be good if you edit the title and add others, like "weather feature doesn't work" or so ...

Btw. I guess that day showing a bit weird (also here) like THURSD A Y is because that font ( Beckman )is not present ootb, you need to download from somewhere or just change the font in script to an existing one.