Saturday, January 31, 2009

Mucking around with conky

From the Conky homepage,
Conky is a free, light-weight system monitor for X, that displays any information on your desktop.
Enough about the introduction, lets cut to the chase.

Q : What do you get when you are a bored GNU/Linux user and you have an entire, boring, sunny weekend afternoon all to yourself?
A : In my case, a new conky config and here's a screenshot...

And here's the config file. Just copy and paste(the yellow text) into a new file (sorry, works for 1024x768 only :) :
    Copyright (C) 2008 Rohit (stuntdawg [at] gmail [dot] com)
Version 0.9, Licensed under GPL2
background no
use_xft yes
xftfont Dejavu Sans Mono-7
xftalpha 1
update_interval 1
own_window no
double_buffer yes
minimum_size 200 5
maximum_width 1024
draw_shades yes
draw_outline yes
draw_borders yes
stippled_borders 0
border_margin 0
border_width 0
default_color CCCCCC
default_outline_color black
alignment top_left
gap_x 2
gap_y 0
no_buffers no
uppercase no
use_spacer left

${offset 980}linrdx
${offset 938}${hr}
${offset 968}Users : $user_number
${offset 938}Uptime: $uptime_short
${voffset 40}${offset 115}CPU : $cpu %
${offset 113}Temp : ${execi 1 sensors|grep temp3|awk '{ print $2 }'|cut -c 2,3,4,5}
${offset 113}Fan:${execi 1 sensors|grep fan1|awk '{ print $2 }'}RPM${offset 370}$mem / $memmax
${offset 550}Cache : $cached
${offset 550}Buffer: $buffers
${voffset 225}${offset 69}${downspeedf eth0} kbps D
${offset 69}${upspeedf eth0} kbps U
${offset 735}Disk : /dev/sda
${offset 735}Temp : ${execi 5 sudo hddtemp /dev/sda|awk '{ print $3 }'}
${offset 735}I/O : ${diskiograph /dev/sda 10,50}
${voffset 33}
${offset 735}Disk : /dev/sdb
${offset 735}Temp : ${execi 5 sudo hddtemp /dev/sdb|awk '{ print $3 }'}
${offset 735}I/O : ${diskiograph /dev/sdb 10,50}
${voffset 53}
${offset 135}AC'97
${offset 117}PCM :${execi 5 amixer get PCM|tail -n 1|cut -d '[' -f 2|cut -d ']' -f 1}
${offset 117}Mic :${execi 5 amixer get Mic|grep Mono|cut -d '[' -f 2|cut -d ']' -f 1|tail -n 1}
${voffset 20}
${offset 533}USB devices : ${execi 2 lsusb | grep -vc 1d6b}
${offset 533}PCI devices : ${exec lspci | grep -c ''}
${offset 533}System time : ${time %H:%M %d-%m-%y}
And the wallpaper I made using Inkscape to go with it (license : WTFPL) :