conky theme not showing transparent background
Posted: Thu Dec 07, 2023 7:10 am
The default conky themes show transparent background but the ones i downloaded do not. How do i make them transparent
Support for MX and antiX Linux distros
http://www.forum.mxlinux.org/
Code: Select all
own_window_argb_visual = true,
own_window_argb_value = 0,
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 beCharlie 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,
(After saving, change the theme to something else, then select back this one to take effect)Code: Select all
own_window_argb_visual = true, 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
https://www.pling.com/p/1980599/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
sorry for overlooking that you said "adding". I added the line but still it is not exactly like the original oneCharlie Brown wrote: Thu Dec 07, 2023 8:26 amdotw 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
noCharlie Brown wrote: Thu Dec 07, 2023 9:19 am ... and again you changed to another theme then turned back to this one ?
Code: Select all
own_window_argb_visual = true,
own_window_argb_value = 0,
Code: Select all
own_window_transparent = false,
still nothing. maybe the widget works properly in kde only?asqwerth wrote: Thu Dec 07, 2023 11:02 am if you have these added:then changeCode: Select all
own_window_argb_visual = true, own_window_argb_value = 0,
own_window_transparent = true,
toCode: Select all
own_window_transparent = false,
Nope, cause mine is Xfce, it took just 2 clicks.
i did not do anything, it was already at this placeasqwerth 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 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.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.
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.dotw wrote: Tue Dec 12, 2023 12:59 ami did not do anything, it was already at this placeasqwerth 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 edited the location but still no changesasqwerth wrote: Tue Dec 12, 2023 1:28 amOpen 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.dotw wrote: Tue Dec 12, 2023 12:59 ami did not do anything, it was already at this placeasqwerth 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?
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.
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}
]]
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 segmentasqwerth 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.