My modified version of MX-MyConky  [Solved]

Message
Author
User avatar
fehlix
Developer
Posts: 12700
Joined: Wed Apr 11, 2018 5:09 pm

Re: My modified version of MX-MyConky

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

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

Re: My modified version of MX-MyConky

#82 Post 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
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

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

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

Re: My modified version of MX-MyConky

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

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

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

Re: My modified version of MX-MyConky

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

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

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

Re: My modified version of MX-MyConky

#88 Post 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
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

#89 Post 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} 
]]

Last edited by i_ri on Sat Jan 25, 2025 2:16 am, edited 1 time in total.

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

Re: My modified version of MX-MyConky

#90 Post 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.
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”