Restore CPU stuff; add disk I.O graph.

Other color and formatting changes.
This commit is contained in:
Bradley M. Kuhn 2013-08-24 21:38:32 -04:00
parent 98d3ff5b4e
commit ae6f8ad3bd

View file

@ -1,6 +1,7 @@
#!/usr/bin/conky -d -c #!/usr/bin/conky -d -c
## .conkyrc configuration ## .conkyrc configuration
#update_interval 10.0 update_interval 7.0
update_interval_on_battery 20.0
alignment top_left alignment top_left
@ -11,7 +12,7 @@ xftalpha 0.1
double_buffer yes double_buffer yes
draw_shades yes draw_shades yes
own_window_type override own_window_type desktop
own_window yes own_window yes
own_window_transparent yes own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
@ -24,22 +25,35 @@ color0 555555
color1 FCAF3E color1 FCAF3E
color2 Ivory #FFFFF0 color2 Ivory #FFFFF0
#color2 64574e #color2 64574e
color3 a82553 color3 Ivory3 #CDCDC1
color4 5e1014 color4 grey40
color5 Red color5 Red
color6 a7a7a7 color6 Yellow
color7 8888CC color7 Green
color8 9d9c61 color8 9d9c61
color9 525276 color9 525276
minimum_size 280 1394 minimum_size 280 499
maximum_width 600 maximum_width 499
gap_x 1 gap_x 0
gap_y 1 gap_y 1
TEXT TEXT
${color2}${font DejaVu Sans:size=8}${time %H}${font DejaVu Sans:size=8}:${time %M} ${color2}${goto 5}${font DejaVu Sans:size=30}${time %H}${font DejaVu Sans:size=28}:${time %M}${color2}${goto 118}${font DejaVu Sans:size=10}${voffset -15}${time %Z}${goto 119}${voffset 12}${font DejaVu Sans:size=6}(${time %z})${color2}${goto 152}${voffset -15}${font :size=12}${time %A %d %B %Y}
${color2}${goto 20}${font DejaVu Sans:size=30}${time %H}${font DejaVu Sans:size=28}:${time %M}${color2}${goto 135}${font DejaVu Sans:size=10}${voffset -15}${time %Z}${goto 136}${voffset 12}${font DejaVu Sans:size=6}(${time %z})${color2}${goto 200}${voffset -10}${font :size=15}${time %A %d %B %Y}
${font Inconsolata:size=10}${execpi 18000 ~/hacks/Small-Hacks/org-mode-appt-check.plx}
${color}${font Inconsolata:size=10}${execpi 14400 /usr/bin/cal -B 1 -A 1 | /bin/cat -v | /usr/bin/perl -ne 'next if /^\s*\d+\s*$/; s/\_\^H(\d)/\${color1}$1\${color}/g; print;'} ${voffset 13}${font Inconsolata:size=13}${execpi 405 ~/hacks/Small-Hacks/org-mode-appt-check.plx}
${color4}$hr
${color}${font Inconsolata:size=11}${execpi 810 /usr/bin/gcal -H T:t:H:h .. | /usr/bin/perl -ne 'next if /^\s*\d*\s*$/; s/T(\d+)t/\${color7} $1 \${color}/g; print;'}
${color}${font Inconsolata:size=11}${execpi 810 /usr/bin/gcal -H T:t:H:h %`date +"%Y%m%d" --date='3 months'` ..| /usr/bin/perl -ne 'next if /^\s*\d*\s*$/; s/T(\d+)t/ $1 /g; print;'}
${voffset -10}${color2}${font led:size=10}CPU ${font}$hr
Overall temperature: ${acpitemp}°C
${color}Core 0: ${cpu cpu0}% ${freq_g (0)} GHz ${goto 200}Temp:${goto 200}${voffset 10}${exec sensors | grep "Core 0" | cut --bytes=14-21} ${voffset -10}${execgraph sensors |perl -ne 'if (s/^\s*Core\s+\d+\s*:\s*[\+\-]\s*([\d\.]+).*$/$1/) { $_ -= 10; print "$_\n";}'}
${color}Core 1: ${cpu cpu1}% ${freq_g (1)} GHz ${goto 200}Temp:${goto 200}${voffset 10}${exec sensors | grep "Core 1" | cut --bytes=14-21} ${voffset -10}${execgraph sensors |perl -ne 'if (s/^\s*Core\s+\d+\s*:\s*[\+\-]\s*([\d\.]+).*$/$1/) { $_ -= 10; print "$_\n";}'}
Load: ${loadgraph}
${voffset -10}${color2}${font led:size=10}DISK I/O ${font}$hr
Read: ${diskiograph_read}
Write: ${diskiograph_write}