Modified MX-BBQdigital Conky

Post Reply
Message
Author
User avatar
JayM
Qualified MX Guide
Posts: 6793
Joined: Tue Jan 08, 2019 4:47 am

Modified MX-BBQdigital Conky

#1 Post by JayM »

I use the BBQdigital Conky to provide detailed system status info at a glance and I've tweaked it a bit: added a second hard drive to STORAGE (FREE / TOTAL), added CPU and drive temperatures to STATUS, changed the network portion to show input/output of my Ethernet card as I don't have wifi on this computer, and removed the line that displays my internal LAN's IP address so it won't show up in future screen captures plus I already know what it is. Here it is in case anyone would like to try it. It can also serve as an example of how to add temperature information to other Conkys (or should it be Conkies for the plural?)

Code: Select all

#alignment tl
alignment top_right
background no
border_inner_margin 0
border_width 0
default_color FFFFFF
default_outline_color black
default_shade_color black
double_buffer yes
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
gap_x 10
gap_y 20
minimum_size 250 0
no_buffers yes
override_utf8_locale yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window yes
#own_window_type desktop
pad_percents 2
short_units yes
stippled_borders 0
top_name_width 5
update_interval 1
uppercase yes
use_spacer right
use_xft yes
xftalpha 1.0 #0.2
xftfont Terminus:bold:size=7

# Color scheme #
default_color ffffff

color1 FFFFFF
color2 FF9616
color3 1CE3BB
color4 FF0000
###########################


own_window_argb_value 0
own_window_argb_visual no
own_window_colour 000000
TEXT
${goto 12}+----${color2}${nodename}${color}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}+-- OS${goto 125}${sysname}
${goto 15}|${goto 38}+-- Kernel ${goto 125}${kernel}
${goto 15}|${goto 38}+-- Machine${goto 125}${machine}
${goto 15}|
${goto 12}+----${color3}Memory${color}
${goto 15}|${goto 38}+-- Total${goto 125}${memmax}
${goto 15}|${goto 38}+-- ${color4}In Use${color}${goto 125}${mem} (${memperc}%)
${goto 15}|${goto 38}+-- Free${goto 125}${memfree}
${goto 15}|${goto 38}+-- Up to${goto 125}${memeasyfree} freed easily
${goto 15}|${goto 38}+-- Swap
${goto 15}|${goto 60}+-- Total${goto 125}${swapmax}
${goto 15}|${goto 60}+-- Used${goto 125}${swap} - ${swapperc}%
${goto 15}|${goto 60}+-- Free${goto 125}${swapfree}
${goto 15}|
${goto 12}+----${color3}Status${color}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}+-- CPU${goto 125}${cpu cpu0}% - ${freq_g}GHz - ${hwmon 0 temp 1}°C
${goto 15}|${goto 38}+-- Ram${goto 125}${memperc}%
${goto 15}|${goto 38}+-- Load Avg${goto 125}${loadavg}
${goto 15}|${goto 38}+-- System Disk${goto 125}${fs_used_perc /}% used - Temp ${exec /usr/sbin/hddtemp /dev/sdb | awk '{print $4}'}
${goto 15}|${goto 38}+-- Disk IO ${goto 125}${diskio}
${goto 15}|${goto 60}+-- Read${goto 125}${diskio_read}
${goto 15}|${goto 60}+-- Write${goto 125}${diskio_write}
${goto 15}|
${goto 12}+----${color3}Storage (Free / Total)${color}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}+-- 500GB (MX)${goto 125}${fs_free /} / ${fs_size /}
${goto 15}|${goto 38}+-- 1000GB (BU)${goto 125}${fs_free /path/to/second/drive's/mount/partition/} / ${fs_size /path/to/second/drive's/mount/partition/}
${goto 15}|
${goto 12}+----${color3}Processes${color}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}+-- Total${goto 125}${processes}
${goto 15}|${goto 38}+-- Running${goto 125}${running_processes}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}+-- CPU
${goto 15}|${goto 40}|${goto 60}+-- ${top name 1}${goto 125}${top cpu 1}${top mem 1}
${goto 15}|${goto 40}|${goto 60}+-- ${top name 2}${goto 125}${top cpu 2}${top mem 2}
${goto 15}|${goto 40}|${goto 60}+-- ${top name 3}${goto 125}${top cpu 3}${top mem 3}
${goto 15}|${goto 40}|
${goto 15}|${goto 38}+-- MEM
${goto 15}|${goto 60}+-- ${top_mem name 1}${goto 125}${top_mem cpu 1}${top_mem mem 1}
${goto 15}|${goto 60}+-- ${top_mem name 2}${goto 125}${top_mem cpu 2}${top_mem mem 2}
${goto 15}|${goto 60}+-- ${top_mem name 3}${goto 125}${top_mem cpu 3}${top_mem mem 3}
${goto 15}|
${goto 12}+----${color3}Network${color}
${goto 15}|${goto 32}|
${goto 15}|${goto 32}+-- Up
${goto 15}|${goto 32}|${goto 60}+-- Speed${goto 125}${upspeedf eth0}KiB
${goto 15}|${goto 32}|${goto 60}+-- Total${goto 125}${totalup eth0}KiB
${goto 15}|${goto 32}|
${goto 15}|${goto 32}+-- Down
${goto 15}|${goto 32}|${goto 60}+-- Speed${goto 125}${downspeedf eth0}KiB
${goto 15}|${goto 32}|${goto 60}+-- Total${goto 125}${totaldown eth0}KiB
  • Change "/path/to/second/drive's/mount/partition" in line 77 to the actual mount point of your second drive, i.e. /media/username/drive2/
  • Near the end, in lines 97-102, change eth0 to back to wlan0 if you use wifi instead of Ethernet.
  • If the CPU temperature under STATUS doesn't display, try a different numeric value for hwmon in line 66 (change it from 0 to 1, 2, etc.) until you find one that works. It seems to depend on what chipset you have. "temp 1" tells it to show core 1's temperature. Change that number to use a different core. I haven't found a way yet to make it show the average of all cores' temps.
  • You'll probably need to change /dev/sdb to /dev/sda in line 69: sdb is my system drive and sda is my second drive for backups storage. I have my SATA cables connected backwards and can't be bothered to change them.
  • Relabel your drives in lines 76 & 77 to something that lets you recognize which of your drives is which.
