My modified version of MX-MyConky  [Solved]

Message
Author
User avatar
siamhie
Global Moderator
Posts: 3337
Joined: Fri Aug 20, 2021 5:45 pm

Re: My modified version of MX-MyConky

#101 Post 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',
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
i_ri
Posts: 1098
Joined: Tue Jun 30, 2015 12:26 am

Re: My modified version of MX-MyConky

#102 Post 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.

User avatar
siamhie
Global Moderator
Posts: 3337
Joined: Fri Aug 20, 2021 5:45 pm

Re: My modified version of MX-MyConky

#103 Post 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
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
i_ri
Posts: 1098
Joined: Tue Jun 30, 2015 12:26 am

Re: My modified version of MX-MyConky

#104 Post by i_ri »

hello siamhie
Will You please explain the benefit of using $eval in the Temperature display?

User avatar
siamhie
Global Moderator
Posts: 3337
Joined: Fri Aug 20, 2021 5:45 pm

Re: My modified version of MX-MyConky

#105 Post 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.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
i_ri
Posts: 1098
Joined: Tue Jun 30, 2015 12:26 am

Re: My modified version of MX-MyConky

#106 Post 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 .

User avatar
i_ri
Posts: 1098
Joined: Tue Jun 30, 2015 12:26 am

Re: My modified version of MX-MyConky

#107 Post 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.
You do not have the required permissions to view the files attached to this post.
Last edited by i_ri on Sat Feb 01, 2025 12:57 pm, edited 3 times in total.

User avatar
siamhie
Global Moderator
Posts: 3337
Joined: Fri Aug 20, 2021 5:45 pm

Re: My modified version of MX-MyConky

#108 Post 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.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
i_ri
Posts: 1098
Joined: Tue Jun 30, 2015 12:26 am

Re: My modified version of MX-MyConky

#109 Post 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.
Last edited by i_ri on Sat Feb 01, 2025 12:57 pm, edited 1 time in total.

User avatar
siamhie
Global Moderator
Posts: 3337
Joined: Fri Aug 20, 2021 5:45 pm

Re: My modified version of MX-MyConky

#110 Post 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.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

Locked

Return to “Community Submissions”