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.