this is my .conkyrc that I am using
Code: Select all
ct85711@Oate ~ $ cat .conkyrc
# 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/>.
#
alignment top_right
background yes
use_xft yes
xftalpha 0.5
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
xftfont DejaVu Sans Mono:size=12
gap_x 30
gap_y 60
minimum_size 300 1000
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
# Create own window instead of using desktop
own_window yes
own_window_class Conky
own_window_type desktop
#own_window_argb_visual yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Update interval in seconds
update_interval 3.0
stippled_borders 0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
TEXT
Kernel: ${alignr}${kernel}
CPU: ${cpu cpu0}% ${alignr}
RAM: $memperc% ${alignr}${membar 8,60}
Uptime: ${alignr}${uptime}
$hr
${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
CPU Temp:${alignr}${execi 8 sensors | grep 'CPU temp' | cut -c18-24}
CPU Fan:${alignr}${execi 8 sensors | grep 'CPU fan' | cut -c16-23}
System Temp: ${alignr}${execi 8 sensors | grep 'System temp' | cut -c18-24}
GPU Temp: ${alignr}${execi 8 nvidia-smi -q -d "TEMPERATURE" | grep 'Current' | cut -c39-42}
GPU Memory Usage: ${alignr}${execi 8 nvidia-smi -q -d "MEMORY" | grep -A 1 -m 1 'Total' | cut -c39-42 | tail -n1}/2047
$hr
${color grey}Networking:
Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}
Upload: ${alignr}${totalup eth0}
Download: ${alignr}${totaldown eth0}
$hr
${color grey}Name PID CPU% MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
In short, I am having conky run the nvidia-smi command, and parse that output for what I need. Most of my conky script was copied from someone else's script, modified to work for me.
**Note: My process is no way efficient, but it gets what I need done. I know my parsing could be improved upon, but I not that skilled on that.