Skip to content

Instantly share code, notes, and snippets.

@sheecegardezi
Last active June 23, 2021 14:44
Show Gist options
  • Save sheecegardezi/42266e3d945777083548491145722cd7 to your computer and use it in GitHub Desktop.
Save sheecegardezi/42266e3d945777083548491145722cd7 to your computer and use it in GitHub Desktop.
Conky config for 4 GPU 24 CPU
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#####################
# - Text settings - #
#####################
background no
use_xft yes
xftfont Ubuntu:size=14
xftalpha 0.1
update_interval 1
total_run_times 0
override_utf8_locale yes
text_buffer_size 2048
#############################
# - Window specifications - #
#############################
own_window yes
own_window_type normal
own_window_transparent false
own_window_class conky-semi
own_window_hints undecorated
own_window_argb_visual yes
own_window_argb_value 0
double_buffer yes
minimum_size 200 800
# maximum_width 600
#########################
# - Graphics settings - #
#########################
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color red
default_outline_color white
out_to_console no
out_to_stderr no
extra_newline no
xinerama_head 3
#alignment bottom_right
#gap_y 50
#gap_x 600
alignment top_left
gap_x 60
gap_y 10
stippled_borders 3
border_inner_margin 4
border_width 5
no_buffers no
uppercase no
cpu_avg_samples 2
net_avg_samples 1
use_spacer right
TEXT
${color white}${voffset 4}${font Ubuntu:style=Bold:size=8}Resource Monitor $stippled_hr${font}
##############
# - SYSTEM - #
##############
${color green}CPU Details $alignr $machine
Hostname $alignr${nodename}
Linux Kernel $alignr${kernel}
Frequency $alignr $freq(MHz)
Uptime $alignr${uptime_short}
File System $alignr${fs_type}
CPU History: ${color 00ff00}${cpugraph 30,0 0000ff 00ff00}
CPU Usage:${color 00ff00} $cpu% ${cpubar 15,0}
IP on eno1 $alignr ${addr eno1}
Uploaded: ${totalup eno1} $alignr Downloaded: ${totaldown eno1}
Up ${upspeed wlp1s0} $alignr Down ${downspeed eno1}
${upspeedgraph eno1 20,250 white white} $alignr ${downspeedgraph eno1 20,250 white white}
${color white}${voffset 1}${font Ubuntu:style=Bold:size=8}Harddisk $stippled_hr${font}
${color green}
${color green}MEM $alignc $mem / $memmax $alignr $memperc%
$membar
${color green}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}
Read ${goto 300} Write: Disk I/O: ${diskio}
${diskiograph_read 20,250 white white 750} ${goto 300} ${diskiograph_write 20,250 white white 750}
Swap Usage: $swap/$swapmax - $swapperc% ${swapbar 20,500}
#############
# - CPU - #
#############
${color white}${voffset 1}${font Ubuntu:style=Bold:size=8}Processors $stippled_hr${font}
${color green}CPU_01: ${cpu cpu01}% ${goto 130} ${freq (01)} MHz ${cpubar cpu1 15,100} ${goto 400} CPU_13: ${cpu cpu13}% ${goto 515} ${freq (13)} MHz ${cpubar cpu13 15,100}
CPU_02: ${cpu cpu02}% ${goto 130} ${freq (02)} MHz ${cpubar cpu2 15,100} ${goto 400} CPU_14: ${cpu cpu14}% ${goto 515} ${freq (14)} MHz ${cpubar cpu14 15,100}
CPU_03: ${cpu cpu03}% ${goto 130} ${freq (03)} MHz ${cpubar cpu3 15,100} ${goto 400} CPU_15: ${cpu cpu15}% ${goto 515} ${freq (15)} MHz ${cpubar cpu15 15,100}
CPU_04: ${cpu cpu04}% ${goto 130} ${freq (04)} MHz ${cpubar cpu4 15,100} ${goto 400} CPU_16: ${cpu cpu16}% ${goto 515} ${freq (16)} MHz ${cpubar cpu16 15,100}
CPU_05: ${cpu cpu05}% ${goto 130} ${freq (05)} MHz ${cpubar cpu5 15,100} ${goto 400} CPU_17: ${cpu cpu17}% ${goto 515} ${freq (17)} MHz ${cpubar cpu17 15,100}
CPU_06: ${cpu cpu06}% ${goto 130} ${freq (06)} MHz ${cpubar cpu6 15,100} ${goto 400} CPU_18: ${cpu cpu18}% ${goto 515} ${freq (18)} MHz ${cpubar cpu18 15,100}
CPU_07: ${cpu cpu07}% ${goto 130} ${freq (07)} MHz ${cpubar cpu7 15,100} ${goto 400} CPU_19: ${cpu cpu19}% ${goto 515} ${freq (19)} MHz ${cpubar cpu19 15,100}
CPU_08: ${cpu cpu08}% ${goto 130} ${freq (08)} MHz ${cpubar cpu8 15,100} ${goto 400} CPU_20: ${cpu cpu20}% ${goto 515} ${freq (20)} MHz ${cpubar cpu20 15,100}
CPU_09: ${cpu cpu09}% ${goto 130} ${freq (09)} MHz ${cpubar cpu9 15,100} ${goto 400} CPU_21: ${cpu cpu21}% ${goto 515} ${freq (21)} MHz ${cpubar cpu21 15,100}
CPU_10: ${cpu cpu10}% ${goto 130} ${freq (10)} MHz ${cpubar cpu10 15,100} ${goto 400} CPU_22: ${cpu cpu22}% ${goto 515} ${freq (22)} MHz ${cpubar cpu22 15,100}
CPU_11: ${cpu cpu11}% ${goto 130} ${freq (11)} MHz ${cpubar cpu11 15,100} ${goto 400} CPU_23: ${cpu cpu23}% ${goto 515} ${freq (23)} MHz ${cpubar cpu23 15,100}
CPU_12: ${cpu cpu12}% ${goto 130} ${freq (12)} MHz ${cpubar cpu12 15,100} ${goto 400} CPU_24: ${cpu cpu24}% ${goto 515} ${freq (24)} MHz ${cpubar cpu24 15,100}
#############
# - GPU - #
#############
#GPU Attributes:
${color white}${voffset 4}${font Ubuntu:style=Bold:size=8}GPUs $stippled_hr${font}
${color green}GPU 0: ${exec nvidia-smi -i 0 --query-gpu=gpu_name --format=csv,noheader,nounits} ${goto 330} GPU 2 :${exec nvidia-smi -i 2 --query-gpu=gpu_name --format=csv,noheader,nounits}
Temperature ${execi 60 nvidia-settings -query [gpu:0]/GPUCoreTemp -t} °C ${goto 330} Temperature ${execi 60 nvidia-settings -query [gpu:2]/GPUCoreTemp -t} °C
Utilization ${exec nvidia-smi -i 0 | grep % | cut -c 61-63} % ${goto 330} Utilization ${exec nvidia-smi -i 2 | grep % | cut -c 61-63} %
VRAM Utilization ${exec nvidia-smi -i 0| grep % | cut -c 37-40} MB ${goto 330} VRAM Utilization ${exec nvidia-smi -i 2| grep % | cut -c 37-40} MB
Power Draw ${exec nvidia-smi -i 0| grep % | cut -c 21-23} W ${goto 330} Power Draw ${exec nvidia-smi -i 2| grep % | cut -c 21-23} W
GPU 1 :${exec nvidia-smi -i 1 --query-gpu=gpu_name --format=csv,noheader,nounits} ${goto 330} GPU 3 :${exec nvidia-smi -i 3 --query-gpu=gpu_name --format=csv,noheader,nounits}
Temperature ${execi 60 nvidia-settings -query [gpu:1]/GPUCoreTemp -t} °C ${goto 330} Temperature ${execi 60 nvidia-settings -query [gpu:3]/GPUCoreTemp -t} °C
Utilization ${exec nvidia-smi -i 1 | grep % | cut -c 61-63} % ${goto 330} Utilization ${exec nvidia-smi -i 3 | grep % | cut -c 61-63} %
VRAM Utilization ${exec nvidia-smi -i 1| grep % | cut -c 37-40} MB ${goto 330} VRAM Utilization ${exec nvidia-smi -i 3| grep % | cut -c 37-40} MB
Power Draw ${exec nvidia-smi -i 1| grep % | cut -c 21-23} W ${goto 330} Power Draw ${exec nvidia-smi -i 3| grep % | cut -c 21-23} W
#############
# - Programs - #
#############
${color white}${voffset 4}${font Ubuntu:style=Bold:size=8}Processes $stippled_hr${font}
${color green}NAME ${goto 200} PID ${goto 300} CPU% ${goto 400} MEM% ${goto 500}Time% ${goto 600} User%
${top name 1}${goto 200}${top pid 1}${goto 300}${top cpu 1}${goto 400}${top mem 1}${goto 500}${top time 1}${goto 600}${top user 1}
${top name 2}${goto 200}${top pid 2}${goto 300}${top cpu 2}${goto 400}${top mem 2}${goto 500}${top time 2}${goto 600}${top user 2}
${top name 3}${goto 200}${top pid 3}${goto 300}${top cpu 3}${goto 400}${top mem 3}${goto 500}${top time 3}${goto 600}${top user 3}
${top name 4}${goto 200}${top pid 4}${goto 300}${top cpu 4}${goto 400}${top mem 4}${goto 500}${top time 4}${goto 600}${top user 4}
${top name 5}${goto 200}${top pid 5}${goto 300}${top cpu 5}${goto 400}${top mem 5}${goto 500}${top time 5}${goto 600}${top user 5}
${top name 6}${goto 200}${top pid 6}${goto 300}${top cpu 6}${goto 400}${top mem 6}${goto 500}${top time 6}${goto 600}${top user 6}
${top name 7}${goto 200}${top pid 7}${goto 300}${top cpu 7}${goto 400}${top mem 7}${goto 500}${top time 7}${goto 600}${top user 7}
${top name 8}${goto 200}${top pid 8}${goto 300}${top cpu 8}${goto 400}${top mem 8}${goto 500}${top time 8}${goto 600}${top user 8}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment