Page 1 of 1

My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 5:43 pm
by siamhie
*Addendum
The final version of the conky can be found here. MX-MultiCore viewtopic.php?p=807018#p807018


After the discussion of getting the graph working in the MySysInfoConky conky working here viewtopic.php?t=83371
I wanted to expand on it and show all 16 cores in action instead of an overall core average.
Started by adding 16 duplicate entries and editing them.

Code: Select all

# CPU0
Avg. Load ${goto 60} : ${cpu cpu0}% ${lua gradbar {100, 135, "${cpu cpu0}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 1} MHz
I then worked on getting the three color section of the graph working as the conky called for.

On the left is before and on the right is after.
Image


Here's a screeny of the conky in action showing the installation of the Xanmod-6.12.10 kernel.
Image


I opened the file MySysInfoConky (MX-MyConky) and saved it as MySysInfoConky2 so that I would retain the original.

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'override',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
out_to_console = false,
own_window_transparent = true,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',
alignment = 'top_left',
use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,
gap_x = 10,
gap_y = 10,
lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}MX-23.5 fluxbox
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon3/temp1_input}${eval ${hwmon 3 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# CPU0
${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz
${voffset 10}CPU11 ${goto 80} ${cpu cpu11}% ${lua gradbar {4, 566, "${cpu cpu11}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 11} MHz
${voffset 10}CPU12 ${goto 80} ${cpu cpu12}% ${lua gradbar {4, 599, "${cpu cpu12}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 12} MHz
${voffset 10}CPU13 ${goto 80} ${cpu cpu13}% ${lua gradbar {4, 632, "${cpu cpu13}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 13} MHz
${voffset 10}CPU14 ${goto 80} ${cpu cpu14}% ${lua gradbar {4, 665, "${cpu cpu14}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 14} MHz
${voffset 10}CPU15 ${goto 80} ${cpu cpu15}% ${lua gradbar {4, 698, "${cpu cpu15}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 15} MHz
${voffset 10}CPU16 ${goto 80} ${cpu cpu16}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 827, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];

Re: My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 6:06 pm
by Jerry3904
Very nice. A name that reflected the difference from the original would be good if we want to submit that with the default collection.

Re: My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 6:15 pm
by fehlix
Keep in mind those conky's offered to the user, should not only run for system with 16 cores and more. E.g. I got:

Code: Select all

onky: obj->data.i 5 info.cpu_count 4
conky: attempting to use more CPUs than you have!

Re: My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 6:33 pm
by Jerry3904
OK, thanks

Re: My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 6:48 pm
by AVLinux
Whoa @siamhie

Nice work! That looks awesome!

Re: My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 9:38 pm
by siamhie
fehlix wrote: Fri Jan 17, 2025 6:15 pm Keep in mind those conky's offered to the user, should not only run for system with 16 cores and more. E.g. I got:

Code: Select all

onky: obj->data.i 5 info.cpu_count 4
conky: attempting to use more CPUs than you have!
Interesting. I'm only using the conky variable ${cpu cpu1}, ${cpu cpu2}, etc.
http://ifxgroup.net/conky.htm#cpu

I thought that conky would ignore the other cores if not present.
Let me work on this over the weekend and come up with multiple variations based on core count.

Re: My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 10:08 pm
by asqwerth
siamhie wrote: Fri Jan 17, 2025 5:43 pm After the discussion of getting the graph working in the MySysInfoConky conky working here viewtopic.php?t=83371
I wanted to expand on it and show all 16 cores in action instead of an overall core average.
Started by adding 16 duplicate entries and editing them.

Code: Select all

# CPU0
Avg. Load ${goto 60} : ${cpu cpu0}% ${lua gradbar {100, 135, "${cpu cpu0}", 100, 40, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 230}${color}${freq 1} MHz
I then worked on getting the three color section of the graph working as the conky called for.....

.....
Nice, siamhie! Thanks for working out the 3-colour split in the graph bars, since the lua script allows that!

If I have time I might edit my conky to get 3 colours as well, though I rarely tax my CPU enough to ever get the red colour.

I will stick with the cpu0 single gradbar though - I need the space for other conkies, eg. music track playing, and weather.

ON the other hand, I will still be very interested to see if you can solve the problem of the conky not working if the user has fewer cores than as set out in your current conky. Always nice to learn more about conky scripting.

Re: My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 10:17 pm
by siamhie
asqwerth wrote: Fri Jan 17, 2025 10:08 pm
Nice, siamhie! Thanks for working out the 3-colour split in the graph bars, since the lua script allows that!

If I have time I might edit my conky to get 3 colours as well, though I rarely tax my CPU enough to ever get the red colour.
I was wanting to see how hard my CPU works when making snapshots. :veryhot:
ON the other hand, I will still be very interested to see if you can solve the problem of the conky not working if the user has fewer cores than as set out in your current conky. Always nice to learn more about conky scripting.
I think I might have everyone covered. 🤞

Re: My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 10:30 pm
by siamhie
OK, so that went rather quickly. I've created a total of 7 conky's to cover everyone from 2 core CPU'S to 16 core CPU'S.
I've renamed them so it is easier to find in the Conky Manager under the MX-MyConky section.
Please test and tell me what you think. I'll post the name of the conky according to the core count.
Be sure to save the file in the MX-MyConky folder.


MySysInfoConky-2Core

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
out_to_console = false,
own_window_transparent = true,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',
alignment = 'top_left',
use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,
gap_x = 10,
gap_y = 10,
lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon3/temp1_input}${eval ${hwmon 3 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# CPU0
${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 365, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];
MySysInfoConky-4Core

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
out_to_console = false,
own_window_transparent = true,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',
alignment = 'top_left',
use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,
gap_x = 10,
gap_y = 10,
lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon3/temp1_input}${eval ${hwmon 3 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# CPU0
${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 430, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];
MySysInfoConky-6Core

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
out_to_console = false,
own_window_transparent = true,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',
alignment = 'top_left',
use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,
gap_x = 10,
gap_y = 10,
lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon3/temp1_input}${eval ${hwmon 3 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# CPU0
${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 497, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];
MySysInfoConky-8Core

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
out_to_console = false,
own_window_transparent = true,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',
alignment = 'top_left',
use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,
gap_x = 10,
gap_y = 10,
lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon3/temp1_input}${eval ${hwmon 3 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# CPU0
${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 563, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];
MySysInfoConky-10Core

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
out_to_console = false,
own_window_transparent = true,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',
alignment = 'top_left',
use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,
gap_x = 10,
gap_y = 10,
lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon3/temp1_input}${eval ${hwmon 3 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# CPU0
${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 628, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];
MySysInfoConky-12Core

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
out_to_console = false,
own_window_transparent = true,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',
alignment = 'top_left',
use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,
gap_x = 10,
gap_y = 10,
lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon3/temp1_input}${eval ${hwmon 3 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# CPU0
${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz
${voffset 10}CPU11 ${goto 80} ${cpu cpu11}% ${lua gradbar {4, 566, "${cpu cpu11}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 11} MHz
${voffset 10}CPU12 ${goto 80} ${cpu cpu12}% ${lua gradbar {4, 599, "${cpu cpu12}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 12} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 695, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];
MySysInfoConky-16Core

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
out_to_console = false,
own_window_transparent = true,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',
alignment = 'top_left',
use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,
gap_x = 10,
gap_y = 10,
lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon3/temp1_input}${eval ${hwmon 3 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# CPU0
${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz
${voffset 10}CPU11 ${goto 80} ${cpu cpu11}% ${lua gradbar {4, 566, "${cpu cpu11}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 11} MHz
${voffset 10}CPU12 ${goto 80} ${cpu cpu12}% ${lua gradbar {4, 599, "${cpu cpu12}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 12} MHz
${voffset 10}CPU13 ${goto 80} ${cpu cpu13}% ${lua gradbar {4, 632, "${cpu cpu13}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 13} MHz
${voffset 10}CPU14 ${goto 80} ${cpu cpu14}% ${lua gradbar {4, 665, "${cpu cpu14}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 14} MHz
${voffset 10}CPU15 ${goto 80} ${cpu cpu15}% ${lua gradbar {4, 698, "${cpu cpu15}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 15} MHz
${voffset 10}CPU16 ${goto 80} ${cpu cpu16}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 827, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];

*Update: corrected the memory graph postitioning for cores 2 through 12 now.
*Update #2 Changed the hardcoded desktop name back to original
*Update #3 Changed own_window_type to normal
*Update #4 New code located in post #23 viewtopic.php?p=806168#p806168

Re: My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 10:35 pm
by siamhie
Jerry3904 wrote: Fri Jan 17, 2025 6:06 pm Very nice. A name that reflected the difference from the original would be good if we want to submit that with the default collection.
I've taken care of that with my revised conky's.
AVLinux wrote: Fri Jan 17, 2025 6:48 pm Whoa @siamhie

Nice work! That looks awesome!
Thanks. I'm like a dog with a bone when it comes to creating/editing conky's :rofl:

Re: My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 11:02 pm
by asqwerth
Some issues:
1. I reverted the system info section at the top to the original, since yours hardcodes "mx 23.5 fluxbox"

2. The position of the memperc grad bar for each version has to be adjusted because yours is set for a conky displaying gradbars for 12 cores. So with only 4 cores, my memperc gradbar is showing up positioned below the network stuff.

Re: My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 11:32 pm
by siamhie
asqwerth wrote: Fri Jan 17, 2025 11:02 pm Some issues:
1. I reverted the system info section at the top to the original, since yours hardcodes "mx 23.5 fluxbox"
I was trying to remember how to cut the output down and just hard-coded the name.
2. The position of the memperc grad bar for each version has to be adjusted because yours is set for a conky displaying gradbars for 12 cores. So with only 4 cores, my memperc gradbar is showing up positioned below the network stuff.
Good catch. I'll fix the conky's 2-12 over the weekend so that the membar aligns properly.
In the memory section

Code: Select all

${lua gradbar {4, 827,
should be this for a 4 core system.

Code: Select all

${lua gradbar {4, 430,

Re: My modified version of MX-MyConky

Posted: Fri Jan 17, 2025 11:48 pm
by asqwerth
Thanks.

I've been thinking of whether there is some command to identify the number of cores, and then in the same way that fehlix modded the original conky with the 'if_up' and 'else' commands to identify and display the actual network being connected, maybe there is a way to use the 'if_match [whatever the variable is] == [number of cores]' or some other similar command to set out all the different core bar lines in one single conky.

It will be long, but at least there will only be one other conky in MX-MyConky.

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 12:58 am
by siamhie
asqwerth wrote: Fri Jan 17, 2025 11:48 pm Thanks.

maybe there is a way to use the 'if_match [whatever the variable is] == [number of cores]' or some other similar command to set out all the different core bar lines in one single conky.

Possibly but what I'm seeing is the first number is the pixel start count from the left and the second number is the pixel start count from the top. ${lua gradbar {4, 365

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 3:06 am
by asqwerth
siamhie wrote: Sat Jan 18, 2025 12:58 am
asqwerth wrote: Fri Jan 17, 2025 11:48 pm Thanks.

maybe there is a way to use the 'if_match [whatever the variable is] == [number of cores]' or some other similar command to set out all the different core bar lines in one single conky.

Possibly but what I'm seeing is the first number is the pixel start count from the left and the second number is the pixel start count from the top. ${lua gradbar {4, 365
Nothing to do with the gradbar command and the pixel numbers . I think you're misunderstanding my thought/idea. I'm out right now. When I get home, I'll do some research.

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 6:03 am
by asqwerth
OK, here's my proof of concept single conky that handles 2 scenarios: when cpu has 16 cores, and when cpu has 4 cores, because I only know the position of the memperc gradbar for the 4 and 16-core conkies. You can copy and paste for the other number of cores/gradbars once you know the positions of the memperc gradbar in each of those cases.

I used:

Code: Select all

${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == [insert the various numbers of cores]}  ..... ${endif}
to set out the condition to be satisfied. This is adapted from the same grep line used to identify the cpu name just a few lines above the lua gradbar lines.

The conky config is:

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'override',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
out_to_console = false,
own_window_transparent = false,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',

alignment = 'top_right',
gap_x = 5,
gap_y = 5,

use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,

lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}MX-23.5 fluxbox
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon3/temp1_input}${eval ${hwmon 3 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# if CPU 16 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 16} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz
${voffset 10}CPU11 ${goto 80} ${cpu cpu11}% ${lua gradbar {4, 566, "${cpu cpu11}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 11} MHz
${voffset 10}CPU12 ${goto 80} ${cpu cpu12}% ${lua gradbar {4, 599, "${cpu cpu12}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 12} MHz
${voffset 10}CPU13 ${goto 80} ${cpu cpu13}% ${lua gradbar {4, 632, "${cpu cpu13}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 13} MHz
${voffset 10}CPU14 ${goto 80} ${cpu cpu14}% ${lua gradbar {4, 665, "${cpu cpu14}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 14} MHz
${voffset 10}CPU15 ${goto 80} ${cpu cpu15}% ${lua gradbar {4, 698, "${cpu cpu15}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 15} MHz
${voffset 10}CPU16 ${goto 80} ${cpu cpu16}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 827, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\
#if CPU 4 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 4} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 430, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 7:19 am
by Jerry3904
Yes you have! I will test @asqwerth's suggestion weekend as I have a range of cores up to 12.

Thanks to both for the work.

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 7:30 am
by asqwerth
Jerry3904 wrote: Sat Jan 18, 2025 7:19 am Yes you have! I will test @asqwerth's suggestion weekend as I have a range of cores up to 12.

Thanks to both for the work.
cool.

Just to let you know, siamhie uses

own_window_type = 'override',

in his conky, but

the original MX version of this conky [and most conkies in our collection] use

own_window_type = 'normal',

In override mode, the argb settings don't work with display compositors to give transparency or partial translucency. At least not in XFCE. I get an opaque black rectangle behind the conky with 'override'. I left his conky with the 'override' setting, but for my own use I've switched back to 'normal' so I can set translucency.

Maybe fluxbox is different?

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 7:49 am
by davidy
Interesting. After opening conky mgr and hitting one of the buttons at the top it stopped displaying the conky choices and no matter what I did all I got was a blank gui so I completely removed it. Which is not possible without removing mx-apps too. If nothing else at least the xanmod 6.12.10 rt-kernel v3 is working on my laptop. That's kinda cool.

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 8:02 am
by asqwerth
davidy wrote: Sat Jan 18, 2025 7:49 am Interesting. After opening conky mgr and hitting one of the buttons at the top it stopped displaying the conky choices and no matter what I did all I got was a blank gui so I completely removed it. Which is not possible without removing mx-apps too. If nothing else at least the xanmod 6.12.10 rt-kernel v3 is working on my laptop. That's kinda cool.
please start a new thread with this issue because this thread is about creating a new conky config, not about conky manager's potential problems (which I have not encountered).

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 8:32 am
by Jerry3904
@asqwerth Thanks for that, I'll take a look.
@davidy I have never seen that either, either personally or reported.

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 8:37 am
by davidy
asqwerth wrote: Sat Jan 18, 2025 8:02 am
davidy wrote: Sat Jan 18, 2025 7:49 am Interesting. After opening conky mgr and hitting one of the buttons at the top it stopped displaying the conky choices and no matter what I did all I got was a blank gui so I completely removed it. Which is not possible without removing mx-apps too. If nothing else at least the xanmod 6.12.10 rt-kernel v3 is working on my laptop. That's kinda cool.
please start a new thread with this issue because this thread is about creating a new conky config, not about conky manager's potential problems (which I have not encountered).
Once again, there is no issue and I know how to create my own thread. If you want to make every "issue" thread private I won't stop you. He posted about conky. I opened it and it acted weird so I removed it. The xanmod kernel reference made it all worthwhile however.

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 9:46 am
by siamhie
asqwerth wrote: Sat Jan 18, 2025 7:30 am
Just to let you know, siamhie uses

own_window_type = 'override',

in his conky, but

the original MX version of this conky [and most conkies in our collection] use

own_window_type = 'normal',
The original doesn't declare own_window_type. They are both commented out and I just
choose override. I have since changed them to normal.

Code: Select all

-- own_window_type desktop
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--own_window_type override
	own_window_argb_visual = true,
	own_window_argb_value = 0,

We now have an updated version based on @asqwerth's new CPU code.
If you could please test it, maybe we can have it included in the next round of updates.
All corrections are included in this version, including the original CPU temp variable (line 86).
If yours doesn't report the same temp as sensors, find the correct one in /sys/class/hwmon.
My CPU temp is located at hwmon3 and I had it hard coded.



MySysInfoConky-MultiCore

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
out_to_console = false,
own_window_transparent = false,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',

alignment = 'top_right',
gap_x = 5,
gap_y = 5,

use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,

lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp1_input}${eval ${hwmon 0 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# if CPU 16 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 16} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz
${voffset 10}CPU11 ${goto 80} ${cpu cpu11}% ${lua gradbar {4, 566, "${cpu cpu11}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 11} MHz
${voffset 10}CPU12 ${goto 80} ${cpu cpu12}% ${lua gradbar {4, 599, "${cpu cpu12}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 12} MHz
${voffset 10}CPU13 ${goto 80} ${cpu cpu13}% ${lua gradbar {4, 632, "${cpu cpu13}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 13} MHz
${voffset 10}CPU14 ${goto 80} ${cpu cpu14}% ${lua gradbar {4, 665, "${cpu cpu14}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 14} MHz
${voffset 10}CPU15 ${goto 80} ${cpu cpu15}% ${lua gradbar {4, 698, "${cpu cpu15}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 15} MHz
${voffset 10}CPU16 ${goto 80} ${cpu cpu16}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 827, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\
#if CPU 4 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 4} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 430, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 9:53 am
by siamhie
davidy wrote: Sat Jan 18, 2025 8:37 am I opened it and it acted weird so I removed it.

@davidy Please try the revised version in post #23. Thank you.

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 10:00 am
by asqwerth
When no own_window_type is set out, it defaults to normal anyway.

see: https://conky.sourceforge.net/config_settings.html

Thanks, @siamhie I'll copy and test this new mega-conky!

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 10:04 am
by asqwerth
siamhie wrote: Sat Jan 18, 2025 9:46 am
asqwerth wrote: Sat Jan 18, 2025 7:30 am
Just to let you know, siamhie uses

own_window_type = 'override',

in his conky, but

the original MX version of this conky [and most conkies in our collection] use

own_window_type = 'normal',
The original doesn't declare own_window_type. They are both commented out and I just
choose override. I have since changed them to normal.

Code: Select all

-- own_window_type desktop
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--own_window_type override
	own_window_argb_visual = true,
	own_window_argb_value = 0,
We now have an updated version based on @asqwerth's new CPU code.
If you could please test it, maybe we can have it included in the next round of updates.
All corrections are included in this version, including the original CPU temp variable (line 86).
If yours doesn't report the same temp as sensors, find the correct one in /sys/class/hwmon.
My CPU temp is located at hwmon3 and I had it hard coded.



MySysInfoConky-MultiCore

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
out_to_console = false,
own_window_transparent = false,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',

alignment = 'top_right',
gap_x = 5,
gap_y = 5,

use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,

lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp1_input}${eval ${hwmon 0 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# if CPU 16 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 16} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz
${voffset 10}CPU11 ${goto 80} ${cpu cpu11}% ${lua gradbar {4, 566, "${cpu cpu11}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 11} MHz
${voffset 10}CPU12 ${goto 80} ${cpu cpu12}% ${lua gradbar {4, 599, "${cpu cpu12}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 12} MHz
${voffset 10}CPU13 ${goto 80} ${cpu cpu13}% ${lua gradbar {4, 632, "${cpu cpu13}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 13} MHz
${voffset 10}CPU14 ${goto 80} ${cpu cpu14}% ${lua gradbar {4, 665, "${cpu cpu14}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 14} MHz
${voffset 10}CPU15 ${goto 80} ${cpu cpu15}% ${lua gradbar {4, 698, "${cpu cpu15}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 15} MHz
${voffset 10}CPU16 ${goto 80} ${cpu cpu16}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 827, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\
#if CPU 4 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 4} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 430, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];

Hang on, did you add the lines for the other cores? I only included the scenarios for 4 cores and 16 cores. I don't see any of the others included in your config. I was waiting for you to test your individual conkies so you could work out the positions for the memperc bar in each of those cases.

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 10:07 am
by siamhie
asqwerth wrote: Sat Jan 18, 2025 10:00 am When no own_window_type is set out, it defaults to normal anyway.

see: https://conky.sourceforge.net/config_settings.html
Did not know that. I sometimes create a conky that gets placed in the center of the screen and without the override variable,
I lose the right click menu feature in fluxbox and have to click outside of the conky window.
Thanks, @siamhie I'll copy and test this new mega-conky!
It sure did turn into a mega-conky but that was a fun one to build. I think I have just a little bit better understand of lua scripting from my arm chair.

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 10:11 am
by asqwerth
think you posted the wrong conky. It's not so mega. :p

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 10:12 am
by siamhie
asqwerth wrote: Sat Jan 18, 2025 10:04 am

Hang on, did you add the lines for the other cores? I only included the scenarios for 4 cores and 16 cores. I don't see any of the others included in your config. I was waiting for you to test your individual conkies so you could work out the positions for the memperc bar in each of those cases.

I made the changes in post #9 for the membar positioning for all the cores last night. ( *Update: corrected the memory graph positioning for cores 2 through 12 now.)

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 10:14 am
by siamhie
asqwerth wrote: Sat Jan 18, 2025 10:11 am think you posted the wrong conky. It's not so mega. :p
It will mega-rock if more users with different CPU core counts test and report. :spinning:

I titled it MySysInfoConky-MultiCore hoping it works for users with 2-16 cores.

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 10:20 am
by AVLinux
I have 24... what will happen then? I've kind of lost track of where the latest updated version is to try..?

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 10:36 am
by asqwerth
AVLinux wrote: Sat Jan 18, 2025 10:20 am I have 24... what will happen then? I've kind of lost track of where the latest updated version is to try..?
eek. The problem with the current state of this multicore conky is that if your CPU core number is not included inside, I believe your conky will only display the processes and network section.

I've now updated my conky to include scenarios for 2, 4, 6, 8, 10, 12 and 16 cores. I don't know if there is an "otherwise show average load " type of condition that can be scripted in if the core number doesn't match anything that is already listed. My conky-fu isn't up to that level yet!

updated MEGA-MULTICORE conky: [CLARIFICATION: NOT THE SAME AS SIAMHIE'S, MINE HAS SCENARIOS FOR 2, 4, 6, 8, 10, 12, 16- CORES]

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'normal',  --'override',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 50,
out_to_console = false,

own_window_transparent = false,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',

alignment = 'top_right',
gap_x = 5,
gap_y = 5,

use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,

lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM INFORMATION ${color}${hr 2}${font}
${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${goto 10}Kernel: $kernel $machine
${goto 10}${if_match "pmfix${time %p}" == "pmfix"}${time $template7}${else}${time %a %d %b %Y - %H:%M}${endif}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon3/temp1_input}${eval ${hwmon 3 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# if CPU 16 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 16} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz
${voffset 10}CPU11 ${goto 80} ${cpu cpu11}% ${lua gradbar {4, 566, "${cpu cpu11}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 11} MHz
${voffset 10}CPU12 ${goto 80} ${cpu cpu12}% ${lua gradbar {4, 599, "${cpu cpu12}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 12} MHz
${voffset 10}CPU13 ${goto 80} ${cpu cpu13}% ${lua gradbar {4, 632, "${cpu cpu13}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 13} MHz
${voffset 10}CPU14 ${goto 80} ${cpu cpu14}% ${lua gradbar {4, 665, "${cpu cpu14}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 14} MHz
${voffset 10}CPU15 ${goto 80} ${cpu cpu15}% ${lua gradbar {4, 698, "${cpu cpu15}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 15} MHz
${voffset 10}CPU16 ${goto 80} ${cpu cpu16}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 827, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\
# if CPU 12 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 12} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz
${voffset 10}CPU11 ${goto 80} ${cpu cpu11}% ${lua gradbar {4, 566, "${cpu cpu11}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 11} MHz
${voffset 10}CPU12 ${goto 80} ${cpu cpu12}% ${lua gradbar {4, 599, "${cpu cpu12}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 12} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 695, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used 
${endif}\
# if CPU 10 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 10} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 628, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\
# if CPU 8 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 8} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 563, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\
# if CPU 6 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 6} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 497, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\
#if CPU 4 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 4} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 430, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\
#if CPU 2 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 2}  ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 365, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\
 
#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 10:45 am
by AVLinux
OK thanks, will look later today, got a brainteaser of my own I'm looking at right now..

I personally would like a show average load option, 24 cores is a lot of screen real estate..lol But there are a lot of other Conkys that do that no need to add more complexity to this monster!

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 10:49 am
by asqwerth
AVLinux wrote: Sat Jan 18, 2025 10:45 am OK thanks, will look later today, got a brainteaser of my own I'm looking at right now..

I personally would like a show average load option, 24 cores is a lot of screen real estate..lol But there are a lot of other Conkys that do that no need to add more complexity to this monster!
THen just use the MX-MyConky conky that comes default with MX. You just need to amend the allcombined.lua script and the default conky using the corrected versions I posted on page 1 of this thread.

[OOPS, THE CORRECTED LUA SCRIPT AND DEFAULT CONKY ARE HERE viewtopic.php?t=83371]

The default is average load.

siamhie wanted to do a per-core version and made separate conkies for different core numbers, and I was wondering if I could squeeze them all into 1 combined conky.

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 12:03 pm
by siamhie
AVLinux wrote: Sat Jan 18, 2025 10:20 am I have 24... what will happen then? I've kind of lost track of where the latest updated version is to try..?
@AVLinux Is it a 24 core CPU or a 12 core with 24 threads?

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 12:38 pm
by AVLinux
siamhie wrote: Sat Jan 18, 2025 12:03 pm
AVLinux wrote: Sat Jan 18, 2025 10:20 am I have 24... what will happen then? I've kind of lost track of where the latest updated version is to try..?
@AVLinux Is it a 24 core CPU or a 12 core with 24 threads?
24 core threadripper with 48 threads... Might sound cool, but man it runs hot! I have the best push pull non-liquid cooling heatsink fan I could get and every case fan (5!) I could put in the case and this thing is a space heater under my desk...lol. CPU is at 65 degrees under no load and runs up to 90 when running parallel squashfs creation for ISO builds.

The high temps don't seem to bother it much, I've had it since 2019... *shrugs. Haha, I take the leaf blower to it every few months for dust control :p

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 3:49 pm
by siamhie
AVLinux wrote: Sat Jan 18, 2025 12:38 pm
siamhie wrote: Sat Jan 18, 2025 12:03 pm
AVLinux wrote: Sat Jan 18, 2025 10:20 am I have 24... what will happen then? I've kind of lost track of where the latest updated version is to try..?
@AVLinux Is it a 24 core CPU or a 12 core with 24 threads?
24 core threadripper with 48 threads... Might sound cool, but man it runs hot! I have the best push pull non-liquid cooling heatsink fan I could get and every case fan (5!) I could put in the case and this thing is a space heater under my desk...lol. CPU is at 65 degrees under no load and runs up to 90 when running parallel squashfs creation for ISO builds.
@AVLinux You should get yourself a portable A/C and plumb it directly into the front of the case. :p


The high temps don't seem to bother it much, I've had it since 2019... *shrugs. Haha, I take the leaf blower to it every few months for dust control :p
:rofl:



As far as the conky goes, your the first to have a system with 24 cores (which is a good thing, more cores never hurt anyone). *wink wink

Could you test this new revision for me. All I need to know is if all 24 cores show up and if the Processes/Network section drop off the screen.
I had changed the font size to make it more legible to see on my 1440 screen but it does take up some real estate.

Case in point.
Image


Here is the revised version of the conky.

MySysInfoConky-MultiCore_revised2

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

double_buffer = true,
update_interval = 1,
background = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
out_to_console = false,
own_window_transparent = false,
own_window_class = 'conky',
use_xft = true,
font = 'cure:size=12',
xftalpha = 0,
update_interval = 1,
cpu_avg_samples = 1,
net_avg_samples = 1,
double_buffer = true,
maximum_width = 320,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 1,
border_width = 0,
default_color = 'white',
default_shade_color = 'white',
default_outline_color = 'white',

alignment = 'top_right',
gap_x = 5,
gap_y = 5,

use_spacer = 'left',
no_buffers = true,
uppercase = false,
color0 = 'white',
color1 = 'green',
color2 = 'white',
color3 = '1793d0',
pad_percents = 2,
top_name_width = 7,
minimum_width = 320, minimum_height = 610,

lua_load = 'allcombined.lua',
own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M:%S',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp1_input}${eval ${hwmon 0 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# if CPU 16 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 16} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz
${voffset 10}CPU11 ${goto 80} ${cpu cpu11}% ${lua gradbar {4, 566, "${cpu cpu11}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 11} MHz
${voffset 10}CPU12 ${goto 80} ${cpu cpu12}% ${lua gradbar {4, 599, "${cpu cpu12}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 12} MHz
${voffset 10}CPU13 ${goto 80} ${cpu cpu13}% ${lua gradbar {4, 632, "${cpu cpu13}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 13} MHz
${voffset 10}CPU14 ${goto 80} ${cpu cpu14}% ${lua gradbar {4, 665, "${cpu cpu14}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 14} MHz
${voffset 10}CPU15 ${goto 80} ${cpu cpu15}% ${lua gradbar {4, 698, "${cpu cpu15}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 15} MHz
${voffset 10}CPU16 ${goto 80} ${cpu cpu16}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU17 ${goto 80} ${cpu cpu17}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU18 ${goto 80} ${cpu cpu18}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU19 ${goto 80} ${cpu cpu19}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU20 ${goto 80} ${cpu cpu20}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU21 ${goto 80} ${cpu cpu21}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU22 ${goto 80} ${cpu cpu22}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU23 ${goto 80} ${cpu cpu23}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU24 ${goto 80} ${cpu cpu24}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 827, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\
#if CPU 4 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 4} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 430, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 4:28 pm
by AVLinux
@siamhie

I can't seem to get the conky to find 'allcombined.lua' even though it is in the directory with the .conkyrc and I've made it executable:

Code: Select all

DevAVL@avl-devbox:~
$ conky -c "$HOME/.conky/MX_My_Conky/.conkyrc" &
[1] 145353
DevAVL@avl-devbox:~
$ conky: desktop window (1e4) is root window
conky: window type - normal
conky: drawing to created window (0x1c00002)
conky: drawing to double buffer
conky: llua_load: cannot open allcombined.lua: No such file or directory
conky: forked to background, pid is 145356

Code: Select all

DevAVL@avl-devbox:~
$ ls ~/.conky/MX_My_Conky/
allcombined.lua
DevAVL@avl-devbox:~
$

Re: My modified version of MX-MyConky

Posted: Sat Jan 18, 2025 9:42 pm
by asqwerth
AVLinux wrote: Sat Jan 18, 2025 4:28 pm @siamhie

I can't seem to get the conky to find 'allcombined.lua' even though it is in the directory with the .conkyrc and I've made it executable:
Try to quote the path for allcombined.lua in full in the "lua_load" line of the conky. Does it make a difference?
You shouldn't need to make the lua scripts executable

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 12:16 am
by AVLinux
asqwerth wrote: Sat Jan 18, 2025 9:42 pm
AVLinux wrote: Sat Jan 18, 2025 4:28 pm @siamhie

I can't seem to get the conky to find 'allcombined.lua' even though it is in the directory with the .conkyrc and I've made it executable:
Try to quote the path for allcombined.lua in full in the "lua_load" line of the conky. Does it make a difference?
You shouldn't need to make the lua scripts executable
Hmmm, good hint, it did make the error message go away but the Conky is not still displaying properly but it's quite possible it's an nVidia Video driver issue, I have all kinds of visual weirdness going on with this machine, strangely my regular Conky works but it's a very simple one without the extra Lua extensions. Anyway with a flaky Driver and using an unsupported DE I'm probably not an ideal candidate for your tests. The Conky looked so cool I wanted to try at least.. :frown:

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 1:32 am
by asqwerth
AVLinux wrote: Sun Jan 19, 2025 12:16 am
asqwerth wrote: Sat Jan 18, 2025 9:42 pm
AVLinux wrote: Sat Jan 18, 2025 4:28 pm @siamhie

I can't seem to get the conky to find 'allcombined.lua' even though it is in the directory with the .conkyrc and I've made it executable:
Try to quote the path for allcombined.lua in full in the "lua_load" line of the conky. Does it make a difference?
You shouldn't need to make the lua scripts executable
Hmmm, good hint, it did make the error message go away but the Conky is not still displaying properly but it's quite possible it's an nVidia Video driver issue, I have all kinds of visual weirdness going on with this machine, strangely my regular Conky works but it's a very simple one without the extra Lua extensions. Anyway with a flaky Driver and using an unsupported DE I'm probably not an ideal candidate for your tests. The Conky looked so cool I wanted to try at least.. :frown:
Did you change the own_window_type to normal instead of override?

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 9:56 am
by AVLinux
asqwerth wrote: Sun Jan 19, 2025 1:32 am
AVLinux wrote: Sun Jan 19, 2025 12:16 am
asqwerth wrote: Sat Jan 18, 2025 9:42 pm

Try to quote the path for allcombined.lua in full in the "lua_load" line of the conky. Does it make a difference?
You shouldn't need to make the lua scripts executable
Hmmm, good hint, it did make the error message go away but the Conky is not still displaying properly but it's quite possible it's an nVidia Video driver issue, I have all kinds of visual weirdness going on with this machine, strangely my regular Conky works but it's a very simple one without the extra Lua extensions. Anyway with a flaky Driver and using an unsupported DE I'm probably not an ideal candidate for your tests. The Conky looked so cool I wanted to try at least.. :frown:
Did you change the own_window_type to normal instead of override?
This is the @siamhie edited version (I was trying to test his 24 core version) and it has the window type changed to 'normal' already.

Code: Select all

own_window_type = 'normal',

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 10:48 am
by siamhie
AVLinux wrote: Sat Jan 18, 2025 4:28 pm @siamhie

I can't seem to get the conky to find 'allcombined.lua' even though it is in the directory with the .conkyrc and I've made it executable:

Code: Select all

DevAVL@avl-devbox:~
$ conky -c "$HOME/.conky/MX_My_Conky/.conkyrc" &
[1] 145353
DevAVL@avl-devbox:~
$ conky: desktop window (1e4) is root window
conky: window type - normal
conky: drawing to created window (0x1c00002)
conky: drawing to double buffer
conky: llua_load: cannot open allcombined.lua: No such file or directory
conky: forked to background, pid is 145356

Code: Select all

DevAVL@avl-devbox:~
$ ls ~/.conky/MX_My_Conky/
allcombined.lua
DevAVL@avl-devbox:~
$
@AVLinux Is the conky file in the same folder "~/.conky/MX_My_Conky/" as the allcombined.lua is?

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 11:04 am
by siamhie
So after adding 24 CPU entries to the MultiCore file, the network section of the conky goes off screen.
I copied the original conky.config section back into the MultiCore file and now I have two problems.

First it seems to read threads (16 core-32 thread) and 24 entries show.
Second problem I'm facing is when I refresh my desktop with fluxbox's restart command, the conky looks garbled.

Image


Back to the drawing board to see what I can do to fix this.

I do see that there are two fonts listed in the config section.

Code: Select all

-- own_window_type desktop
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--own_window_type override
	own_window_argb_visual = true,
	own_window_argb_value = 0,
	out_to_console = false,
	own_window_transparent = true,
	own_window_class = 'conky-semi',
	use_xft = true,
	font = 'cure:size=10',

--use_xft yes
--xftfont Sansation:size=9
	font = 'Rounded Elegance:size=10',
	xftalpha = 0,
	update_interval = 2,
	cpu_avg_samples = 2,

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 11:07 am
by siamhie
MySysInfoConky-MultiCore_revision3

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

	double_buffer = true,
	update_interval = 2,
	background = true,

	own_window = true,

-- own_window_type desktop
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--own_window_type override
	own_window_argb_visual = true,
	own_window_argb_value = 0,
	out_to_console = false,
	own_window_transparent = true,
	own_window_class = 'conky-semi',
	use_xft = true,
	font = 'cure:size=10',

--use_xft yes
--xftfont Sansation:size=9
	font = 'Rounded Elegance:size=10',
	xftalpha = 0,
	update_interval = 2,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
	double_buffer = true,
	maximum_width = 320,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	stippled_borders = 1,
	border_width = 0,
	default_color = 'white',
	default_shade_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_right',

	use_spacer = 'left',
	no_buffers = true,
	uppercase = false,

	color0 = 'white',
	color1 = 'green',
	color2 = 'white',
	color3 = '1793d0',


	pad_percents = 2,
	top_name_width = 7,
	minimum_width = 320, minimum_height = 610,

	gap_x = 60,
	gap_y = 30,

	lua_load = 'allcombined.lua',

	own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp1_input}${eval ${hwmon 0 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# if CPU 16 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 16} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz
${voffset 10}CPU11 ${goto 80} ${cpu cpu11}% ${lua gradbar {4, 566, "${cpu cpu11}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 11} MHz
${voffset 10}CPU12 ${goto 80} ${cpu cpu12}% ${lua gradbar {4, 599, "${cpu cpu12}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 12} MHz
${voffset 10}CPU13 ${goto 80} ${cpu cpu13}% ${lua gradbar {4, 632, "${cpu cpu13}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 13} MHz
${voffset 10}CPU14 ${goto 80} ${cpu cpu14}% ${lua gradbar {4, 665, "${cpu cpu14}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 14} MHz
${voffset 10}CPU15 ${goto 80} ${cpu cpu15}% ${lua gradbar {4, 698, "${cpu cpu15}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 15} MHz
${voffset 10}CPU16 ${goto 80} ${cpu cpu16}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU17 ${goto 80} ${cpu cpu17}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU18 ${goto 80} ${cpu cpu18}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU19 ${goto 80} ${cpu cpu19}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU20 ${goto 80} ${cpu cpu20}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU21 ${goto 80} ${cpu cpu21}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU22 ${goto 80} ${cpu cpu22}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU23 ${goto 80} ${cpu cpu23}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU24 ${goto 80} ${cpu cpu24}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 827, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\
#if CPU 4 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 4} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 430, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 11:09 am
by AVLinux
siamhie wrote: Sun Jan 19, 2025 10:48 am
@AVLinux Is the conky file in the same folder "~/.conky/MX_My_Conky/" as the allcombined.lua is?
Yessir it is, it didn't show in my ls command because it is a hidden '.conkyrc' that's why it struck me as odd that it didn't find it without the full path, I even tried './allcombined.lua'

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 5:34 pm
by siamhie
AVLinux wrote: Sun Jan 19, 2025 11:09 am
siamhie wrote: Sun Jan 19, 2025 10:48 am
@AVLinux Is the conky file in the same folder "~/.conky/MX_My_Conky/" as the allcombined.lua is?
Yessir it is, it didn't show in my ls command because it is a hidden '.conkyrc' that's why it struck me as odd that it didn't find it without the full path, I even tried './allcombined.lua'

@AVLinux Try renaming the file as conkyrc. Don't make it hidden.

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 5:59 pm
by siamhie
Even MySysInfoConky get garbled when restarting fluxbox. The command will restart the desktop.

Code: Select all

[restart] (Restart)

Image

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 6:19 pm
by CharlesV
siamhie wrote: Sun Jan 19, 2025 11:07 am MySysInfoConky-MultiCore_revision3

Code: Select all

conky.config = {
-- My adapted/changed Conky
-- 18 Dec. 2018

	double_buffer = true,
	update_interval = 2,
	background = true,

	own_window = true,

-- own_window_type desktop
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--own_window_type override
	own_window_argb_visual = true,
	own_window_argb_value = 0,
	out_to_console = false,
	own_window_transparent = true,
	own_window_class = 'conky-semi',
	use_xft = true,
	font = 'cure:size=10',

--use_xft yes
--xftfont Sansation:size=9
	font = 'Rounded Elegance:size=10',
	xftalpha = 0,
	update_interval = 2,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
	double_buffer = true,
	maximum_width = 320,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	stippled_borders = 1,
	border_width = 0,
	default_color = 'white',
	default_shade_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_right',

	use_spacer = 'left',
	no_buffers = true,
	uppercase = false,

	color0 = 'white',
	color1 = 'green',
	color2 = 'white',
	color3 = '1793d0',


	pad_percents = 2,
	top_name_width = 7,
	minimum_width = 320, minimum_height = 610,

	gap_x = 60,
	gap_y = 30,

	lua_load = 'allcombined.lua',

	own_window_colour = '000000',


-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',

-- time template
   template7 = '%a %d %b %Y - %H:%M',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${execi 86400 cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color lightgrey}Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp1_input}${eval ${hwmon 0 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
# if CPU 16 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 16} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz
${voffset 10}CPU5 ${goto 80} ${cpu cpu5}% ${lua gradbar {4, 370, "${cpu cpu5}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 5} MHz
${voffset 10}CPU6 ${goto 80} ${cpu cpu6}% ${lua gradbar {4, 403, "${cpu cpu6}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 6} MHz
${voffset 10}CPU7 ${goto 80} ${cpu cpu7}% ${lua gradbar {4, 436, "${cpu cpu7}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 7} MHz
${voffset 10}CPU8 ${goto 80} ${cpu cpu8}% ${lua gradbar {4, 468, "${cpu cpu8}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 8} MHz
${voffset 10}CPU9 ${goto 80} ${cpu cpu9}% ${lua gradbar {4, 500, "${cpu cpu9}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 9} MHz
${voffset 10}CPU10 ${goto 80} ${cpu cpu10}% ${lua gradbar {4, 533, "${cpu cpu10}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 10} MHz
${voffset 10}CPU11 ${goto 80} ${cpu cpu11}% ${lua gradbar {4, 566, "${cpu cpu11}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 11} MHz
${voffset 10}CPU12 ${goto 80} ${cpu cpu12}% ${lua gradbar {4, 599, "${cpu cpu12}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 12} MHz
${voffset 10}CPU13 ${goto 80} ${cpu cpu13}% ${lua gradbar {4, 632, "${cpu cpu13}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 13} MHz
${voffset 10}CPU14 ${goto 80} ${cpu cpu14}% ${lua gradbar {4, 665, "${cpu cpu14}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 14} MHz
${voffset 10}CPU15 ${goto 80} ${cpu cpu15}% ${lua gradbar {4, 698, "${cpu cpu15}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 15} MHz
${voffset 10}CPU16 ${goto 80} ${cpu cpu16}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU17 ${goto 80} ${cpu cpu17}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU18 ${goto 80} ${cpu cpu18}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU19 ${goto 80} ${cpu cpu19}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU20 ${goto 80} ${cpu cpu20}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU21 ${goto 80} ${cpu cpu21}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU22 ${goto 80} ${cpu cpu22}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU23 ${goto 80} ${cpu cpu23}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz
${voffset 10}CPU24 ${goto 80} ${cpu cpu24}% ${lua gradbar {4, 731, "${cpu cpu16}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 16} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 827, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\
#if CPU 4 cores
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 4} ${alignc}CPU Core Loads
CPU1 ${goto 80} ${cpu cpu1}% ${lua gradbar {4, 238, "${cpu cpu1}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 1} MHz
${voffset 10}CPU2 ${goto 80} ${cpu cpu2}% ${lua gradbar {4, 270, "${cpu cpu2}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 2} MHz
${voffset 10}CPU3 ${goto 80} ${cpu cpu3}% ${lua gradbar {4, 303, "${cpu cpu3}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 3} MHz
${voffset 10}CPU4 ${goto 80} ${cpu cpu4}% ${lua gradbar {4, 336, "${cpu cpu4}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 249}${color}${freq 4} MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 430, "${memperc}", 100, 110, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${alignr}${memperc}% used
${endif}\

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];
am I seeing a problem in the cpu's on this? If your calling out more than 16 cores, then there is an issue.

Code: Select all

${cpu cpu17}% ${lua gradbar {4, 731, "${cpu cpu16}
it looks to me like from cpu 16 on the second part of the code is all using cpu16 ?

Also, on my intel's the first cpu is cpu0

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 8:06 pm
by siamhie
CharlesV wrote: Sun Jan 19, 2025 6:19 pm am I seeing a problem in the cpu's on this? If your calling out more than 16 cores, then there is an issue.

Code: Select all

${cpu cpu17}% ${lua gradbar {4, 731, "${cpu cpu16}
@CharlesV That's what this part of the code that @asqwerth added to alleviate those with less than # of cores the conky has.
I take it it's not working. I can go back to making multiple versions based on the users amount of cores.

Code: Select all

${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 16} ${alignc}CPU Core Loads
it looks to me like from cpu 16 on the second part of the code is all using cpu16 ?
I haven't gotten around to moving the graphs back into place when I added 8 more cores to the conky, so core 17 through 24 are all stacked on top of core 16 currently.
Also, on my intel's the first cpu is cpu0
cpu0 is the combined value of all of the cores.
http://ifxgroup.net/conky.htm#cpu

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 8:16 pm
by CharlesV
I will play a bit more, maybe I have done something wrong.

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 8:59 pm
by siamhie
CharlesV wrote: Sun Jan 19, 2025 8:16 pm I will play a bit more, maybe I have done something wrong.
I think I'm going to do a rewrite. I have a conky.config template that I know works just fine with fluxbox and doesn't get garbled when I restart
fluxbox (I think there are some values in the conky.config section of MySysInfoConky that may be depreciated which is why I get garbled output---
same thing happens with the MX-ManyRoads conky which I believe MX-MyConky is based on).
I'll will also create multiple conky's based on core counts seeing as conky treats SMP cores as threads (cpu1, cpu2, etc.) and will use MX-MyConky as my template.

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 10:01 pm
by asqwerth
siamhie wrote: Sun Jan 19, 2025 8:59 pm
CharlesV wrote: Sun Jan 19, 2025 8:16 pm I will play a bit more, maybe I have done something wrong.
I think I'm going to do a rewrite. I have a conky.config template that I know works just fine with fluxbox and doesn't get garbled when I restart
fluxbox (I think there are some values in the conky.config section of MySysInfoConky that may be depreciated which is why I get garbled output---
same thing happens with the MX-ManyRoads conky which I believe MX-MyConky is based on).
I'll will also create multiple conky's based on core counts seeing as conky treats SMP cores as threads (cpu1, cpu2, etc.) and will use MX-MyConky as my template.
@CharlesV @siamhie
Could I trouble you to try my Mega-Multicore version found here, especially if you have machines that have different numbers of cpu cores?

viewtopic.php?p=806184#p806184

I tried to combine and fold into one, all of siamhie's individual conkies for 2, 4, 6, 8, 10, 12, 16 core system.

Siamhie, you can copy over my folded in bits for the different scenarios into your multicore one. Note that the line that you quoted

Code: Select all

${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 16} ${alignc}CPU Core Loads
is just the first one for the 16-core scenario. I had a similar line for each other scenario listed out. It is not a one and done line for anything with 16 or less cores. I had to include a scenario for each core number I addressed. The problem therefore is that if your number of cores is not in the scenarios I have included in the conky, then no bars for cpu load and memperc will appear at all, the way the script is set up.

I tried the mega conky on my 4-core machine. It does seem to work as it runs the part for 4-cores and ignores the other scenarios that don't apply to me.

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 10:07 pm
by CharlesV
Certainly I shall have a look. My laptop is 14 cores and 20 threads, and my new machine is 20 cores and 28 threads. ( Both i7's )

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 10:17 pm
by CharlesV
@asqwerth I copied code from that post you linked and it didnt show any CPU's. should I have updated the code from another post?


Image

Code: Select all

Snapshot created on: 20241227_2128
System:
  Kernel: 6.12.8-1-liquorix-amd64 [6.12-10~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 parameters: audit=0
    intel_pstate=disable amd_pstate=disable BOOT_IMAGE=/boot/vmlinuz-6.12.8-1-liquorix-amd64
    root=UUID=<filter> ro quiet splash
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 info: xfce4-panel, cairo-dock wm: xfwm v: 4.20.0
    vt: 7 dm: LightDM v: 1.32.0 Distro: MX-23.5_x64 Libretto July 31  2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: HP product: HP Envy Laptop 17-cw0xxx v: Type1ProductConfigId
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 8BDD v: 70.33 serial: <superuser required> UEFI: Insyde v: F.05
    date: 08/29/2023
Battery:
  ID-1: BAT1 charge: 52.8 Wh (100.0%) condition: 52.8/55.7 Wh (94.9%) volts: 17.2 min: 15.0
    model: 333-17-4B-A SA04055XL type: Li-ion serial: <filter> status: full
CPU:
  Info: model: 13th Gen Intel Core i7-13700H bits: 64 type: MST AMCP arch: Raptor Lake gen: core 13
    level: v3 note: check built: 2022+ process: Intel 7 (10nm) family: 6 model-id: 0xBA (186)
    stepping: 2 microcode: 0x4123
  Topology: cpus: 1x cores: 14 mt: 6 tpc: 2 st: 8 threads: 20 smt: enabled cache: L1: 1.2 MiB
    desc: d-8x32 KiB, 6x48 KiB; i-6x32 KiB, 8x64 KiB L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB
    desc: 1x24 MiB
  Speed (MHz): avg: 825 high: 3014 min/max: 400/2901 boost: enabled scaling: driver: acpi-cpufreq
    governor: ondemand cores: 1: 890 2: 400 3: 665 4: 562 5: 824 6: 900 7: 3014 8: 399 9: 780 10: 400
    11: 500 12: 400 13: 400 14: 2901 15: 700 16: 400 17: 675 18: 892 19: 400 20: 400
    bogomips: 116736
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling mitigation: Clear Register File
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB: conditional; RSB filling;
    PBRSB-eIBRS: SW sequence; BHI: BHI_DIS_S
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Raptor Lake-P [Iris Xe Graphics] vendor: Hewlett-Packard driver: i915 v: kernel
    alternate: xe arch: Gen-13 process: Intel 7 (10nm) built: 2022+ ports: active: eDP-1 empty: DP-1,
    DP-2, DP-3, DP-4, HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:a7a0 class-ID: 0300
  Device-2: Luxvisions Innotech HP Wide Vision 5MP Camera type: USB
    driver: hid-sensor-hub,usbhid,uvcvideo bus-ID: 3-7:2 chip-ID: 30c9:00ab class-ID: fe01
    serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.20.0 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 509x286mm (20.04x11.26") s-diag: 584mm (22.99")
  Monitor-1: eDP-1 model: BOE Display 0x0a9d built: 2021 res: 1920x1080 hz: 60 dpi: 128
    gamma: 1.2 size: 382x215mm (15.04x8.46") diag: 438mm (17.3") ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel Graphics (RPL-P) direct-render: Yes
Audio:
  Device-1: Intel vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    alternate: snd_soc_avs,snd_sof_pci_intel_tgl bus-ID: 00:1f.3 chip-ID: 8086:51ca class-ID: 0401
  API: ALSA v: k6.12.8-1-liquorix-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.2.3 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel driver: iwlwifi v: kernel modules: wl port: N/A bus-ID: 00:14.3
    chip-ID: 8086:51f1 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 3-10:3 chip-ID: 8087:0033 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter>
  Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff link-mode: peripheral accept
    service-classes: rendering, capturing, object transfer, audio, telephony
Drives:
  Local Storage: total: 953.87 GiB used: 217.37 GiB (22.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVL41T0HBLB-00BH1 size: 953.87 GiB
    block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: HPS3NHAV temp: 25.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 491.73 GiB size: 482.94 GiB (98.21%) used: 217.37 GiB (45.0%) fs: ext4
    dev: /dev/nvme0n1p6 maj-min: 259:5
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 31.69 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p5 maj-min: 259:4
Sensors:
  System Temperatures: cpu: 56.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 0 fan-2: 0
Repos:
  Packages: pm: dpkg pkgs: 2692 libs: 1278 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
    1: deb [arch=amd64 signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://la.mxrepo.com/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list
    1: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
Info:
  Processes: 420 Uptime: 10h 34m wakeups: 9464 Memory: 15.34 GiB used: 3.59 GiB (23.4%)
  Init: SysVinit v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0
  alt: 12 Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 10:36 pm
by CharlesV
and ofcourse if I modify the IF statement to match my cores (14 on my lappy) then it shows good (full height of the screen ;- )

I run a modified conkypatch .. and stopped at 8 cores... Ran out of screen with the rest of my Tower and stuff ;-p


Image

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 10:51 pm
by asqwerth
CharlesV wrote: Sun Jan 19, 2025 10:36 pm and ofcourse if I modify the IF statement to match my cores (14 on my lappy) then it shows good (full height of the screen ;- )

I run a modified conkypatch .. and stopped at 8 cores... Ran out of screen with the rest of my Tower and stuff ;-p


Image
Yes, like I said in my earlier post, if your no of cores doesn't match what I've got in the conky, those bits don't show. I don't know enough about awk or sed or whatever to try to do a

if [no of cores doesn't match 2, 4, 6, 8, 10, 12, 16] then [show average cpu load, ie display the bars for cp0]

Re: My modified version of MX-MyConky

Posted: Sun Jan 19, 2025 11:55 pm
by siamhie
@asqwerth It runs but I'm still facing fuzzy text when I restart the fluxbox desktop.

Image


I've rewritten the conky with a known conky.config section that does work in fluxbox.

This is my first run and it is the 24 core conky. I can then remove cpu entries as needed and move the memory graph back into place quite easily.

I've created a folder called MX-MultiCore and the file is called 24core.

Code: Select all

ls -l
total 28
-rw-r--r-- 1 siamhie siamhie 10988 Jan 19 20:28 24core
-rw-r--r-- 1 siamhie siamhie  8713 Jan 17 09:02 allcombined.lua
-rw-r--r-- 1 siamhie siamhie   638 Jan 19 20:27 ReadMe

Code: Select all

conky.config = {
-- My modified MySysInfoConky
-- January 19th 2025

alignment = 'top_right',
background = false,
border_width = 1,
cpu_avg_samples = 1,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'monofur:bold:size=12',
gap_x = 10,
gap_y = 10,
maximum_width = 400,
net_avg_samples = 1,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_class = 'Conky',
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_colour = '000000',
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
own_window_transparent = true,
own_window_type = 'desktop',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 0.5,
uppercase = false,
use_spacer = 'right',
use_xft = true,


lua_load = 'allcombined.lua',

-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',
};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${font}${color}${offset 6}${exec cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color}Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp1_input}${eval ${hwmon 0 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 16} 
CPU1 ${goto 180} ${cpu cpu1}% ${lua gradbar {4, 190, "${cpu cpu1}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 1} ${goto 355}MHz
${voffset 10}CPU2 ${goto 180} ${cpu cpu2}% ${lua gradbar {4, 217, "${cpu cpu2}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 2} ${goto 355}MHz
${voffset 10}CPU3 ${goto 180} ${cpu cpu3}% ${lua gradbar {4, 245, "${cpu cpu3}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 3} ${goto 355}MHz
${voffset 10}CPU4 ${goto 180} ${cpu cpu4}% ${lua gradbar {4, 272, "${cpu cpu4}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 4} ${goto 355}MHz
${voffset 10}CPU5 ${goto 180} ${cpu cpu5}% ${lua gradbar {4, 302, "${cpu cpu5}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 5} ${goto 355}MHz
${voffset 10}CPU6 ${goto 180} ${cpu cpu6}% ${lua gradbar {4, 330, "${cpu cpu6}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 6} ${goto 355}MHz
${voffset 10}CPU7 ${goto 180} ${cpu cpu7}% ${lua gradbar {4, 358, "${cpu cpu7}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 7} ${goto 355}MHz
${voffset 10}CPU8 ${goto 180} ${cpu cpu8}% ${lua gradbar {4, 386, "${cpu cpu8}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 8} ${goto 355}MHz
${voffset 10}CPU9 ${goto 180} ${cpu cpu9}% ${lua gradbar {4, 414, "${cpu cpu9}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 9} ${goto 355}MHz
${voffset 10}CPU10 ${goto 180} ${cpu cpu10}% ${lua gradbar {4, 442, "${cpu cpu10}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 10} ${goto 355}MHz
${voffset 10}CPU11 ${goto 180} ${cpu cpu11}% ${lua gradbar {4, 470, "${cpu cpu11}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 11} ${goto 355}MHz
${voffset 10}CPU12 ${goto 180} ${cpu cpu12}% ${lua gradbar {4, 498, "${cpu cpu12}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 12} ${goto 355}MHz
${voffset 10}CPU13 ${goto 180} ${cpu cpu13}% ${lua gradbar {4, 526, "${cpu cpu13}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 13} ${goto 355}MHz
${voffset 10}CPU14 ${goto 180} ${cpu cpu14}% ${lua gradbar {4, 554, "${cpu cpu14}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 14} ${goto 355}MHz
${voffset 10}CPU15 ${goto 180} ${cpu cpu15}% ${lua gradbar {4, 582, "${cpu cpu15}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 15} ${goto 355}MHz
${voffset 10}CPU16 ${goto 180} ${cpu cpu16}% ${lua gradbar {4, 610, "${cpu cpu16}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 16} ${goto 355}MHz
${voffset 10}CPU17 ${goto 180} ${cpu cpu17}% ${lua gradbar {4, 638, "${cpu cpu16}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 16} ${goto 355}MHz
${voffset 10}CPU18 ${goto 180} ${cpu cpu18}% ${lua gradbar {4, 666, "${cpu cpu16}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 16} ${goto 355}MHz
${voffset 10}CPU19 ${goto 180} ${cpu cpu19}% ${lua gradbar {4, 694, "${cpu cpu16}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 16} ${goto 355}MHz
${voffset 10}CPU20 ${goto 180} ${cpu cpu20}% ${lua gradbar {4, 722, "${cpu cpu16}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 16} ${goto 355}MHz
${voffset 10}CPU21 ${goto 180} ${cpu cpu21}% ${lua gradbar {4, 750, "${cpu cpu16}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 16} ${goto 355}MHz
${voffset 10}CPU22 ${goto 180} ${cpu cpu22}% ${lua gradbar {4, 778, "${cpu cpu16}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 16} ${goto 355}MHz
${voffset 10}CPU23 ${goto 180} ${cpu cpu23}% ${lua gradbar {4, 806, "${cpu cpu16}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 16} ${goto 355}MHz
${voffset 10}CPU24 ${goto 180} ${cpu cpu24}% ${lua gradbar {4, 834, "${cpu cpu16}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 16} ${goto 355}MHz

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 910, "${memperc}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${goto 321}${memperc}% used

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];

Re: My modified version of MX-MyConky

Posted: Mon Jan 20, 2025 1:12 am
by asqwerth
Noted about the fluxbox fuzziness. Since I don't use fb, I can't help with that.

I've copied your latest conky into my data partition conky collection. When I next boot into MX [currently updating other distros on my PC], I'll copy it into the MX install to test it. Though I'm not sure how helpful that will be when I only have 4 cores on both my lappy and my desktop PC.

For the moment though, I note your "if_match ...... = 16 " statement is not paired with a ${endif} at the end of the whole section dealing with 16-cores and consequential gradbar positions. I believe you need that.

Re: My modified version of MX-MyConky

Posted: Mon Jan 20, 2025 1:39 am
by siamhie
asqwerth wrote: Mon Jan 20, 2025 1:12 am Noted about the fluxbox fuzziness. Since I don't use fb, I can't help with that.

I've copied your latest conky into my data partition conky collection. When I next boot into MX [currently updating other distros on my PC], I'll copy it into the MX install to test it. Though I'm not sure how helpful that will be when I only have 4 cores on both my lappy and my desktop PC.

For the moment though, I note your "if_match ...... = 16 " statement is not paired with a ${endif} at the end of the whole section dealing with 16-cores and consequential gradbar positions. I believe you need that.
I've been working with the conky in post #16.
viewtopic.php?p=806129#p806129

Added the ${endif} statement but still showing all 24 cores.
Image

Re: My modified version of MX-MyConky

Posted: Mon Jan 20, 2025 2:29 am
by asqwerth
The $endif must be placed not immediately after the "if" statement, but after the whole segment you need to change/adjust for the 16-core scenario.

That way, if the if statement is not applicable to your system, the conky will ignore that section between the if and the endif.

Re: My modified version of MX-MyConky

Posted: Mon Jan 20, 2025 9:51 am
by siamhie
asqwerth wrote: Mon Jan 20, 2025 2:29 am The $endif must be placed not immediately after the "if" statement, but after the whole segment you need to change/adjust for the 16-core scenario.

That way, if the if statement is not applicable to your system, the conky will ignore that section between the if and the endif.
@asqwerth Do you mean like this. I don't code so this is all new to me.

Code: Select all

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color}Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp1_input}${eval ${hwmon 0 temp 1}}${else}${if_existing /sys/class/hwmon/hwmon1/temp1_input}${eval ${hwmon 1 temp 1}}${endif}${endif}°C
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 24}
CPU1 ${goto 180} ${cpu cpu1}% ${lua gradbar {4, 190, "${cpu cpu1}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 1} ${goto 355}MHz
${voffset 10}CPU2 ${goto 180} ${cpu cpu2}% ${lua gradbar {4, 217, "${cpu cpu2}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 2} ${goto 355}MHz
${voffset 10}CPU3 ${goto 180} ${cpu cpu3}% ${lua gradbar {4, 245, "${cpu cpu3}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 3} ${goto 355}MHz
${voffset 10}CPU4 ${goto 180} ${cpu cpu4}% ${lua gradbar {4, 272, "${cpu cpu4}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 4} ${goto 355}MHz
${voffset 10}CPU5 ${goto 180} ${cpu cpu5}% ${lua gradbar {4, 302, "${cpu cpu5}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 5} ${goto 355}MHz
${voffset 10}CPU6 ${goto 180} ${cpu cpu6}% ${lua gradbar {4, 330, "${cpu cpu6}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 6} ${goto 355}MHz
${voffset 10}CPU7 ${goto 180} ${cpu cpu7}% ${lua gradbar {4, 358, "${cpu cpu7}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 7} ${goto 355}MHz
${voffset 10}CPU8 ${goto 180} ${cpu cpu8}% ${lua gradbar {4, 386, "${cpu cpu8}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 8} ${goto 355}MHz
${voffset 10}CPU9 ${goto 180} ${cpu cpu9}% ${lua gradbar {4, 414, "${cpu cpu9}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 9} ${goto 355}MHz
${voffset 10}CPU10 ${goto 180} ${cpu cpu10}% ${lua gradbar {4, 442, "${cpu cpu10}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 10} ${goto 355}MHz
${voffset 10}CPU11 ${goto 180} ${cpu cpu11}% ${lua gradbar {4, 470, "${cpu cpu11}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 11} ${goto 355}MHz
${voffset 10}CPU12 ${goto 180} ${cpu cpu12}% ${lua gradbar {4, 498, "${cpu cpu12}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 12} ${goto 355}MHz
${voffset 10}CPU13 ${goto 180} ${cpu cpu13}% ${lua gradbar {4, 526, "${cpu cpu13}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 13} ${goto 355}MHz
${voffset 10}CPU14 ${goto 180} ${cpu cpu14}% ${lua gradbar {4, 554, "${cpu cpu14}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 14} ${goto 355}MHz
${voffset 10}CPU15 ${goto 180} ${cpu cpu15}% ${lua gradbar {4, 582, "${cpu cpu15}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 15} ${goto 355}MHz
${voffset 10}CPU16 ${goto 180} ${cpu cpu16}% ${lua gradbar {4, 610, "${cpu cpu16}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 16} ${goto 355}MHz
${voffset 10}CPU17 ${goto 180} ${cpu cpu17}% ${lua gradbar {4, 638, "${cpu cpu17}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 17} ${goto 355}MHz
${voffset 10}CPU18 ${goto 180} ${cpu cpu18}% ${lua gradbar {4, 666, "${cpu cpu18}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 18} ${goto 355}MHz
${voffset 10}CPU19 ${goto 180} ${cpu cpu19}% ${lua gradbar {4, 694, "${cpu cpu19}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 19} ${goto 355}MHz
${voffset 10}CPU20 ${goto 180} ${cpu cpu20}% ${lua gradbar {4, 722, "${cpu cpu20}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 20} ${goto 355}MHz
${voffset 10}CPU21 ${goto 180} ${cpu cpu21}% ${lua gradbar {4, 750, "${cpu cpu21}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 21} ${goto 355}MHz
${voffset 10}CPU22 ${goto 180} ${cpu cpu22}% ${lua gradbar {4, 778, "${cpu cpu22}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 22} ${goto 355}MHz
${voffset 10}CPU23 ${goto 180} ${cpu cpu23}% ${lua gradbar {4, 806, "${cpu cpu23}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 23} ${goto 355}MHz
${voffset 10}CPU24 ${goto 180} ${cpu cpu24}% ${lua gradbar {4, 834, "${cpu cpu24}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 24} ${goto 355}MHz${endif}

Re: My modified version of MX-MyConky

Posted: Mon Jan 20, 2025 10:54 am
by asqwerth
In my mega-multicore conky version, I placed the ${endif} at the end of the memory section and memperc gradbar for every different scenario. That's because for every different number of cores (and thus, different no of gradbars), the positioning of the memperc bar is also different and has to be established separately for each scenario.

Thus, the structure of the conky for this part should be:

1. is the no of cores = X number? If yes, run the whole section up to $endif, namely display the cpu and memory details and draw the lua gradbars for the number of cores and position the memory gradbar accordingly. If no, skip the whole section bracketed by if_match and endif, and go to the next "if_match" section.

2. the last fallback scenario, that I haven't been able to do because I don't have enough script-fu, is a scenario where, if no of cores don't match any of the numbers already addressed in the above other scenarios, simply display the average cpu0 load gradbar, and position memperc bar accordingly. This part will follow roughly the lines of the current default MX-MySysInfo conky, except the position of the memperc bar should be corrected per the other thread I previously started.

If the fallback scenario does not exist and the user's no of cores is not one of those included, the program will skip all the if_match...endif parts because the conditions in all the scenarios aren't satisfied, and then just display the Processes and Networks sections of the conky. You would get a very truncated conky.


PS. I don't really code either. ;)

Re: My modified version of MX-MyConky

Posted: Tue Jan 21, 2025 3:37 pm
by jeffreyC
siamhie wrote: Sun Jan 19, 2025 11:55 pm @asqwerth It runs but I'm still facing fuzzy text when I restart the fluxbox desktop.

Image
In my experience having two conkies running in the same place at the same time will cause that, it is why most conky start scripts begin with killall conky.
Restarting the Fluxbox desktop is starting conky without killing the existing conky.

Re: My modified version of MX-MyConky

Posted: Tue Jan 21, 2025 4:38 pm
by siamhie
jeffreyC wrote: Tue Jan 21, 2025 3:37 pm
siamhie wrote: Sun Jan 19, 2025 11:55 pm @asqwerth It runs but I'm still facing fuzzy text when I restart the fluxbox desktop.

Image
In my experience having two conkies running in the same place at the same time will cause that, it is why most conky start scripts begin with killall conky.
Restarting the Fluxbox desktop is starting conky without killing the existing conky.
Doesn't explain why other conky's I've written myself don't display this issue. In fact, I swapped out the conky.conf section for a known working one I built
and I don't get the fuzzy look when restarting the fluxbox desktop. I think there is possibly old or changed variables in the original conky. I even get the
fuzzy look using MX-ManyRoads conky when restarting the desktop.

This is what happens when you select restart from the menu in fluxbox.

Code: Select all

Restart ([restart] (Restart))

Restart the whole darn thing. This starts a completely new fluxbox
process, rereads files and redraws all graphical elements. Running
applications will remain open, however, and restored to the same
workspaces they were previously in once fluxbox returns.

Re: My modified version of MX-MyConky

Posted: Tue Jan 21, 2025 4:57 pm
by AVLinux
FWIW, granted I never got it up and running properly on my system but something very weird I noticed was the parts of it that would run looked clear on the Desktop but when I took a screenshot the shot was all garbled looking.. I chalked this up to nVidia purgatory but maybe its something else..?

Re: My modified version of MX-MyConky

Posted: Tue Jan 21, 2025 5:13 pm
by ceeslans
siamhie wrote: Tue Jan 21, 2025 4:38 pm
jeffreyC wrote: Tue Jan 21, 2025 3:37 pm
siamhie wrote: Sun Jan 19, 2025 11:55 pm @asqwerth It runs but I'm still facing fuzzy text when I restart the fluxbox desktop.
In my experience having two conkies running in the same place at the same time will cause that, it is why most conky start scripts begin with killall conky.
Restarting the Fluxbox desktop is starting conky without killing the existing conky.
Doesn't explain why other conky's I've written myself don't display this issue. In fact, I swapped out the conky.conf section for a known working one I built
and I don't get the fuzzy look when restarting the fluxbox desktop. I think there is possibly old or changed variables in the original conky. I even get the
fuzzy look using MX-ManyRoads conky when restarting the desktop.
Afaik, the own_window_transparent='true' and own_window_argb_visual='true' settings don't play nice with each other when in the same config.
I guess that MX-MyConky requires own_window_argb_visual='true' to be set (haven't checked it myself tho')?. If so, suggest you disable own_window_transparent='true' in conky's lua section.
Another issue I ran into myself a few times with conkys, which only have own_window_transparent='true' set --> I experience exactly the same behavior you described about fuzzy fonts and overwritten data, i.e immediately after a [fluxbox-remote restart] command is executed. It doesn't happen after [fluxbox-remote reconfig]...
Perhaps you can check this from your end too

Re: My modified version of MX-MyConky

Posted: Tue Jan 21, 2025 5:46 pm
by fehlix
ceeslans wrote: Tue Jan 21, 2025 5:13 pm
siamhie wrote: Tue Jan 21, 2025 4:38 pm
jeffreyC wrote: Tue Jan 21, 2025 3:37 pm

In my experience having two conkies running in the same place at the same time will cause that, it is why most conky start scripts begin with killall conky.
Restarting the Fluxbox desktop is starting conky without killing the existing conky.
Doesn't explain why other conky's I've written myself don't display this issue. In fact, I swapped out the conky.conf section for a known working one I built
and I don't get the fuzzy look when restarting the fluxbox desktop. I think there is possibly old or changed variables in the original conky. I even get the
fuzzy look using MX-ManyRoads conky when restarting the desktop.
Afaik, the own_window_transparent='true' and own_window_argb_visual='true' settings don't play nice with each other when in the same config.
I guess that MX-MyConky requires own_window_argb_visual='true' to be set (haven't checked it myself tho')?.
If so, suggest you disable own_window_transparent='true' in conky's lua section.
On most MX conkys with set when fluxbox was detected this:

Code: Select all

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end
ceeslans wrote: Tue Jan 21, 2025 5:13 pm Another issue I ran into myself a few times with conkys, which only have own_window_transparent='true' set --> I experience exactly the same behavior you described about fuzzy fonts and overwritten data, i.e immediately after a [fluxbox-remote restart] command is executed. It doesn't happen after [fluxbox-remote reconfig]...
Perhaps you can check this from your end too
On fluxbox restart/refresh, we combine this normaly with reload/refresh of the conky, by sending a USR1 signal,
which avoids the blurring conky effect, using something like:

Code: Select all

killall  -SIGUSR1 conky

Re: My modified version of MX-MyConky

Posted: Tue Jan 21, 2025 11:32 pm
by siamhie
I experience the same situation with the MX-ManyRoads cpu, memory and disc files that have lua bars.
MX-MR.jpg


fehlix wrote: Tue Jan 21, 2025 5:46 pm

Code: Select all

killall  -SIGUSR1 conky
Thanks. Added that to my menu for the time being.

Code: Select all

[exec] (Restart Conky) {killall -SIGUSR1 conky}

Re: My modified version of MX-MyConky

Posted: Tue Jan 21, 2025 11:38 pm
by siamhie
@AVLinux Try this one. It's my first 24 core conky.
Unzip into your conky directory and read the ReadMe file for CPU temp instructions.
MX-MultiCore.zip

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 2:15 am
by i_ri
hello siamhie
multi.
Commented out the cpuN that WallE does not read. WallE has four.
is conky (siamhie24)-MultiCore (fromzip)

Image

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 10:45 am
by siamhie
i_ri wrote: Wed Jan 22, 2025 2:15 am hello siamhie
multi.
Commented out the cpuN that WallE does not read. WallE has four.
is conky (siamhie24)-MultiCore (fromzip)

Image
That's because the conky I posted for @AVLinux is for CPU's with 24 cores.
Anything with less than 12 cores, conky will probably error.

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 11:06 am
by siamhie
Two more lua conky's fail when restarting the desktop. MX-CoreBlue and MX_Lua.
MX-CoreBlue.jpg
MX_Lua.jpg
Based on the code at the end of the config section

Code: Select all

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false

I wondered which version I have installed but it seems I don't have lua installed.

Code: Select all

lua
bash: lua: command not found
Lua5.1, Lua5.2, Lua5.3 and Lua5.4 are available in the repos to install but it seems only the libraries have been installed.
lua-version.jpg

Code: Select all

apt list --installed | grep lua

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

gimp-gluas/stable,now 0.1.20-2 amd64 [installed]
liblua5.1-0/stable,now 5.1.5-9 amd64 [installed,automatic]
liblua5.2-0/stable,now 5.2.4-3 amd64 [installed,automatic]
liblua5.3-0/stable,now 5.3.6-2 amd64 [installed,automatic]
liblua5.4-0/stable,now 5.4.4-3+deb12u1 amd64 [installed,automatic]
libluajit2-5.1-2/stable,now 2.1-20230119-1 amd64 [installed,automatic]
libluajit2-5.1-common/stable,stable,now 2.1-20230119-1 all [installed,automatic]

I'm wondering if I need to install the lua package and if so, which one?

Code: Select all

lua5.1 2006
lua5.2 2011
lua5.3 2015
lua5.4 2020

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 11:30 am
by CharlesV
@siamhie VERY good looking! Good job!

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 11:41 am
by AVLinux
siamhie wrote: Tue Jan 21, 2025 11:38 pm @AVLinux Try this one. It's my first 24 core conky.
Unzip into your conky directory and read the ReadMe file for CPU temp instructions.

MX-MultiCore.zip
Hi, thanks for all your work on this! Unfortunately still a no-go for me.. I had to give allcombined.lua the full path to be found and then it runs without errors but there are no gradbars at all.
DevAVL@avl-devbox:~

Code: Select all

$ conky -c /home/DevAVL/.conky/MX-MultiCore/24core &
[1] 7322
DevAVL@avl-devbox:~
$ conky: desktop window (1e4) is root window
conky: window type - desktop
conky: drawing to created window (0x1600002)
conky: drawing to double buffer
shot-2025-01-22_11-38-55.resized.jpg
If others have it running don't waste any more time on me, like I said I've got a flaky Video card and Enlightenment could be a wild card as well although other Conkii seem OK

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 12:40 pm
by siamhie
CharlesV wrote: Wed Jan 22, 2025 11:30 am @siamhie VERY good looking! Good job!
Thanks @CharlesV

AVLinux wrote: Wed Jan 22, 2025 11:41 am If others have it running don't waste any more time on me
@AVLinux Don't give up just yet. I have one more trick up my sleeve. 😁

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 12:56 pm
by siamhie
@fehlix I have figured out the fuzziness issue.

This part of the conky.conf section is causing the problem.

Code: Select all

;

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

When removed, I can restart the desktop and the conky doesn't get fuzzy. I tested with the MX-CoreBlue conky.

Fuzzy

Code: Select all

-- wheather templates

   template8 = '~/.conky/accu_weather/rss/weather',
   template9 = '~/.conky/accu_weather/rss/acc_rss',
};

-- fluxbox adjustment
return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end
Not fuzzy

Code: Select all

-- wheather templates

   template8 = '~/.conky/accu_weather/rss/weather',
   template9 = '~/.conky/accu_weather/rss/acc_rss',
}

I think all the conky's that have that code should have it removed. I don't think it will make a difference with desktop environments (XFCE, KDE).

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 1:05 pm
by siamhie
@AVLinux Try this version. I have removed the fluxbox reference from the conky.config section.
Also, do you have the conky-all 1.18.3-1 package installed?

Name the file 24core.

Code: Select all

conky.config = {
-- My modified MySysInfoConky
-- January 19th 2025

alignment = 'top_right',
background = false,
border_width = 1,
cpu_avg_samples = 1,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'monofur:bold:size=12',
gap_x = 10,
gap_y = 10,
maximum_width = 400,
net_avg_samples = 1,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_class = 'Conky',
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_colour = '000000',
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
own_window_transparent = true,
own_window_type = 'desktop',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 0.5,
uppercase = false,
use_spacer = 'right',
use_xft = true,


lua_load = 'allcombined.lua',

-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',
}

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${font}${color}${offset 6}${exec cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %a %d %b %Y   -   %H:%M:%S}

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color}Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp1_input}${eval ${hwmon 0 temp 1}}${else}${endif}°C
${if_match ${execi 86400 grep -m1 -oP '^cpu cores\s+:\s\K(.*)' /proc/cpuinfo} == 16}
CPU1 ${goto 180} ${cpu cpu1}% ${lua gradbar {4, 190, "${cpu cpu1}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 1} ${goto 355}MHz
${voffset 10}CPU2 ${goto 180} ${cpu cpu2}% ${lua gradbar {4, 217, "${cpu cpu2}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 2} ${goto 355}MHz
${voffset 10}CPU3 ${goto 180} ${cpu cpu3}% ${lua gradbar {4, 245, "${cpu cpu3}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 3} ${goto 355}MHz
${voffset 10}CPU4 ${goto 180} ${cpu cpu4}% ${lua gradbar {4, 272, "${cpu cpu4}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 4} ${goto 355}MHz
${voffset 10}CPU5 ${goto 180} ${cpu cpu5}% ${lua gradbar {4, 302, "${cpu cpu5}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 5} ${goto 355}MHz
${voffset 10}CPU6 ${goto 180} ${cpu cpu6}% ${lua gradbar {4, 330, "${cpu cpu6}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 6} ${goto 355}MHz
${voffset 10}CPU7 ${goto 180} ${cpu cpu7}% ${lua gradbar {4, 358, "${cpu cpu7}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 7} ${goto 355}MHz
${voffset 10}CPU8 ${goto 180} ${cpu cpu8}% ${lua gradbar {4, 386, "${cpu cpu8}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 8} ${goto 355}MHz
${voffset 10}CPU9 ${goto 180} ${cpu cpu9}% ${lua gradbar {4, 414, "${cpu cpu9}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 9} ${goto 355}MHz
${voffset 10}CPU10 ${goto 180} ${cpu cpu10}% ${lua gradbar {4, 442, "${cpu cpu10}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 10} ${goto 355}MHz
${voffset 10}CPU11 ${goto 180} ${cpu cpu11}% ${lua gradbar {4, 470, "${cpu cpu11}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 11} ${goto 355}MHz
${voffset 10}CPU12 ${goto 180} ${cpu cpu12}% ${lua gradbar {4, 498, "${cpu cpu12}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 12} ${goto 355}MHz
${voffset 10}CPU13 ${goto 180} ${cpu cpu13}% ${lua gradbar {4, 526, "${cpu cpu13}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 13} ${goto 355}MHz
${voffset 10}CPU14 ${goto 180} ${cpu cpu14}% ${lua gradbar {4, 554, "${cpu cpu14}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 14} ${goto 355}MHz
${voffset 10}CPU15 ${goto 180} ${cpu cpu15}% ${lua gradbar {4, 582, "${cpu cpu15}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 15} ${goto 355}MHz
${voffset 10}CPU16 ${goto 180} ${cpu cpu16}% ${lua gradbar {4, 610, "${cpu cpu16}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 16} ${goto 355}MHz
${voffset 10}CPU17 ${goto 180} ${cpu cpu17}% ${lua gradbar {4, 638, "${cpu cpu17}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 17} ${goto 355}MHz
${voffset 10}CPU18 ${goto 180} ${cpu cpu18}% ${lua gradbar {4, 666, "${cpu cpu18}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 18} ${goto 355}MHz
${voffset 10}CPU19 ${goto 180} ${cpu cpu19}% ${lua gradbar {4, 694, "${cpu cpu19}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 19} ${goto 355}MHz
${voffset 10}CPU20 ${goto 180} ${cpu cpu20}% ${lua gradbar {4, 722, "${cpu cpu20}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 20} ${goto 355}MHz
${voffset 10}CPU21 ${goto 180} ${cpu cpu21}% ${lua gradbar {4, 750, "${cpu cpu21}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 21} ${goto 355}MHz
${voffset 10}CPU22 ${goto 180} ${cpu cpu22}% ${lua gradbar {4, 778, "${cpu cpu22}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 22} ${goto 355}MHz
${voffset 10}CPU23 ${goto 180} ${cpu cpu23}% ${lua gradbar {4, 806, "${cpu cpu23}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 23} ${goto 355}MHz
${voffset 10}CPU24 ${goto 180} ${cpu cpu24}% ${lua gradbar {4, 834, "${cpu cpu24}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 310}${color}${freq 24} ${goto 355}MHz${endif}

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
${color}RAM Available${color}${alignr}$memmax ${lua gradbar {4, 910, "${memperc}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}
${color}$mem used${goto 321}${memperc}% used

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up $template0}\
${goto 10}Wireless:${color3} $template0${color}${goto 145}IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received: ${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
]];

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 1:24 pm
by AVLinux
@siamhie

Man, bummer!


Image

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 2:21 pm
by siamhie
AVLinux wrote: Wed Jan 22, 2025 1:24 pm @siamhie

Man, bummer!


Image

@AVLinux Check your allcombined.lua file

If line 19 reads this

Code: Select all

local bartab=loadstring("return" .. bartab)()
it should read this for the lua bars to show.

Code: Select all

local bartab=load("return" .. bartab)()

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 3:03 pm
by fehlix
siamhie wrote: Wed Jan 22, 2025 12:56 pm @fehlix I have figured out the fuzziness issue.

This part of the conky.conf section is causing the problem.

Code: Select all

;

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

When removed, I can restart the desktop and the conky doesn't get fuzzy. I tested with the MX-CoreBlue conky.
I think all the conky's that have that code should have it removed. I don't think it will make a difference with desktop environments (XFCE, KDE).
The purpose is to keep the conky transpararent, when fluxbox was detected,
otherwise you will get for most MX conky's provided a black background.
For enabled transparency, you need to reload or restart conky when restarting fluxbox, to avoid the fuzziness.
Normally Leave->Refresh menu entry would also trigger conky to be reloaded.
If you do it in another way, you may need to add a delay say of 0.5 sesonds before reload conky.
There is also a refresh/restart entry within the right-click menu on a desktop icon.
FWIW, most MX conky's provided need to be started whith having first changed to the conky directory.
So just calling conky -c fullpath-to-conky is not enough.

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 6:36 pm
by siamhie
fehlix wrote: Wed Jan 22, 2025 3:03 pm The purpose is to keep the conky transpararent, when fluxbox was detected,
otherwise you will get for most MX conky's provided a black background.
For enabled transparency, you need to reload or restart conky when restarting fluxbox, to avoid the fuzziness.
Normally Leave->Refresh menu entry would also trigger conky to be reloaded.
If you do it in another way, you may need to add a delay say of 0.5 sesonds before reload conky.
There is also a refresh/restart entry within the right-click menu on a desktop icon.
FWIW, most MX conky's provided need to be started whith having first changed to the conky directory.
So just calling conky -c fullpath-to-conky is not enough.

That's because compton is commented out in the startup file (new installs) even though compton gets installed.
Once compton is enabled at startup, conky's become transparent. That's the first thing I do with a new install.
I'm going to suggest that it gets enabled at startup in the mxfb-2025 development ideas thread.


Compton disabled
Image


Compton enabled
Image

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 7:40 pm
by AVLinux
siamhie wrote: Wed Jan 22, 2025 2:21 pm [
@AVLinux Check your allcombined.lua file

If line 19 reads this

Code: Select all

local bartab=loadstring("return" .. bartab)()
it should read this for the lua bars to show.

Code: Select all

local bartab=load("return" .. bartab)()
Hi, the Code is correct (the lua script is the one from your zip).

I thought it might be because I'm using 'Software' compositing instead of openGL but switching to openGL compositing makes no difference.. Anyway, It's all good, I suspect my wonky Video driver... it causes a lot of weirdness in other areas and I just have to wait until the Linux driver catches up with this card..

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 9:00 pm
by siamhie
AVLinux wrote: Wed Jan 22, 2025 7:40 pm
Hi, the Code is correct (the lua script is the one from your zip).

I thought it might be because I'm using 'Software' compositing instead of openGL but switching to openGL compositing makes no difference.. Anyway, It's all good, I suspect my wonky Video driver... it causes a lot of weirdness in other areas and I just have to wait until the Linux driver catches up with this card..
Which card are you using? Is it the 6850XT? I think that was the one you picked up awhile ago.

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 9:06 pm
by AVLinux
siamhie wrote: Wed Jan 22, 2025 9:00 pm
AVLinux wrote: Wed Jan 22, 2025 7:40 pm
Hi, the Code is correct (the lua script is the one from your zip).

I thought it might be because I'm using 'Software' compositing instead of openGL but switching to openGL compositing makes no difference.. Anyway, It's all good, I suspect my wonky Video driver... it causes a lot of weirdness in other areas and I just have to wait until the Linux driver catches up with this card..
Which card are you using? Is it the 6850XT? I think that was the one you picked up awhile ago.
Don't get me started... I 'upgraded' from the 6750XT to an nVidia 4080 Super mostly for benefits on the Windows side and hoping to get Davinci Resolve Video Editor to work on my Linux side.. Short version is it's been terrific on Windows and kinda ruined this machine on the Linux side.. I had no idea the Linux drivers would be such an issue..

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 9:21 pm
by siamhie
AVLinux wrote: Wed Jan 22, 2025 9:06 pm
siamhie wrote: Wed Jan 22, 2025 9:00 pm

Which card are you using? Is it the 6850XT? I think that was the one you picked up awhile ago.
Don't get me started... I 'upgraded' from the 6750XT to an nVidia 4080 Super mostly for benefits on the Windows side and hoping to get Davinci Resolve Video Editor to work on my Linux side.. Short version is it's been terrific on Windows and kinda ruined this machine on the Linux side.. I had no idea the Linux drivers would be such an issue..
Oh noes, you drifted over to the dark side. :spinning:
I've read so many stories regarding Nvidia cards and Linux. Good luck on that adventure. :crossfingers:


Just curious but does the lua bars show up loading the MX-ManyRoads cpufile? It has 5 lua bars.

Re: My modified version of MX-MyConky

Posted: Wed Jan 22, 2025 11:28 pm
by AVLinux
siamhie wrote: Wed Jan 22, 2025 9:21 pm
AVLinux wrote: Wed Jan 22, 2025 9:06 pm
siamhie wrote: Wed Jan 22, 2025 9:00 pm

Which card are you using? Is it the 6850XT? I think that was the one you picked up awhile ago.
Don't get me started... I 'upgraded' from the 6750XT to an nVidia 4080 Super mostly for benefits on the Windows side and hoping to get Davinci Resolve Video Editor to work on my Linux side.. Short version is it's been terrific on Windows and kinda ruined this machine on the Linux side.. I had no idea the Linux drivers would be such an issue..
Oh noes, you drifted over to the dark side. :spinning:
I've read so many stories regarding Nvidia cards and Linux. Good luck on that adventure. :crossfingers:


Just curious but does the lua bars show up loading the MX-ManyRoads cpufile? It has 5 lua bars.
TBH I don't have MX-Conky packages installed, it's too much! I just ship a couple of Conkii and a little simple Editor I made in AVL. If you have MX-ManyRoads on your system if you zip it up for me I'd be happy to try it.

Re: My modified version of MX-MyConky

Posted: Thu Jan 23, 2025 12:31 am
by siamhie
AVLinux wrote: Wed Jan 22, 2025 11:28 pm
TBH I don't have MX-Conky packages installed, it's too much! I just ship a couple of Conkii and a little simple Editor I made in AVL. If you have MX-ManyRoads on your system if you zip it up for me I'd be happy to try it.
@AVLinux I tried zipping just the ManyRoads conky but it exceeds the 150kb size limit for the forum.
You can download the mx-conky-data without having to install the whole package from the repo.
Just extract the MX-ManyRoads conky. Grab the zip file under the green code button.
https://github.com/MX-Linux/mx-conky-data/tree/master

Re: My modified version of MX-MyConky

Posted: Thu Jan 23, 2025 6:05 pm
by i_ri
hello siamhie
Looking for an "if" to make zero config live conky cpu cores.
Beyond two cores I cannot test.
Can machines with multi cores please try this
sample conky, searching for if core_count.

try this sample
Looking for a cpu "if" for automatic.
update: Change code in revised conky.text

There is a processor with 44 cores. wow.

Code: Select all

conky.config = {
total_run_times = 114,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'sticky,undecorated',
alignment = 'br',


gap_x = 95,
gap_y = 85,
minimum_width = 136,
default_color = 'ivory',
-- use_xft = true,
-- xftalpha = 1.0,
-- font = 'Liberation Serif',
double_buffer = true
};

conky.text = [[
$nodename  ${if_match "48"<="${exec grep cpu /proc/stat |sort -V -r |head -n 1|cut -du -f2|cut -d" " -f1}"}${cpugraph cpu48 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu47 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu46 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu45 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "44"<="${exec grep cpu /proc/stat |sort -V -r |head -n 1|cut -du -f2|cut -d" " -f1}"}${cpugraph cpu44 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu43 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu42 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu41 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu40 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu39 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu38 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu37 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "36"<="${exec grep cpu /proc/stat |sort -V -r |head -n 1|cut -du -f2|cut -d" " -f1}"}${cpugraph cpu36 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu35 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu34 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu33 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "32"<="${exec grep cpu /proc/stat |sort -V -r |head -n 1|cut -du -f2|cut -d" " -f1}"}${cpugraph cpu32 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu31 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu30 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu29 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu28 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu27 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu26 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu25 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "24"<="${exec grep cpu /proc/stat |sort -V -r |head -n 1|cut -du -f2|cut -d" " -f1}"}${cpugraph cpu24 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu23 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu22 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu21 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "20"<="${exec grep cpu /proc/stat |sort -V -r |head -n 1|cut -du -f2|cut -d" " -f1}"}${cpugraph cpu20 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu19 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "18"<="${exec grep cpu /proc/stat |sort -V -r |head -n 1|cut -du -f2|cut -d" " -f1}"}${cpugraph cpu18 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu17 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "16"<="${exec grep cpu /proc/stat |sort -V -r |head -n 1|cut -du -f2|cut -d" " -f1}"}${cpugraph cpu16 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu15 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "14"<="${exec grep cpu /proc/stat |sort -V -r |head -n 1|cut -du -f2|cut -d" " -f1}"}${cpugraph cpu14 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu13 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "12"<="${exec grep cpu /proc/stat |sort -V -r |head -n 1|cut -du -f2|cut -d" " -f1}"}${cpugraph cpu12 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu11 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "10"<="${exec grep cpu /proc/stat |sort -V -r |head -n 1|cut -du -f2|cut -d" " -f1}"}${cpugraph cpu10 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu9 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "8"<="${exec grep cpu /proc/stat |sort -V -r |head -n 1|cut -du -f2|cut -d" " -f1}"}${cpugraph cpu8 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu7 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "6"<="${exec nproc}"}${cpugraph cpu6 32,17 5599cc 5599cc 0.87 -l}${cpugraph cpu5 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "4"<="${exec nproc}"}${cpugraph cpu4 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "3"<="${exec nproc}"}${cpugraph cpu3 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match "2"<="${exec nproc}"}${cpugraph cpu2 32,17 5599cc 5599cc 0.87 -l}${endif} ${if_match 1!=${exec nproc}}${cpugraph cpu1 32,17 5599cc 5599cc 0.93 -l}${endif} ${cpugraph cpu0 30,170 5599cc 5599cc} 
]]


Re: My modified version of MX-MyConky

Posted: Thu Jan 23, 2025 10:38 pm
by siamhie
i_ri wrote: Thu Jan 23, 2025 6:05 pm hello siamhie
Looking for an "if" to make zero config live conky cpu cores.
Beyond two cores I cannot test.
@i_ri
If you're trying to use the conky I built for AVLinux (24 cores), it won't work unless you have a minimum of 12 cores.

Just wait until I have finished writing all the conky's. I plan on having multiple conky's based on core count.

Re: My modified version of MX-MyConky

Posted: Thu Jan 23, 2025 10:40 pm
by i_ri
Okay siamhie
This is Your 24 multicore trying a different if statement. see if it shows the right cores (?)
the zip is your multicore24.

file withdrawn; error found.

Re: My modified version of MX-MyConky

Posted: Thu Jan 23, 2025 10:45 pm
by i_ri
siamhie "If you're trying to use the conky I built for AVLinux (24 cores), "
no. it conspicuously not your conky 24. the code is in the post. it is a conky just for the testing of the if statement outcome validity.

Re: My modified version of MX-MyConky

Posted: Thu Jan 23, 2025 11:36 pm
by siamhie
i_ri wrote: Thu Jan 23, 2025 10:45 pm siamhie "If you're trying to use the conky I built for AVLinux (24 cores), "
no. it conspicuously not your conky 24. the code is in the post. it is a conky just for the testing of the if statement outcome validity.
I'm not using cpugraph, I'm using lua gradbar.

Re: My modified version of MX-MyConky

Posted: Fri Jan 24, 2025 1:52 am
by i_ri
${if_match "${cpu cpu3}"!="0"}${cpubar cpu3}${endif}

an example. once a cpuN is qualified to show the [lua cpu]bar.
when zero, then the bar frame disappears; seeing a bar frame border means not empty; vacant is zero not showing bar.

Re: My modified version of MX-MyConky

Posted: Fri Jan 24, 2025 4:58 am
by asqwerth
i_ri wrote: Thu Jan 23, 2025 10:45 pm siamhie "If you're trying to use the conky I built for AVLinux (24 cores), "
no. it conspicuously not your conky 24. the code is in the post. it is a conky just for the testing of the if statement outcome validity.
I posted a few times in this thread my attempts at a mega-combined conky trying to combine all of siamhie's conkies to address all the different numbers of cores. I was using the

$if_match [ ] = [no of cores] ...[then display the following] ... $endif

structure.

However, I think it was confusing people posting in this thread, and I only have 4-core machines. So I will start a new thread and let everyone focus on siamhie's efforts and trial conkies in this thread. When I do start my thread, I will refer to this thread since I relied on his different conkies to position my memperc bar for each different number of cores.


I haven't yet started my thread because I've encountered a weird issue which is that when I only had 2 scenarios addressed in the if_match sections, the bottom network section -- which should not be affected by the if_match sections -- worked fine. But when I squeezed in 7 to 8 scenarios, I got strange network results showing up [my ethernet connection was detected as wlan0. Reproduced on 2 machines]. When I compared the 2 conkies in meld just in case there were typos, the network section for both conkies were exactly the same, which is puzzling. I'm wondering if there is a maximum limit on the number of if_match scenarios I can include in a conky.

Anyway, you can look for my posts in this thread, but my mega conky here will have that network display problem. It also does not address what happens if your number of cores does not match any of the if_match sections I included.

Re: My modified version of MX-MyConky

Posted: Fri Jan 24, 2025 9:27 am
by siamhie
i_ri wrote: Thu Jan 23, 2025 10:40 pm Okay siamhie
This is Your 24 multicore trying a different if statement. see if it shows the right cores (?)
the zip is your multicore24.
I get this with your conky. A lot of info is missing and some of the code looks out of place. (there shouldn't be two temp values under CPU for instance)
quickshot_250124_062125.jpg

Re: My modified version of MX-MyConky  [Solved]

Posted: Fri Jan 24, 2025 9:44 am
by siamhie
After working on this for a week and finally getting the fuzziness sorted out due to a PEBKAC moment,
I have decided to release a multiple conky version and let the user decide which one to select.

Currently there are 8 conky's to choose from. 2, 4, 6, 8, 12, 16, 20 and 24 core CPU's. Included is a readme
to find out the CPU temp needed to display correctly as it is only looking in the hwmon0 directory and not
all CPU's land there. (mine shows up in hwmon3)

MX-MultiCore.tar.zst.zip


Here it is in action when I was creating a 6.13 shapshot.
MX-MultiCore.jpg

@asqwerth feel free to use this as a template for your mega-conky.

Re: My modified version of MX-MyConky

Posted: Fri Jan 24, 2025 10:51 am
by asqwerth
@siamhie

Thanks! I've downloaded your zip file. Hopefully I will have time to work on my conky a little bit more.

Re: My modified version of MX-MyConky

Posted: Fri Jan 24, 2025 11:22 am
by siamhie
asqwerth wrote: Fri Jan 24, 2025 10:51 am @siamhie

Thanks! I've downloaded your zip file. Hopefully I will have time to work on my conky a little bit more.
@asqwerth Looking forward to checking yours out. I'll keep an eye out for that thread.

Re: My modified version of MX-MyConky

Posted: Fri Jan 24, 2025 4:34 pm
by i_ri
siamhie thanks for the image. It got as far as ten cores. it did not get to sixteen.(probably a <sort> problem.)
For Your instance the lua path to allcombined needs adjusting. (my full path is stuck-in; change.)
Getting to ten cores is encouraging.

Re: My modified version of MX-MyConky

Posted: Fri Jan 24, 2025 6:26 pm
by siamhie
i_ri wrote: Fri Jan 24, 2025 4:34 pm siamhie thanks for the image. It got as far as ten cores. it did not get to sixteen.(probably a <sort> problem.)
For Your instance the lua path to allcombined needs adjusting. (my full path is stuck-in; change.)
Getting to ten cores is encouraging.
Didn't notice you moved the lua location. If you keep the allcombined.lua file in the same folder as the conky,
you only need to reference it like this in your conky.

Code: Select all

lua_load = 'allcombined.lua',

Re: My modified version of MX-MyConky

Posted: Sun Jan 26, 2025 12:27 am
by i_ri
cpu averaging siamhie
is there opportunity to change, try the value

cpu_avg_samples = 16
?
Might be good to not place that variable in the config, in order to have it use its default value. Use the variable only to throttle the cpu_avg_samples to a reduced number? is that how it could be automatic? what sets the default value?
That 24 core processor might be on lookout in a config for value of cpu_avg_samples = 2
This multicore config does not use a cpu0, but others will.

Re: My modified version of MX-MyConky

Posted: Sun Jan 26, 2025 1:22 am
by siamhie
i_ri wrote: Sun Jan 26, 2025 12:27 am cpu averaging siamhie
is there opportunity to change, try the value

cpu_avg_samples = 16
?
Might be good to not place that variable in the config, in order to have it use its default value. Use the variable only to throttle the cpu_avg_samples to a reduced number? is that how it could be automatic? what sets the default value?
That 24 core processor might be on lookout in a config for value of cpu_avg_samples = 2
You're more than welcome to edit it to your liking or just write your own.

This multicore config does not use a cpu0, but others will.
That is why I named the conky MultiCore.
http://ifxgroup.net/conky.htm#cpu

Re: My modified version of MX-MyConky

Posted: Sun Jan 26, 2025 3:14 am
by i_ri
hello siamhie
Will You please explain the benefit of using $eval in the Temperature display?

Re: My modified version of MX-MyConky

Posted: Sun Jan 26, 2025 5:03 pm
by siamhie
i_ri wrote: Sun Jan 26, 2025 3:14 am hello siamhie
Will You please explain the benefit of using $eval in the Temperature display?
You'll have to ask the author of MX-MyConky which is where I got the code from.

I modified the # CPU0 section. Everything else in my code is from them and they got it from MX-ManyRoads.

Re: My modified version of MX-MyConky

Posted: Thu Jan 30, 2025 7:41 pm
by i_ri
Compare (?) invite opinion.

Code: Select all

template0 = 'wlan0',
template1 = 'wlan1',
template2 = 'eth0',
template3 = 'eth1'

Code: Select all

template0 = [[wlan0]],
template1 = [[wlan1]],
template2 = [[eth0]],
template3 = [[eth1]]
template argument i have always used \N ,
now it says argN to use as \\N ,
then in the man templateN (arg1) (arg2) (arg3 ...) example shows use of N .

Re: My modified version of MX-MyConky

Posted: Thu Jan 30, 2025 7:45 pm
by i_ri
hello siamhie and everyone .conky
siamhie The screenshots of MultiCore showing sixteen cpu are spectacular.
AVLinux The AVLmxe name is long for eighty, it does not fit on this at 400.

Code: Select all

conky.config = {
total_run_times = 114,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'sticky,undecorated',
alignment = 'br',


gap_x = 95,
gap_y = 85,
minimum_width = 80,
default_color = 'ivory',
-- use_xft = true,
-- xftalpha = 1.0,
-- font = 'Liberation Serif',
double_buffer = true,

   template4 = [[${exec nproc}]],
   template5 = [[${if_match \1<=$template4}${cpugraph cpu\1}${endif}]]
};

conky.text = [[
${cpugraph cpu0}
${template5 1}
${template5 2}
${template5 3}
${template5 4}
${template5 5}
${template5 6}
${template5 7}
${template5 8}
${template5 9}
${template5 10}
${template5 11}
${template5 12}
${template5 13}
${template5 14}
${template5 15}
${template5 16}
${template5 17}
${template5 18}
${template5 19}
${template5 20}
${template5 21}
${template5 22}
${template5 23}
${template5 24}
${template5 25}
${template5 26}
${template5 27}
${template5 28}

]]

making a template for you to trial
on three window managers each had a different alignment for the lua bars. A workaround is included for that; sorry this alignment thing interferes with the core-number trial; if the alignment is not quite correct it can still test if the core number discovery is useful. I cannot see beyond four cores.

Found two reasons for that past sample to fail at ten cores. This new sample avoids those two reasons; let's see if this one works?

feedback of cpu name and the return number from the command <nproc>
and if nproc result matches your expectation of the reporting core number,
will be appreciated. nproc, credit S11.

in the zip file multicori including allcombined.lua is
Different spacing for lua bars in window managers
AVL-mxe Enlightenment lua spacing at 25.
xfce lua spacing at 27.
fluxbox lua spacing at 28.

This one is for AVL-mxe eflightenment.

Code: Select all

conky.config = {
-- My modified for Enlightenment 
-- 2025week5

alignment = 'top_right',
background = false,
border_width = 1,
default_color = 'ivory',
default_outline_color = 'ivory',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = false,
draw_outline = false,
draw_shades = false,
font = 'monofur:bold:size=12',
gap_x = 67,
gap_y = 51,
maximum_width = 400,
net_avg_samples = 1,
no_buffers = true,
own_window = true,
own_window_class = 'Conky',
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_colour = '000000',
own_window_hints = 'undecorated,sticky',
own_window_transparent = true,
own_window_type = 'normal',
update_interval = 1,
use_xft = true,
xftalpha = 1,

lua_load = 'allcombined.lua',

-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

   template4 = [[${exec nproc}]],
   template5 = [[${if_match \1<=$template4}${voffset 10}cpu\1 ${goto 180}${color red}${cpu cpu\1} ${color}%${lua gradbar {6, \2, "${cpu cpu\1}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${alignr}${freq \1} MHz${else}${voffset -18}${endif}]]
};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
${font}${color}${alignc}${exec cat /etc/mx-version}
${alignc}Kernel: ${kernel}

ram${alignr}$memmax
${color gold}$memperc ${color}% in use${alignr}${mem}
${lua gradbar {6, 86, "${memperc}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}

${alignc}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignr}cpu ${template4}
${alignc}0Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp2_input}${hwmon temp 2}°C${endif}    2Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp3_input}${hwmon temp 3}°C${endif}

${if_match "1"<="$template4"}cpu1 ${goto 180}${color red}${cpu cpu1} ${color}%${lua gradbar {6, 196, "${cpu cpu1}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${alignr}${freq 1} MHz${endif}
${template5 2 221}
${template5 3 246}
${template5 4 271}
${template5 5 296}
${template5 6 321}
${template5 7 346}
${template5 8 371}
${template5 9 396}
${template5 10 421}
${template5 11 446}
${template5 12 471}
${template5 13 496}
${template5 14 521}
${template5 15 546}
${template5 16 571}
${template5 17 596}
${template5 18 621}
${template5 20 646}
${template5 21 671}
${template5 22 696}
${template5 23 721}
${template5 24 746}
${template5 25 771}
${template5 26 796}
${template5 27 821}
${template5 28 846}


process${goto 140}cpu${goto 212}memory${alignr 28}pid
${font monofur:size=11}${offset 5}${top name 1} ${alignc}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignc}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignc}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignc}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignc}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}
${if_gw}
${font}net ${gw_iface}${alignr}    IP local ${addr ${gw_iface}}
${goto 14}${color}TX ${color E1E181}${upspeed ${gw_iface}}${goto 180}${color}RX ${color ffffd7}${downspeed ${gw_iface}}
${goto 14}${upspeedgraph ${gw_iface} 25,140 E1E181 E1E181}${goto 180}${downspeedgraph ${gw_iface} 25,140 ffffd7 ffffd7}
${voffset -12}${goto 14}${color}TX ${totalup ${gw_iface}}${goto 180}RX ${totaldown ${gw_iface}}
${endif}
$conky_version
conky
]]

This one for xfce and/else fluxbox.

Code: Select all

conky.config = {
-- My modified. xfce else fluxbox. 
-- 2025week5

alignment = 'top_right',
background = false,
border_width = 1,
default_color = 'ivory',
default_outline_color = 'ivory',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = false,
draw_outline = false,
draw_shades = false,
font = 'monofur:bold:size=12',
gap_x = 67,
gap_y = 51,
maximum_width = 400,
net_avg_samples = 1,
no_buffers = true,
own_window = true,
own_window_class = 'Conky',
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_colour = '000000',
own_window_hints = 'undecorated,sticky',
own_window_transparent = true,
own_window_type = 'normal',
update_interval = 1,
use_xft = true,
xftalpha = 1,

lua_load = 'allcombined.lua',

-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

   template4 = [[${exec nproc}]],
   template5 = [[${if_match \1<=$template4}${voffset 10}cpu\1 ${goto 180}${color red}${cpu cpu\1} ${color}%${lua gradbar {6, \2, "${cpu cpu\1}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${alignr}${freq \1} MHz${else}${voffset -18}${endif}]]
};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.1' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[

${font}${color}${alignc}${exec cat /etc/mx-version}
${alignc}Kernel: ${kernel}

ram${alignr}$memmax${if_running xfwm4}${lua gradbar {6, 108, "${memperc}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${else}${lua gradbar {6, 116, "${memperc}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${endif}
${color gold}$memperc ${color}% in use${alignr}${mem}


${alignc}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignr}cpu ${template4}
${alignc}0Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp2_input}${hwmon temp 2}°C${endif}    2Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp4_input}${hwmon temp 4}°C${endif}

${if_match "1"<="$template4"}cpu1 ${goto 180}${color red}${cpu cpu1} ${color}%${if_running xfwm4}${lua gradbar {6, 224, "${cpu cpu1}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${alignr}${freq 1} MHz${else}${lua gradbar {6, 238, "${cpu cpu1}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${alignr}${freq 1} MHz${endif}${endif}
${if_running xfwm4}${template5 2 251}${else}${template5 2 266}${endif}
${if_running xfwm4}${template5 3 278}${else}${template5 3 294}${endif}
${if_running xfwm4}${template5 4 305}${else}${template5 4 322}${endif}
${if_running xfwm4}${template5 5 332}${else}${template5 5 350}${endif}
${if_running xfwm4}${template5 6 359}${else}${template5 6 378}${endif}
${if_running xfwm4}${template5 7 386}${else}${template5 7 406}${endif}
${if_running xfwm4}${template5 8 413}${else}${template5 8 434}${endif}
${if_running xfwm4}${template5 9 440}${else}${template5 9 462}${endif}
${if_running xfwm4}${template5 10 467}${else}${template5 10 490}${endif}
${if_running xfwm4}${template5 11 494}${else}${template5 11 518}${endif}
${if_running xfwm4}${template5 12 521}${else}${template5 12 546}${endif}
${if_running xfwm4}${template5 13 548}${else}${template5 13 574}${endif}
${if_running xfwm4}${template5 14 575}${else}${template5 14 602}${endif}
${if_running xfwm4}${template5 15 602}${else}${template5 15 630}${endif}
${if_running xfwm4}${template5 16 629}${else}${template5 16 658}${endif}
${if_running xfwm4}${template5 17 656}${else}${template5 17 686}${endif}
${if_running xfwm4}${template5 18 683}${else}${template5 18 322}${endif}
${if_running xfwm4}${template5 19 710}${else}${template5 19 714}${endif}
${if_running xfwm4}${template5 20 737}${else}${template5 20 742}${endif}
${if_running xfwm4}${template5 21 764}${else}${template5 21 770}${endif}
${if_running xfwm4}${template5 22 791}${else}${template5 22 798}${endif}
${if_running xfwm4}${template5 23 818}${else}${template5 23 826}${endif}
${if_running xfwm4}${template5 24 845}${else}${template5 24 854}${endif}
${if_running xfwm4}${template5 25 872}${else}${template5 25 882}${endif}
${if_running xfwm4}${template5 26 899}${else}${template5 26 910}${endif}
${if_running xfwm4}${template5 27 926}${else}${template5 27 938}${endif}
${if_running xfwm4}${template5 28 953}${else}${template5 28 966}${endif}



process${goto 140}cpu${goto 212}memory${alignr 28}pid
${font monofur:size=11}${offset 5}${top name 1} ${alignc}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignc}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignc}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignc}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignc}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}
${if_gw}
${font}net ${gw_iface}${alignr}    IP local ${addr ${gw_iface}}
${goto 14}${color}TX ${color E1E181}${upspeed ${gw_iface}}${goto 180}${color}RX ${color ffffd7}${downspeed ${gw_iface}}
${goto 14}${upspeedgraph ${gw_iface} 25,140 E1E181 E1E181}${goto 180}${downspeedgraph ${gw_iface} 25,140 ffffd7 ffffd7}
${voffset -12}${goto 14}${color}TX ${totalup ${gw_iface}}${goto 180}RX ${totaldown ${gw_iface}}
${endif}
$conky_version
conky
]]

edit: add cores for CharlesV at 28.

Re: My modified version of MX-MyConky

Posted: Thu Jan 30, 2025 9:05 pm
by siamhie
i_ri wrote: Thu Jan 30, 2025 7:45 pm hello siamhie and everyone .conky
siamhie The screenshots of MultiCore showing sixteen cpu are spectacular.
AVLinux The AVLmxe name is long for eighty, it does not fit on this at 400.

making a template for you to trial
on three window managers each had a different alignment for the lua bars. A workaround is included for that; sorry this alignment thing interferes with the core-number trial; if the alignment is not quite correct it can still test if the core number discovery is useful. I cannot see beyond four cores.

Found two reasons for that past sample to fail at ten cores. This new sample avoids those two reasons; let's see if this one works?
My MultiCore conky comes with 8 different conky's. You select the one that corresponds with the number of cores your CPU has.

I have no problems with lua bar alignment between all three desktops.

fluxbox
Image

XFCE
Image

KDE
Image



If you want to share your conky, please start your own thread but don't tack it onto someone else's work.

Re: My modified version of MX-MyConky

Posted: Fri Jan 31, 2025 4:31 am
by i_ri
You added screenshots. Thank You siamhie.
Agree with this works in xfce, fluxbox, kde, mate the bars look a tick lower,
but enlightenment needs special handling.
This sample includes additional data for MultiCore extending display in AVLinux Enlightenment MXedition too.

Code: Select all

conky.config = {
-- siamhie
-- MX-MultiCore
-- January 24th 2025

alignment = 'top_right',
background = false,
border_width = 1,
default_color = 'fffff7',
default_outline_color = 'fffff7',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'Noto Sans:size=11',
gap_x = 71,
gap_y = 7,
maximum_width = 350,
net_avg_samples = 1,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_class = 'Conky',
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_colour = '000000',
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
own_window_transparent = true,
own_window_type = 'desktop',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1,
uppercase = false,
use_spacer = 'right',
use_xft = true,


lua_load = 'allcombined.lua',

-- if_up_strictness link:  up | link | address
   if_up_strictness = 'address',

-- network templates
   template0 = [[wlan0]],
   template1 = [[wlan1]],
   template2 = [[eth0]],
   template3 = [[eth1]],
   template4 = [[${exec nproc}]],
   template5 = [[${if_match \1<=$template4}${voffset 10}cpu\1 ${goto 180}${color red}${cpu cpu\1} ${color}%${lua gradbar {6, \2, "${cpu cpu\1}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${alignr}${freq \1}  MHz${else}${voffset -20}${endif}]]
};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.4' and math.floor(return_code/256) == 0 or
   _VERSION ~= 'Lua 5.4' and return_code then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
#-----------------------System-----------------------------------
${offset 5}${font Good Times:size=12}${color Tan1}SYSTEM ${color}${hr 2}${font}
${alignc}${font}${color}${offset 6}${exec cat /etc/mx-version}
${alignc}Kernel: ${kernel}
${alignc}${time %A  %B  %d  %Y}    ${time %H:%M:%S}

#-----------------------Memory Load-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}MEMORY ${color}${hr 2}${font}
RAM Available${alignr}$memmax ${if_running enlightenment}${lua gradbar {4, 164, "${memperc}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${else}${lua gradbar {4, 173, "${memperc}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${endif}
$mem  in use${goto 180}${color Tan1}${memperc} ${color}%

#-----------------------CPU-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}CPU ${color}${hr 2}${font}
${alignc}${font}${color}${execi 86400 grep -m1 -oP '^model name\s+:\s\K(.*)' /proc/cpuinfo}
${alignc}${color}Temperature: ${if_existing /sys/class/hwmon/hwmon0/temp1_input}${eval ${hwmon 0 temp 1}}${endif}°C
${alignc}CPU Core Loads
cpu1 ${goto 180}${color red}${cpu cpu1} ${color}%${if_running enlightenment}${lua gradbar {4, 283, "${cpu cpu1}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 280}${color}${freq 1} ${goto 324}MHz${else}${lua gradbar {4, 299, "${cpu cpu1}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${goto 280}${color}${freq 1} ${goto 324}MHz${endif}
${if_running enlightenment}${template5 2 312}${else}${template5 2 330}${endif}
${if_running enlightenment}${template5 3 341}${else}${template5 3 361}${endif}
${if_running enlightenment}${template5 4 370}${else}${template5 4 392}${endif}
${if_running enlightenment}${template5 5 399}${else}${template5 5 423}${endif}
${if_running enlightenment}${template5 6 428}${else}${template5 6 454}${endif}
${if_running enlightenment}${template5 7 457}${else}${template5 7 485}${endif}
${if_running enlightenment}${template5 8 486}${else}${template5 8 516}${endif}
${if_running enlightenment}${template5 9 515}${else}${template5 9 547}${endif}
${if_running enlightenment}${template5 10 544}${else}${template5 10 578}${endif}
${if_running enlightenment}${template5 11 573}${else}${template5 11 609}${endif}
${if_running enlightenment}${template5 12 602}${else}${template5 12 640}${endif}
${if_running enlightenment}${template5 13 631}${else}${template5 13 671}${endif}
${if_running enlightenment}${template5 14 660}${else}${template5 14 702}${endif}
${if_running enlightenment}${template5 15 689}${else}${template5 15 733}${endif}
${if_running enlightenment}${template5 16 718}${else}${template5 16 764}${endif}
${if_running enlightenment}${template5 17 747}${else}${template5 17 795}${endif}
${if_running enlightenment}${template5 18 776}${else}${template5 18 826}${endif}
${if_running enlightenment}${template5 19 805}${else}${template5 19 857}${endif}
${if_running enlightenment}${template5 20 834}${else}${template5 20 888}${endif}
${if_running enlightenment}${template5 21 863}${else}${template5 21 919}${endif}
${if_running enlightenment}${template5 22 892}${else}${template5 22 950}${endif}
${if_running enlightenment}${template5 23 921}${else}${template5 23 981}${endif}
${if_running enlightenment}${template5 24 950}${else}${template5 24 1012}${endif}
${if_running enlightenment}${template5 25 979}${else}${template5 25 1043}${endif}
${if_running enlightenment}${template5 26 1008}${else}${template5 26 1074}${endif}
${if_running enlightenment}${template5 27 1037}${else}${template5 27 1105}${endif}
${if_running enlightenment}${template5 28 1066}${else}${template5 28 1136}${endif}

#-----------------------Processes----------------------
${offset 10}${font Good Times:size=12}${color Tan1}PROCESSES ${color}${hr 2}${font}
#${running_processes} ${running_threads} ${processes}
${hr 1}${font}
${color lightgrey}${font Futurist Fixed-width:size=10:bold}${color7}${offset 5}PROCESS          CPU${alignr}   MEMORY         ${offset -5}PID
${voffset -10}${color0}${hr 1}${font}${color}${font monofur:size=11}
${voffset -3}#
${offset 5}${top name 1} ${alignr}${top cpu 1}%      ${top mem_res 1}     ${alignr}${offset -5}${top pid 1}
${offset 5}${top name 2} ${alignr}${top cpu 2}%      ${top mem_res 2}     ${alignr}${offset -5}${top pid 2}
${offset 5}${top name 3} ${alignr}${top cpu 3}%      ${top mem_res 3}     ${alignr}${offset -5}${top pid 3}
${offset 5}${top name 4} ${alignr}${top cpu 4}%      ${top mem_res 4}     ${alignr}${offset -5}${top pid 4}
${offset 5}${top name 5} ${alignr}${top cpu 5}%      ${top mem_res 5}     ${alignr}${offset -5}${top pid 5}

#-----------------------Network-----------------------
${offset 10}${font Good Times:size=12}${color Tan1}NETWORK ${color}${hr 2}${font}
${voffset -1}
${if_up enp1s0}\
${goto 10}Ethernet: ${color3} enp1s0${color}${goto 160}     IP local: ${color3}${addr enp1s0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed enp1s0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup enp1s0}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown enp1s0}
${goto 14}${upspeedgraph enp1s0  25,140 000000 FFBF00}${goto 180}${downspeedgraph enp1s0 25,140 000000 00FF00}
${voffset -1}\
${endif}
${if_up $template0}\
${goto 10}Wireless: ${color3} $template0${color}${goto 160}     IP local: ${color3}${addr $template0}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template0}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template0}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template0}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template0}
${goto 14}${upspeedgraph $template0  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template0 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template1}\
${goto 10}Wireless: ${color3} $template1${color}${goto 160}     IP local: ${color3}${addr $template1}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template1}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template1}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template1}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template1}
${goto 14}${upspeedgraph $template1  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template1 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template2}\
${goto 10}Ethernet: ${color3} $template2${color}${goto 160}     IP local: ${color3}${addr $template2}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template2}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template2}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template2}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template2}
${goto 14}${upspeedgraph $template2  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template2 25,140 000000 00FF00}
${voffset -1}\
${endif}\
${if_up $template3}\
${goto 10}Ethernet: ${color3} $template3${color}${goto 160}     IP local: ${color3}${addr $template3}
${hr 1}
${voffset -1}
${goto 14}${color2}Up: ${color3}${upspeed $template3}${color1}${alignr}${goto 180}${color2}Down:${color1} ${color3}${downspeed $template3}${color0}
${goto 14}${color2}Sent:${color1} ${color2}${totalup $template3}${color1}${alignr}${goto 180}${color2}Received:${color}${color2}${totaldown $template3}
${goto 14}${upspeedgraph $template3  25,140 000000 FFBF00}${goto 180}${downspeedgraph $template3 25,140 000000 00FF00}
${voffset -1}\
${endif}
$conky_version
conky
]]

edit: add cores for CharlesV at 28.

Re: My modified version of MX-MyConky

Posted: Fri Jan 31, 2025 10:31 am
by siamhie
i_ri wrote: Fri Jan 31, 2025 4:31 am You added screenshots. Thank You siamhie.
Agree with this works in xfce, fluxbox, kde, mate the bars look a tick lower,
but enlightenment needs special handling.
This sample includes additional data for MultiCore extending display in AVLinux Enlightenment MXedition too.
I only have three desktops installed (fluxbox, XFCE and KDE) so if there's an issue with the conky on other desktops, you will have to fix it yourself.

I see you have edited the conky.conf and conky.text section beyond what I wrote and I will will not be editing my conky (that took a week to write)
just to test new code.


The zip file I submitted in post #97 is the final version. No exceptions.

Re: My modified version of MX-MyConky

Posted: Sat Feb 01, 2025 1:15 am
by i_ri
chance indulge different machine for an MX minute:
Intel Core i5-12400 Alder Lake (MHz)min/max: 800/5600
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12

conky Lit twelve cores. good.

Re: My modified version of MX-MyConky

Posted: Sat Feb 01, 2025 11:18 am
by siamhie
i_ri wrote: Sat Feb 01, 2025 1:15 am chance indulge different machine for an MX minute:
Intel Core i5-12400 Alder Lake (MHz)min/max: 800/5600
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12

conky Lit twelve cores. good.
That's because conky is reading the thread count not the core count. http://ifxgroup.net/conky.htm#cpu

Re: My modified version of MX-MyConky

Posted: Sat Feb 01, 2025 11:34 am
by siamhie
@i_ri
Please stop posting your code to my thread. Start your own thread.
I don't want other's thinking that what you post is coming from me.
Could you also name it something other than multicori? I have named mine MX-MultiCore.


These are the changes from my conky.

Code: Select all

The conky.conf section:

-- siamhie <-------Please remove from your code
-- MX-MultiCore <-------Please remove from your code
-- January 24th 2025 <-------Please remove from your code

cpu_avg_samples = 1, < you removed this resulting in a slower response time with the lua bars.

I selected 1 second for the quickest reponse time but by removing that variable, the response time looks to be around 4 seconds for the lua bars. 
The default is 2 seconds if you are using the ${cpubar} variable in the conky.text section but lua bars respond differently. 
(Tested the timing by creating a snapshot and eyeballing the response time between my conky and changing the sample rate every time to match up to yours which is missing)



default_color = 'white',
default_outline_color = 'white',

to

default_color = 'fffff7',
default_outline_color = 'fffff7',


gap_x = 5,
gap_y = 5,

to

gap_x = 71,
gap_y = 7,


This part makes no sense to me. 
What's with the double square brackets? 
(I don't recall seeing that in Casey's Conky Reference) http://ifxgroup.net/conky.htm

-- network templates
   template0 = 'wlan0',
   template1 = 'wlan1',
   template2 = 'eth0',
   template3 = 'eth1',
   
to

-- network templates
   template0 = [[wlan0]],
   template1 = [[wlan1]],
   template2 = [[eth0]],
   template3 = [[eth1]],
   template4 = [[${exec nproc}]],
   template5 = [[${if_match \1<=$template4}${voffset 10}cpu\1 ${goto 180}${color red}${cpu cpu\1} ${color}%${lua gradbar {6, \2, "${cpu cpu\1}", 100, 125, 2, 10, 1, 0xFFFFFF, 0.25, 0x00FF00, 1, 0xFFFF00, 1, 0xFF0000, 1}}${alignr}${freq \1}  MHz${else}${voffset -20}${endif}]]

Code: Select all

The conky.text section:

You have moved the "Memory Load" section right under "System" instead of where I have it under "CPU".
You also have added code in there that is not in mine. "${if_running enlightenment}".

The "CPU" section is a complete rewrite over mine. This is not my code.

${if_running enlightenment}${template5 2 312}${else}${template5 2 330}${endif}
${if_running enlightenment}${template5 3 341}${else}${template5 3 361}${endif}
${if_running enlightenment}${template5 4 370}${else}${template5 4 392}${endif}
${if_running enlightenment}${template5 5 399}${else}${template5 5 423}${endif}
${if_running enlightenment}${template5 6 428}${else}${template5 6 454}${endif}
${if_running enlightenment}${template5 7 457}${else}${template5 7 485}${endif}
${if_running enlightenment}${template5 8 486}${else}${template5 8 516}${endif}
${if_running enlightenment}${template5 9 515}${else}${template5 9 547}${endif}
${if_running enlightenment}${template5 10 544}${else}${template5 10 578}${endif}
${if_running enlightenment}${template5 11 573}${else}${template5 11 609}${endif}
${if_running enlightenment}${template5 12 602}${else}${template5 12 640}${endif}
${if_running enlightenment}${template5 13 631}${else}${template5 13 671}${endif}
${if_running enlightenment}${template5 14 660}${else}${template5 14 702}${endif}
${if_running enlightenment}${template5 15 689}${else}${template5 15 733}${endif}
${if_running enlightenment}${template5 16 718}${else}${template5 16 764}${endif}
${if_running enlightenment}${template5 17 747}${else}${template5 17 795}${endif}
${if_running enlightenment}${template5 18 776}${else}${template5 18 826}${endif}
${if_running enlightenment}${template5 19 805}${else}${template5 19 857}${endif}
${if_running enlightenment}${template5 20 834}${else}${template5 20 888}${endif}
${if_running enlightenment}${template5 21 863}${else}${template5 21 919}${endif}
${if_running enlightenment}${template5 22 892}${else}${template5 22 950}${endif}
${if_running enlightenment}${template5 23 921}${else}${template5 23 981}${endif}
${if_running enlightenment}${template5 24 950}${else}${template5 24 1012}${endif}

The "Network" section is changed.

You have two Ethernet references. Ethernet: ${color3} enp1s0 and Ethernet: ${color3} $template2


You end the text section with it printing out the conky version.

Re: My modified version of MX-MyConky

Posted: Sat Feb 01, 2025 9:28 pm
by i_ri
Hello siamhie and CharlesV
extended to 28core using siamhie' calculation
Unverified positions, fun wondering if the mem luabar is close to the correct placement.

Re: My modified version of MX-MyConky

Posted: Sat Feb 01, 2025 9:51 pm
by siamhie
i_ri wrote: Sat Feb 01, 2025 9:28 pm Hello siamhie and CharlesV
extended to 28core using siamhie' calculation
Unverified positions, fun wondering if the mem luabar is close to the correct placement.
@i_ri I have now asked you twice to stop posting your code to my thread and start your own topic.

I am now locking this thread and MY conky can be found in the first post on page 1.