My modified version of MX-MyConky  [Solved]

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

Re: My modified version of MX-MyConky

#71 Post by i_ri »

hello siamhie
multi.
Commented out the cpuN that WallE does not read. WallE has four.
is conky (siamhie24)-MultiCore (fromzip)

Image

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

Re: My modified version of MX-MyConky

#72 Post 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.
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
siamhie
Global Moderator
Posts: 3344
Joined: Fri Aug 20, 2021 5:45 pm

Re: My modified version of MX-MyConky

#73 Post 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
You do not have the required permissions to view the files attached to this post.
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
CharlesV
Global Moderator
Posts: 7333
Joined: Sun Jul 07, 2019 5:11 pm

Re: My modified version of MX-MyConky

#74 Post by CharlesV »

@siamhie VERY good looking! Good job!
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
AVLinux
Posts: 2998
Joined: Wed Jul 15, 2020 1:15 am

Re: My modified version of MX-MyConky

#75 Post 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
You do not have the required permissions to view the files attached to this post.

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

Re: My modified version of MX-MyConky

#76 Post 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. 😁
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
siamhie
Global Moderator
Posts: 3344
Joined: Fri Aug 20, 2021 5:45 pm

Re: My modified version of MX-MyConky

#77 Post 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).
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
siamhie
Global Moderator
Posts: 3344
Joined: Fri Aug 20, 2021 5:45 pm

Re: My modified version of MX-MyConky

#78 Post 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}
]];
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
AVLinux
Posts: 2998
Joined: Wed Jul 15, 2020 1:15 am

Re: My modified version of MX-MyConky

#79 Post by AVLinux »

@siamhie

Man, bummer!


Image

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

Re: My modified version of MX-MyConky

#80 Post 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)()
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”