Preview (click for full size image):
Image
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

male

Re: Modified MX-BBQdigital Conky

#2 Post by male »

JayM wrote:I haven't found a way yet to make it show the average of all cores' temps.

The way is simple, therefore this classification for your Conky ;)

Code: Select all

Intel		AMD		Conky
Quad		4 CPU		${cpu}
------------------------------------------
Core0		cpu1		${cpu1}
Core1		cpu2		${cpu2}
Core2		cpu3		${cpu3}
Core3		cpu4		${cpu4}

and "conky" uses ${cpu0} - to calculate the average of the 4 "cores"

User avatar
Jerry3904
Administrator
Posts: 21960
Joined: Wed Jul 19, 2006 6:13 am

Re: Modified MX-BBQdigital Conky

#3 Post by Jerry3904 »

Near the end, in lines 97-102, change eth0 to back to wlan0 if you use wifi instead of Ethernet.
Two other ways:

Better: use Conky Manager, don't even have to open the script
Best: there are a couple of conkies that have a nice ifup...endif so that only the network you are using shows up
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
JayM
Qualified MX Guide
Posts: 6793
Joined: Tue Jan 08, 2019 4:47 am

Re: Modified MX-BBQdigital Conky

#4 Post by JayM »

male wrote: Thu Mar 14, 2019 6:41 am
JayM wrote:I haven't found a way yet to make it show the average of all cores' temps.

The way is simple, therefore this classification for your Conky ;)

Code: Select all

Intel		AMD		Conky
Quad		4 CPU		${cpu}
------------------------------------------
Core0		cpu1		${cpu1}
Core1		cpu2		${cpu2}
Core2		cpu3		${cpu3}
Core3		cpu4		${cpu4}

and "conky" uses ${cpu0} - to calculate the average of the 4 "cores"
I'm using

Code: Select all

${hwmon 0 temp 1}
to get the temperature. How would I incorporate your suggestion to get the average temp of all cores?
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

male

Re: Modified MX-BBQdigital Conky

#5 Post by male »

hwmon is not suitable for this because there is no "average temperature" of a sensor chip in your computer.

You have to use sensors for this, e.g.

Code: Select all

sensors
or

Code: Select all

sensors -u
or

Code: Select all

sensors && echo '=-=-=-=-=-=-=' && inxi -s
to know what your box can do.

User avatar
JayM
Qualified MX Guide
Posts: 6793
Joined: Tue Jan 08, 2019 4:47 am

Re: Modified MX-BBQdigital Conky

#6 Post by JayM »

male wrote: Thu Mar 14, 2019 8:23 am hwmon is not suitable for this because there is no "average temperature" of a sensor chip in your computer.

You have to use sensors for this, e.g.

Code: Select all

sensors
or

Code: Select all

sensors -u
or

Code: Select all

sensors && echo '=-=-=-=-=-=-=' && inxi -s
to know what your box can do.
I've been working on this some more, and I've found that the hwmon command I'm using in the conky does seem to be showing the average temperature of my two cores:

Code: Select all

$ sensors && echo '=-=-=-=-=-=-=' && inxi -s
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp:   +31.0°C  
Core1 Temp:   +35.0°C  

=-=-=-=-=-=-=
Sensors:   System Temperatures: cpu: 33.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
The Conky is showing 33 degrees.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
JayM
Qualified MX Guide
Posts: 6793
Joined: Tue Jan 08, 2019 4:47 am

Re: Modified MX-BBQdigital Conky

#7 Post by JayM »

New and improved system status Conky based on BBQdigital.

Features: black semi-transparent background to make the fonts easier to read; added a white border; removed all of those pipes, dashes and plus-signs to de-uglify it; removed unnecessary items; either Ethernet, Wifi or both will be displayed according to whether or not they're enabled; CPU and HD temperatures turn orange at 45°C and red at 50°C to alert you to possible overheating; goes in upper-right corner by default; simple style with no fancy fonts, no clocks, no graphs, no images, just basic useful information about your system in plain text form.
Image

Code: Select all

#alignment tl
alignment top_right
background yes
background_color 000000
border_inner_margin 0
border_width 1
default_color FFFFFF
default_outline_color black
default_shade_color black
double_buffer yes
draw_borders yes
draw_graph_borders no
draw_outline no
draw_shades no
gap_x 10
gap_y 10
minimum_size 260 0
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 76
own_window_class Conky
own_window yes
own_window_transparent no
own_window_type normal
pad_percents 2
short_units yes
stippled_borders 0
top_name_width 5
update_interval 1
uppercase yes
use_spacer right
use_xft yes
xftalpha 1.0 #0.2
xftfont Cure:bold:size=8

# Color scheme #
default_color ffffff

color1 FFFFFF #white
color2 FFA500 #orange
color3 00FFFF #cyan
color4 FFFF00 #yellow
color5 00FF00 #lime green
color6 F62817 #fire engine red
###########################
own_window_colour 000000
TEXT

${goto 60}${font size=12}${color3}System Status${color}${font}

${goto 12}${color3}Memory${color}
${goto 38} Total${goto 125}${memmax}
${goto 38} In Use${goto 125}${mem}  (${memperc}%)
${goto 38} Free${goto 125}${memfree}
${goto 38} Freed easily${goto 125}Up to ${memeasyfree}
${goto 38} Swap
${goto 60} Total${goto 125}${swapmax}
${goto 60} Used${goto 125}${swap} - ${swapperc}%
${goto 60} Free${goto 125}${swapfree}

