This is what my Conky looks like:
I would like to add this to it:
with the section name Hardware.
What syntax do I need?
This is what my Conky looks like:
I would like to add this to it:
with the section name Hardware.
What syntax do I need?
Take a look here:
This one has some code in it you asked for:
Thanks, Iāll see what I can find. I might come back.
I managed to add the āhomeā part:
and this is what I have for the 2 line:
${color1}${font ConkySymbols:size=16}k${font} ${voffset -10} StorageĀ» $hr${color}
${color1}${goto 35}root : ${color}${fs_used /}/${fs_size /} ${alignr}${fs_used_perc /}% ${fs_bar 4,100 /}
${color1}${goto 35}home: ${color }${fs_used /home}/${fs_size /} ${alignr}${fs_free_perc /}% ${fs_bar 4,100 /}
${goto 35}
I cannot get the white bit for the home bar to increase so 68% is white.
I have not found any syntax to display the model CPU and model GPU, nor the screen resolution.
hi the line :
${color1}${goto 35}home: ${color }${fs_used /home}/${fs_size /} ${alignr}${fs_free_perc /}% ${fs_bar 4,100 /}
neesd to look like this
${color1}${goto 35}home: ${color }${fs_used /home}/${fs_size /home} ${alignr}${fs_free_perc /home}% ${fs_bar 4,100 /home}
for the information about your CPU and GPU you can use inxi for it.
Thanks for your feedback.
I had played around with the āhomeā word before and it did not work. I just tried again, hoping I might have done something wrong, but even copy/pasting your line does not make a difference.
Regarding inxi, how would I put that in Lua syntax, and where is the conky file?
ok it fails because your root and home are on the same partition. I dont use Lua script in my Conkys and for inxi it simple use man inx
i and create the commands you need and put dem in your conky,
Hereās something for Processors (CPU w. 4) cores:
${color5}${font Roboto:size=10}P R O C E S S O R S ${hr 2}${font}${color}
${color2}CPU Freq:${color} $alignr${freq}MHz
${color2}CPU Temp:${color} $alignr ${acpitemp}Ā°C
${color2}CPU Usage: ${color} $alignr ${cpu}%
${color}${cpubar cpu0 15,600}
${color2}CPU Core 1:${color} ${alignr}${offset -10}${cpu cpu1}% ${alignr}${cpubar cpu1}
${color2}CPU Core 2:${color} ${alignr}${offset -10}${cpu cpu2}% ${alignr}${cpubar cpu2}
${color2}CPU Core 3:${color} ${alignr}${offset -10}${cpu cpu3}% ${alignr}${cpubar cpu3}
${color2}CPU Core 4:${color} ${alignr}${offset -10}${cpu cpu4}% ${alignr}${cpubar cpu4}
Hereās an example for Memory:
${color5}${font Roboto:size=10}M E M O R Y ${hr 2}${font}${color}
${color2}Usage ${color3}$memperc% ${goto 300}${color2}Total ${color3}$memmax
${color2}Used ${color3}$mem ${goto 300}${color2}Free ${color3}$memfree
${color}${membar 15,600}
All cut out from the script I posted further above.
the following line is for the resolution
${exec xdpyinfo | awk '/dimensions/ {print $2}'}
Regarding the CPU and GPU, I just want to have the type of each, as ahown in my screenshot. So for CPU it is: i7-8750 etc, for GPU: Intel CoffeeLake etc.
Thanks . I added the line, plus some amendments so it fits in Conkyās format.
All the CPU things you asked for are in the posts I gave you!!!
Hey, this is not a convenience shop! If you keep bugging me like that I will evade your posts in the future and deliberately not answer you again!
Help-Vampires are always way too lazy to start tinkering themselvesā¦
I apologize for bugging you. My last comment was not meant to be addressed to you. FYI, when I ask for help it is not because I am too lazy to tinker myself, as I showed with what I came up with in a post higher up.
I am not familiar with conkies nor with Lua nor with any such scripting for that matter. So my questions are sincere.
I do take offence at being called a āHelp-Vampireā, so in order not to let this get out of hand, either now or in the future, I suggest that you evade my posts and not answer them.
Last but not least, I do want to thank you for the help you provided me with here and with other issues. Goodbye.
To set this straight: I wasnāt answering your ālast commentā, but your last anser to me:
I you canāt strip the ${color}- and ${font}-tags from what I posted to help you out, then I really cannot be of much help to you, man.
Did I call you that? - I do not think so.
You have not set anything straight. The info you provided was not what I asked for, unlike @pycrk. Their line of code had to be amended to make it work and I managed to do so myself - so much for your accusation of laziness and Help-Vampire (yes, you did call me that). In any case, you had no reason for an aggressive post like that, I never lacked respect to you, always expressed my gratitude for help you provided in the past.
Now, to make things absolutely clear: I will not engage in a back and forth about this topic, so this is the last I have to say to you about it.
On my last post I recommended inxi, because it is installed per default in EOS. But a conky schould be made to work on alot of Linux Distros as possible.
Here are 2 examples how i would do it.
CPU name
cat /proc/cpuinfo | grep "model name" | tail -n1 | cut -c 18-31
on my Terminal the result is: Ryzen 7 2700X
GPU name:
glxinfo | grep "OpenGL renderer string:" | cut -c 32-50
on my Terminal the result is: GeForce GTX 1060 6G
The cat command is one of the core-utils and is available on every Linux distro
glxinfo is included in the Nvidia GPU Driver Package and should work for nvidia gpus with the proprietary driver. I dont Game on my Mashine, the reason why i have this gpu is BOINC. I have used it in the beginning and i was part of SETI searching for aliens
If you use an AMD GPU or Intel then glxinfo might not work for you. I am not sure about this. Correct me if its wrong ā¦
I dont have any intention to angry or offend people in this Forum Iam actually a calm and tolerant guy. I have some trouble in real live and may have sounded a litte bit angry, my apologies for that
Thanks for the suggestions. Am I right when I say those 2 lines of code are for the terminal? In any case, when I use them in the terminal they donāt give me the results you get. That is not a problem as such because I have Neofetch running in my terminal, which gives me the CPU and GPU data as per my original screenshot in the OP.
The neofetch syntax is simpler compared to the conky syntax: there is only this
prin "PC" "Hardware Information"
info "$(color 16)ā$(color 6) CPU" cpu
info "$(color 16)ā$(color 6) Memory" memory
info "$(color 16)ā$(color 6) GPU" gpu
info "$(color 16)ā$(color 6) Resolution" resolution
# info "$(color 16)ā$(color 6) GPU Driver" gpu_driver
The Conky syntax is different; I was able to work out this:
${color1}${font ConkySymbols:size=16}x${font} ${voffset -10}HardwareĀ» $hr${color}
${color1}${goto 35}Resolution: ${color}${exec xdpyinfo | awk '/dimensions/ {print $2}'}
but I have not found any conkies with the CPU and GPU hardware data (as per my OP) that would allow me to extract and amend it for my Conky.
the command cut -c 18-31
cuts from a text from the 18th letter to the 31st letter and displays it to you. you have to adapt it, because you have different values.
without the cut command it gives me out
cat /proc/cpuinfo | grep "model name" | tail -n1
model name : AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
if I now want to display the 1st to 10th letter with cut.
cat /proc/cpuinfo | grep "model name" | tail -n1 | cut -c 1-10
model name
For example, if I want to display āAMD Ryzenā, then i use 14-22.
cat /proc/cpuinfo | grep "model name" | tail -n1 | cut -c 14-22
AMD Ryzen
to use terminal commands in conky files, use exec.
${exec "put your command here"}
Thanks for explaining the cut bit, thatās good to know. I used it creatively to get it to display the CPU info, and added some syntax for the color.
I got it perfectly for the CPU, but, as you can see, for the GPU it only shows part of the model name, it misses the CoffeeLake bit. I tried using the same command as for the CPU, but replaced the cpuinfo bit with gpuinfo, but that does not work.