Largest change with respect to 2 months ago, the addition of the Nvidea video card GPU load bar and GPU load graph and the VRAM memory bar and some cleaning up. The bar and percentage for VRAM used is based on a dirty trick since I have 1024MB of memory, which is close enough to 1000 for the moment to cut the char string instead of dividing it by 1024. In future we will have to add the arithmetic. For the GPU load graph we had to load the newest version of conky from launchpad, since the version in the Ubuntu repository had a bug. The file .conkyrc has been adapted to the changes of my old HP dc5850 with the upgrade to a 4-core CPU and using two not used 320GB 2.5" drives in RAID-0 to replace my dead SSD for the storage of the virtual machines.
I also changed the colors. Light-blue are the bars and graphs, which are related to load vs time, while yellow are the bars related to load vs size. Another change is related to the load graphs of CPU and GPU, they are not logarithmic anymore, since they are not very dynamic always between 0% and 100%. Disk and network graphs are still logarithmic because of their large dynamic range. E.g. downloading from the internet gives completely different figures then copying files from desktop to laptop using the local network and for the disk it can be even more extreme.
You can find the desktop picture as attachment after the conky file.
Code:
conky.config = {
-- ------------------------- Windows Settings
own_window = true,
own_window_transparent = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
double_buffer = true,
--background = true,
-- ------------------------- Position
alignment = 'bottom_right',
minimum_width = 275,
maximum_width = 275,
minimum_height = 500,
gap_x = 5,
gap_y = 0,
-- ------------------------- Font
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
use_spacer = 'right',
use_xft = true,
override_utf8_locale = true,
font = 'Ubuntu:size=9',
-- ------------------------- Other
update_interval = 2,
default_color = 'yellow',
};
conky.text = [[
${voffset 1}${color red}${font HeldustryFTVBasic Demi:size=14}HP-VMHost 16.04:${hr 2}
${voffset 1}${font HeldustryFTVBasic Demi:size=14}${color}${time %a, } ${color }${time %e %B %G}
${voffset 2}${font HeldustryFTVBasic Demi:size=18}${color }${time %H:%M} ${font HeldustryFTVBasic Demi:size=12}Antwerpen ${color}${tztime Europe/Brussels %H:%M}
${color}${font HeldustryFTVBasic Demi:size=8}UPTIME: $uptime
${voffset 2}AMD Phenom II X4 B97: ${color} ${freq} of 3200MHz
${voffset 2}Temps: ${hwmon 0 temp 1}/${hwmon 0 temp 2}/${hwmon 0 temp 3}°C $alignr FAN: ${hwmon 0 fan 3}/${hwmon 0 fan 4} RPM
${voffset 4}${color}${font HeldustryFTVBasic Demi:size=8}CPU-1 LOAD: ${cpu cpu1}% $alignr T=${hwmon 1 temp 1}°C ${color orange}<< 70°C ${color}
${color 009acd}${cpubar cpu1}
${voffset 2}${color}${font HeldustryFTVBasic Demi:size=8}CPU-2 LOAD: ${cpu cpu2}%
${color 009acd}${cpubar cpu2}
${voffset 2}${color}${font HeldustryFTVBasic Demi:size=8}CPU-3 LOAD: ${cpu cpu3}%
${color 009acd}${cpubar cpu3}
${voffset 2}${color}${font HeldustryFTVBasic Demi:size=8}CPU-4 LOAD: ${cpu cpu4}%
${color 009acd}${cpubar cpu4}
${voffset 2}${color}Average: ${cpu cpu0}%${color}${font HeldustryFTVBasic Demi:size=8}$alignr Processes: $processes ${color}Running:$color $running_processes
${color}${cpugraph 009acd f0f8ff -t}
${voffset 2}${color}${font HeldustryFTVBasic Demi:size=8}RAM :$color $mem of $memmax - $memperc%
${voffset 2}$membar
${voffset 2}${color}${font HeldustryFTVBasic Demi:size=8}SWAP:$color $swap of $swapmax - $swapperc%
${voffset 2}${swapbar}
${voffset 3}${color red}${font HeldustryFTVBasic Demi:size=14}VIDEO: ${font HeldustryFTVBasic Demi:size=8}${hr 2}
${voffset 3}${color}GeForce 8400GS X16: ${alignr}${nvidia gpufreq} MHz of 520 MHz
${voffset 2}${color}Fan Speed: ${offset 78}${exec nvidia-smi | grep % | cut -c 3-6}
${voffset 3}${color}GPU LOAD: ${exec nvidia-settings -q GPUUtilization | grep graphics= | cut -c 59-60}% ${alignr}T=${nvidia temp}°C ${color red}<< ${nvidia threshold} °C ${color}
${voffset 2}${color 009acd}${execbar nvidia-settings -q GPUUtilization | grep graphics= | cut -c 59-60}
${color}${execgraph "nvidia-settings -q GPUUtilization | grep graphics= | cut -c 59-60" 009acd f0f8ff -t}
${voffset 2}${color}VRAM: ${exec nvidia-smi --query-gpu=memory.used --format=csv,noheader} of 1023 MiB - ${exec nvidia-smi --query-gpu=memory.used --format=csv,noheader | cut -c 1-2}%
${voffset 2}${execbar nvidia-smi --query-gpu=memory.used --format=csv,noheader | cut -c 1-2}
${voffset 3}${color red}${font HeldustryFTVBasic Demi:size=14}PARTITIONS: ${font HeldustryFTVBasic Demi:size=8}${hr 2}
${voffset 3}${color}System sda $alignr Free: $color${fs_free /} of ${fs_size /}
${fs_bar /}
${voffset 2}HP Data sda $alignr Free: $color${fs_free /media/hp-data} of ${fs_size /media/hp-data}
${fs_bar /media/hp-data}
${voffset 2}Virtualbox md0 $alignr Free: $color${fs_free /media/vms} of ${fs_size /media/vms}
${fs_bar /media/vms}
${voffset 2}USB-320GB sdd $alignr Free: $color${fs_free /media/bertadmin/Disk320GB} of ${fs_size /media/bertadmin/Disk320GB}
${fs_bar /media/bertadmin/Disk320GB}
sda/HDD 500GB ${offset 20}${diskio /dev/sda}/s $alignr T=${hddtemp /dev/sda}°C
$color ${diskiograph /dev/sda 009acd f0f8ff -l -t}
md0/RAID0 640GB ${offset 4}${diskio /dev/md0}/s $alignr T=${hddtemp /dev/sdb}/${hddtemp /dev/sdc}°C
$color ${diskiograph /dev/md0 009acd f0f8ff -l -t}
sdd/USB 320GB ${offset 20}${diskio /dev/sdd}/s $alignr T=${hddtemp /dev/sdd}°C
$color ${diskiograph /dev/sdd 009acd f0f8ff -l -t}
${voffset 3}${color red}${font HeldustryFTVBasic Demi:size=14}NETWORK: ${font HeldustryFTVBasic Demi:size=8}${hr 2}
${voffset 3}${color}DOWN: ${downspeed enp63s0}/s
${color}${downspeedgraph enp63s0 009acd f0f8ff -l -t}
${voffset 2}${color}${font HeldustryFTVBasic Demi:size=8}UP: ${upspeed enp63s0}/s
${color}${upspeedgraph enp63s0 009acd f0f8ff -l -t}
${voffset 2}${color}${font HeldustryFTVBasic Demi:size=8}INBOUND: ${tcp_portmon 1 32767 count}${offset 28} OUTBOUND: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
]]
Bookmarks