@Sector11
Posted before I emailed you - I kicked the buffer up and so far so good.
Printable View
@Sector11
Posted before I emailed you - I kicked the buffer up and so far so good.
Good stuff because this was getting really hard to maintain! :lolflag: :lolflag: :lolflag:
Thanks for the link, it appears I just have too many watches then. I suppose I can always grep or awk the info from top if I really want its count. It's not critical, I was just curious about reason for the difference.
I found the image (PNG) as is on line. I have been known to make PNG files from JPEGs using GIMP though, usually to make icons for programs. I think I made the Sun PNG for the weather conky I put together awhile back from a JPEG I found. I think you might have just inspired me to try to make some more for my conky over the weekend, if I have nothing better to do.
Hi. After many attempts I've finally settled on a conky I'm somewhat satisfied with. My messy messy conkyrc:
Screenshot:Code:#
use_xft yes
xftfont Terminus:bold:size=8
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent no
own_window_colour black
own_window_argb_visual yes
own_window_argb_value 20
own_window_type normal
#own_window_class Conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background yes
double_buffer yes
draw_shades yes
default_shade_color black
draw_outline no
draw_borders no
draw_graph_borders no
default_outline_color 070719
default_bar_size 100 5
default_gauge_size 5 5
imlib_cache_size 0
alignment top_right
gap_x
gap_y 00
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
minimum_size 725 0
maximum_width 1368
default_color CED8F6
color1 5FAFC1
color2 CED8F6
TEXT
#Line1#
${font Terminus:bold:size=9}${color1}System.....................................${color1}${goto 250}${color1}Network.....................................${goto 500}${color1}Programs.......................................${font}
#Line2#
${color2}CPU ${goto 190}${color}${freq_g}GHz${goto 250}${color2}IP Address ${goto 405} ${addr eth1}${goto 500}${color2}${top name 1}${alignr}${color}${top cpu 1} ${top mem 1}
#Line3#
${color2}Uptime ${goto 175}${color}${uptime}${goto 250}${color2}Downloads - ${totaldown eth1} ${goto 440} ${downspeedf eth1} kb/s${goto 500}${color2}${top name 2}${alignr}${color}${top cpu 2} ${top mem 2}
#Line4#
${color2}Cpu Temperature ${goto 215}${color}${acpitemp}C${goto 250}${color2}${downspeedgraph eth1 12,240}${goto 500}${color2}${top name 3}${alignr}${color}${top cpu 3} ${top mem 3}
#Line5#
#Line6#
#Line7#
${font Terminus:bold:size=9}${color1}Processors.................................${goto 250}${color1}Memory.....................................${font}${goto 500}${if_running rhythmbox}${font Terminus:bold:size=9}${color1}Music.............................................${font}${endif}
#Line8#
${color2}Core 1 ${goto 105}${color}${cpu cpu1}% ${cpubar cpu1}${goto 250}${color2}Memory ${color}${goto 390}${mem} / ${memmax}${if_running rhythmbox}${goto 500}${color2}Title ${color2}$alignr ${if_match ${execi 5 expr length "`exec rhythmbox-client --print-playing-format %tt | head -n 1`"} >= 30}${scroll 30 5 ${exec rhythmbox-client --print-playing-format %tt}}${else}${exec rhythmbox-client --print-playing-format %tt}${endif}${endif}
#Line9#
${color2}Core 2 ${goto 105}${color}${cpu cpu2}% ${cpubar cpu2}${goto 250}${color2}Currently ${color}${goto 352}${memperc}% ${membar}${if_running rhythmbox}${goto 500}${color2}Artist ${color2}${alignr}${exec rhythmbox-client --print-playing-format %ta}$font${exec}${endif}
#Line10#
#${hr 2}
http://tinypic.com/r/303ehb6/5
Added full color gradient (yellow to red) to my bars.
Attachment 242741
The code is getting a bit hefty though...
Code:#colors
color1 FFFF00
color2 FFDD00
color3 FFBB00
color4 FF9900
color5 FF7700
color6 FF5500
color7 FF3300
color8 FF1100
color9 grey20
TEXT
CPU${voffset -2}${alignr}[\
${if_match ${cpu cpu0} == 0}${color9}|||||||||||||||||||||${else}\
${if_match ${cpu cpu0} <= 5}${color1}|${color9}||||||||||||||||||||${else}\
${if_match ${cpu cpu0} <= 10}${color1}||${color9}|||||||||||||||||||${else}\
${if_match ${cpu cpu0} <= 15}${color1}|||${color9}||||||||||||||||||${else}\
${if_match ${cpu cpu0} <= 20}${color1}|||${color2}|${color9}|||||||||||||||||${else}\
${if_match ${cpu cpu0} <= 25}${color1}|||${color2}||${color9}||||||||||||||||${else}\
${if_match ${cpu cpu0} <= 30}${color1}|||${color2}|||${color9}|||||||||||||||${else}\
${if_match ${cpu cpu0} <= 35}${color1}|||${color2}|||${color3}|${color9}||||||||||||||${else}\
${if_match ${cpu cpu0} <= 40}${color1}|||${color2}|||${color3}||${color9}|||||||||||||${else}\
${if_match ${cpu cpu0} <= 45}${color1}|||${color2}|||${color3}|||${color9}||||||||||||${else}\
${if_match ${cpu cpu0} <= 50}${color1}|||${color2}|||${color3}|||${color4}|${color9}|||||||||||${else}\
${if_match ${cpu cpu0} <= 55}${color1}|||${color2}|||${color3}|||${color4}||${color9}||||||||||${else}\
${if_match ${cpu cpu0} <= 60}${color1}|||${color2}|||${color3}|||${color4}|||${color9}|||||||||${else}\
${if_match ${cpu cpu0} <= 65}${color1}|||${color2}|||${color3}|||${color4}|||${color5}|${color9}||||||||${else}\
${if_match ${cpu cpu0} <= 70}${color1}|||${color2}|||${color3}|||${color4}|||${color5}||${color9}|||||||${else}\
${if_match ${cpu cpu0} <= 75}${color1}|||${color2}|||${color3}|||${color4}|||${color5}|||${color9}||||||${else}\
${if_match ${cpu cpu0} <= 80}${color1}|||${color2}|||${color3}|||${color4}|||${color5}|||${color6}|${color9}|||||${else}\
${if_match ${cpu cpu0} <= 85}${color1}|||${color2}|||${color3}|||${color4}|||${color5}|||${color6}||${color9}||||${else}\
${if_match ${cpu cpu0} <= 90}${color1}|||${color2}|||${color3}|||${color4}|||${color5}|||${color6}|||${color9}|||${else}\
${if_match ${cpu cpu0} <= 95}${color1}|||${color2}|||${color3}|||${color4}|||${color5}|||${color6}|||${color7}|${color9}||${else}\
${if_match ${cpu cpu0} < 100}${color1}|||${color2}|||${color3}|||${color4}|||${color5}|||${color6}|||${color7}||${color9}|${else}\
${if_match ${cpu cpu0} == 100}${color1}|||${color2}|||${color3}|||${color4}|||${color5}|||${color6}|||${color7}||${color8}|\
${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}\
${color}]
My conky is evolving. Just figured I'd post the latest progress.
Hello again. I made my first post on these boards almost a month ago to show off my first attempt at conky. Today I want to post up another screenshot of my current conky, list a few of the changes I've made, and offer up my .conf file for perusal and suggestions.
This was my first iteration. This is what it looks like today.
I've since figured out which fan is which, added desktop environment and window manager, cleaned up format, reduced punctuation, added video card GPU and memory frequencies, added hard disk drive temperature, and added top 5 memory processes.
Here is my .conf:
A couple of questions:Code:use_xft yes
xftfont Zekton:size=9
xftalpha 0.1
update_interval 2
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 5
maximum_width 1500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color DimGray
default_shade_color red
default_outline_color green
alignment top_right
gap_x 25
gap_y 10
no_buffers no
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
text_buffer_size 256
TEXT
# Save lm-sensors output to interval updated file #
${exec sensors > ~/.conky/lm-sensors_output}
${color #007FFF}System$color $hr
Operating System $alignr $sysname
Kernel $alignr $kernel
Architecture $alignr $machine
Desktop Environment $alignr ${pre_exec echo $DESKTOP_SESSION}
Window Manager $alignr ${pre_exec wmctrl -m | grep 'Name' | awk '{print $2}'}
File System $alignr ${fs_type /home}
Uptime $alignr ${uptime}
# CPU 1, 2, 3, and 4 Frequency, Temp, and Load #
${color #007FFF}Processing$color $hr
Manufacturer $alignr Intel
Core ${goto 60}Freq ${goto 150}Temp $alignr Load
1 ${goto 60}${freq_g cpu0} GHz ${goto 150}${exec grep 'Core 0' ~/.conky/lm-sensors_output | awk '{print $3}' | cut -c2-9} $alignr ${cpu cpu0}%
2 ${goto 60}${freq_g cpu1} GHz ${goto 150}${exec grep 'Core 1' ~/.conky/lm-sensors_output | awk '{print $3}' | cut -c2-9} $alignr ${cpu cpu1}%
3 ${goto 60}${freq_g cpu2} GHz ${goto 150}${exec grep 'Core 2' ~/.conky/lm-sensors_output | awk '{print $3}' | cut -c2-9} $alignr ${cpu cpu2}%
4 ${goto 60}${freq_g cpu3} GHz ${goto 150}${exec grep 'Core 3' ~/.conky/lm-sensors_output | awk '{print $3}' | cut -c2-9} $alignr ${cpu cpu3}%
# GPU stats #
${color #007FFF}Graphics$color $hr
Manufacturer $alignr Nvidia
Driver $alignr ${pre_exec nvidia-settings -q [gpu:0]/NvidiaDriverVersion | grep 'Attribute' | awk '{print $4}'}
GPU Frequency $alignr ${nvidia gpufreq} MHz
Memory Frequency $alignr ${nvidia memfreq} MHz
Temperature $alignr ${nvidia temp}°C
Fan Capacity $alignr ${exec nvidia-smi -q | grep 'Fan Speed' | awk '{print $4}'}%
Memory $alignr ${exec nvidia-smi -q --display=MEMORY | grep 'Used' | awk '{print $3}'} MB / ${pre_exec nvidia-smi -q --display=MEMORY | grep 'Total' | awk '{print $3}'} MB
# Fan stats #
${color #007FFF}Cooling$color $hr
CPU $alignr ${exec grep 'fan2' ~/.conky/lm-sensors_output | awk '{print $2}'} RPM
Front Intake $alignr ${exec grep 'fan3' ~/.conky/lm-sensors_output | awk '{print $2}'} RPM
Rear Exhaust $alignr ${exec grep 'fan4' ~/.conky/lm-sensors_output | awk '{print $2}'} RPM
Top Exhaust $alignr ${exec grep 'fan1' ~/.conky/lm-sensors_output | awk '{print $2}'} RPM
# RAM stats #
${color #007FFF}Memory$color $hr
RAM $alignr ${mem} / ${memmax}
Swap $alignr ${swap} / ${swapmax}
# HDD stats #
${color #007FFF}Storage$color $hr
HDD $alignr ${fs_used /home} / ${fs_size /home}
Temperature $alignr ${hddtemp /dev/sda}°C
# Network stats #
${color #007FFF}Network$color $hr
Local IP $alignr ${addr eth0}
Up $alignr $upspeed
Down $alignr $downspeed
# Processes #
${color #007FFF}Processes$color $hr
$alignr Processing
${top name 1} $alignr ${top cpu 1}%
${top name 2} $alignr ${top cpu 2}%
${top name 3} $alignr ${top cpu 3}%
${top name 4} $alignr ${top cpu 4}%
${top name 5} $alignr ${top cpu 5}%
$alignr Memory
${top_mem name 1} $alignr ${top mem 1}%
${top_mem name 2} $alignr ${top mem 2}%
${top_mem name 3} $alignr ${top mem 3}%
${top_mem name 4} $alignr ${top mem 4}%
${top_mem name 5} $alignr ${top mem 5}%
--I couldn't compile 1.9.0 from source with the --enable-nvidia tag because I kept getting the missing nvctrl.h error. So I installed conky-all from Ubuntu repositories. Now I can enjoy the native ${nvidia} variables, though it doesn't call all the data I want (memory usage and fan capacity). The version is 1.8.1. Am I missing anything cool from 1.9.0?
--Currently with my existing .conf file, my HDD is in constant use (every 2 seconds) because of my "${exec sensors > ~/.conky/lm-sensors_output}" line. I tried removing that line and just calling "sensors" in every line where I need it (temps, fan speeds). This kept my HDD from constantly saving a new "lm-sensors_output" file, but it increased my CPU usage across all 4 cores. I would normally idle at 0-2%, but with all those lines calling "sensors" I would idle at about 2-4%. Which way is more elegant and less intensive? Or is there a better way than the two I've tried?
--Lastly, sometimes the ${top_mem} order is out of whack. Is this a bug or am I doing it wrong?
EDIT: Real slick conky, Nolix!
Cool. Hope you don't mind but I borrowed your code to make a vertical version..
Code:default_color CED8F6
color1 FFFF00
color2 FFDD00
color3 FFBB00
color4 FF9900
color5 FF7700
color6 FF5500
color7 FF3300
color8 FF1100
color9 white
TEXT
${if_match ${cpu cpu0} >= 100}${color8}[]${endif}${goto 60}${if_match ${memperc} >= 100}${color8}[]${endif}
${if_match ${cpu cpu0} >= 90}${color8}[]${endif}${goto 60}${if_match ${memperc} >= 90}${color8}[]${endif}
${if_match ${cpu cpu0} >= 80}${color7}[]${endif}${goto 60}${if_match ${memperc} >= 80}${color7}[]${endif}
${if_match ${cpu cpu0} >= 70}${color7}[]${endif}${goto 60}${if_match ${memperc} >= 70}${color7}[]${endif}
${if_match ${cpu cpu0} >= 60}${color6}[]${endif}${goto 60}${if_match ${memperc} >= 60}${color6}[]${endif}
${if_match ${cpu cpu0} >= 50}${color5}[]${endif}${goto 60}${if_match ${memperc} >= 50}${color5}[]${endif}
${if_match ${cpu cpu0} >= 40}${color5}[]${endif}${goto 60}${if_match ${memperc} >= 40}${color5}[]${endif}
${if_match ${cpu cpu0} >= 30}${color4}[]${endif}${goto 60}${if_match ${memperc} >= 30}${color4}[]${endif}
${if_match ${cpu cpu0} >= 20}${color3}[]${endif}${goto 60}${if_match ${memperc} >= 20}${color3}[]${endif}
${if_match ${cpu cpu0} >= 10}${color2}[]${endif}${goto 60}${if_match ${memperc} >= 10}${color2}[]${endif}
${if_match ${cpu cpu0} >= 5}${color1}[]${endif}${goto 60}${if_match ${memperc} >= 5}${color1}[]${endif}
${if_match ${cpu cpu0} >= 0}${color9}[]${endif}${goto 60}${if_match ${memperc} >= 0}${color9}[]${endif}
^${goto 60}^
C${goto 60}M
P${goto 60}E
U${goto 60}M
There are 2194 pages in this thread. So, shouldn't this be broken into monthly basis?