${goto 12} ${color3}System${color}
${goto 38} CPU
${goto 60}Load${goto 125}${cpu cpu0}%
${goto 60}Freq${goto 125}${freq_g}GHz
${goto 38} Ram${goto 125}${memperc}%
${goto 38} Load Avg${goto 125}${loadavg}
${goto 38} Disk IO ${goto 125}${diskio}
${goto 60} Read${goto 125}${diskio_read}
${goto 60} Write${goto 125}${diskio_write}
${goto 38}Temps ${goto 125}(CPU  SDA  SDB)
${goto 125}${if_match ${hwmon 0 temp 1} <45}${color1}${hwmon 0 temp 1}°C${color}${else}${if_match ${hwmon 0 temp 1} >50} ${color6}${hwmon 0 temp 1}°C${color}${else}${color2}${hwmon 0 temp 1}°C${color}${endif}${endif}  ${if_match ${exec /usr/sbin/hddtemp /dev/sda | awk '{print $3}' | sed 's/..$//'} <45}${color1}${exec /usr/sbin/hddtemp /dev/sda | awk '{print $3}'}${color}${else}${if_match ${exec /usr/sbin/hddtemp /dev/sda | awk '{print $3}' | sed 's/..$//'} >50}${color6}${exec /usr/sbin/hddtemp /dev/sda | awk '{print $3}'}${color}${else}${color2}${exec "/usr/sbin/hddtemp /dev/sda | awk '{print $3}'"}${color}${endif}${endif}  ${if_match ${exec /usr/sbin/hddtemp /dev/sdb | awk '{print $4}' | sed 's/..$//'} <45}${color1}${exec /usr/sbin/hddtemp /dev/sdb | awk '{print $4}'}${color}${else}${if_match ${exec /usr/sbin/hddtemp /dev/sdb | awk '{print $4}' | sed 's/..$//'} >50}${color6}${exec /usr/sbin/hddtemp /dev/sdb | awk '{print $4}'}${color}${else}${color2}${exec /usr/sbin/hddtemp /dev/sdb | awk '{print $4}'}${color}${endif}${endif}

#Root partition info. Change the drive designation to match that of your system disk i.e. to /dev/sda.
${goto 12}${color3}HDD Space${goto 125}(Used / Free / Total)${color}
${goto 38}Root${goto 125}${fs_used_perc /}%  /  ${fs_free_perc /}%  /  ${fs_size /}
#Second HDD to store backups. Change the drive designation as above and also the drive's mount point and its label. You can copy/paste this entry below to add additional drives and partitions. Remember, the more drives you add the taller the Conky will be.
${if_mounted /media/jay/seagate-1tb}${goto 38}Backup${goto 125}${fs_used_perc /media/jay/seagate-1tb}%  /  ${fs_free_perc /media/jay/seagate-1tb}%  /  ${fs_size /media/jay/seagate-1tb}

${goto 12}${color3}Top 3 Processes${color}
${goto 38} CPU
${goto 60} ${top name 1}${goto 125}${top cpu 1}${top mem 1}
${goto 60} ${top name 2}${goto 125}${top cpu 2}${top mem 2}
${goto 60} ${top name 3}${goto 125}${top cpu 3}${top mem 3}
${goto 38} MEM
${goto 60} ${top_mem name 1}${goto 125}${top_mem cpu 1}${top_mem mem 1}
${goto 60} ${top_mem name 2}${goto 125}${top_mem cpu 2}${top_mem mem 2}
${goto 60} ${top_mem name 3}${goto 125}${top_mem cpu 3}${top_mem mem 3}

${if_up eth0}${goto 12}${color3}Network Traffic${color}
${goto 38}Ethernet
${goto 60} Up${goto 125}${upspeedf eth0}KiB
${goto 60} Down${goto 125}${downspeedf eth0}KiB
${if_up wlan0}${goto 38}Wifi
${goto 60} Up${goto 125}${upspeedf eth0}KiB
${goto 60} Down${goto 125}${downspeedf eth0}KiB
${endif}${endif}
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

Post Reply

Return to “Software / Configuration”