LinuxGurl » Yet another post on another website about CONKY!

Pages

Categories

Calendar

February 2010
S M T W T F S
« Dec    
 123456
78910111213
14151617181920
21222324252627
28  

Advertisements




Apply Today

Archives

Validated

  • Made With CSS
  • This is a valid RSS feed
  • Valid CSS level 2.1

Visitor Map

Visitor Map

Yep, I decided to share my Conky setup with the world because I have scoured several pages of different forums and websites trying to get mine just right.
It all started with a simple stumble upon this page which is what I used for my base layout a few months ago. I decided I wanted more a few days ago and got to work…
I found this thread which links to another thread, and between them, they have over 7000 posts! That’s a lot to go through….
Assuming you already have Conky installed (and if not, you at least know where to go download it), here are all the files that go along with my Conky set-up.
.conkyrc
# Conky configuration
 
background yes
use_xft yes
xftfont Sans:size=8
xftalpha 0.8
update_interval 5.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
#own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
border_margin 2
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment middle_right
gap_x 12
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
show_graph_scale no
show_graph_range no
text_buffer_size 1024
color1 333333
color2 000000
color3 FFFFFF
color4 AAAAAA
color5 FFA500
 
# stuff after 'TEXT' will be formatted on screen
 
TEXT
${font Domestic Manners:style=Bold:size=30}${color5}SuzyQ's PC
${voffset -50}${color3}$stippled_hr
${voffset -45}${font Sans:style=Bold:size=8}CURRENT CONDITIONS${hr 2}
${execpi 300 conkyForecast --location=XYZXYZ --template=$HOME/.conkyForecast.template}
${font Sans:style=Bold:size=8}SYSTEM${hr 2}
${font}Hostname: $alignr$nodename
Kernel: $alignr$kernel
Uptime: $alignr$uptime
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg
 
${font Sans:style=Bold:size=8}FILESYSTEM AND MEMORY${hr 2}
${font}Root: ${fs_free /} / ${fs_size /}
${fs_bar 4 /}
Home: ${fs_free /home} / ${fs_size /home}
${fs_bar 4 /home}
 
${font Sans:style=Bold:size=8}CPU1: ${font}${cpubar cpu1 10,150} ${cpu cpu1}%
${font Sans:style=Bold:size=8}CPU2: ${font}${cpubar cpu2 10,150} ${cpu cpu2}%
 
${font Sans:style=Bold:size=8}RAM: ${font}${mem} / ${memmax} (${memperc}%)
${membar 4}
${font Sans:style=Bold:size=9}SWAP: ${font}${swap} / ${swapmax} (${swapperc}%)
${swapbar 4}
 
${font Sans:style=Bold:size=8}PROCESSES${hr 2}
${font Sans:style=Bold:size=8}NAME $alignr PID CPU MEM
${voffset -5}${hr 1}
${font}${top name 1} $alignr${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} $alignr${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} $alignr${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} $alignr${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} $alignr${top pid 5} ${top cpu 5} ${top mem 5}
 
${font Sans:style=Bold:size=8}NETWORK${hr 2}
${font Sans:style=Bold:size=8}IP Address: ${font}${gw_ip}
${font Sans:style=Bold:size=8}Total Download: ${font}${totaldown eth0}
${font Sans:style=Bold:size=8}Total Upload: ${font}${totalup eth0}
${font Sans:style=Bold:size=8}Up Speed: ${font}${upspeed eth0} Kb/s ${font Sans:style=Bold:size=9}Down Speed: ${font}${downspeed eth0} Kb/s
 
${font Sans:style=Bold:size=8}TO DO LIST${hr 2}
${font}${execi 30 cat $HOME/.TODO.txt}

for more information about seting up your weather.com xml account, please click here

.conkyForecast.template
${voffset 0}${font ConkyWeather:size=20}[--datatype=WF] ${font Sans:size=10}${voffset -5}[--datatype=CT] -- [--datatype=CN], [--datatype=CO]
${font}Temperature:$alignr [--datatype=HT --imperial] (Feels Like [--datatype=LT --imperial])
Humidity:$alignr [--datatype=HM]
Visibility:$alignr [--datatype=VI --imperial]
Wind:$alignr [--datatype=WD --imperial] ([--datatype=WS --imperial])
UV-Index:$alignr [--datatype=UI] ([--datatype=UT])
Sunrise:$alignr [--datatype=SR]
Sunset:$alignr [--datatype=SS]
Barometer Tendency:$alignr [--datatype=BD]

.conkyForecast.config
# config settings for conkyForecast.py
CACHE_FOLDERPATH = /tmp/
CONNECTION_TIMEOUT = 5
EXPIRY_MINUTES = 30
TIME_FORMAT = %H:%M
DATE_FORMAT = %Y-%m-%d
LOCALE = en
XOAP_PARTNER_ID = your_partner_id
XOAP_LICENCE_KEY = your_licence_key

the following script was written because Conky had problems loading at the same time as Compiz, so I created the script so that Conky will load 20 seconds after start-up
.conky_start.sh
#!/bin/bash
sleep 20 && conky;

and after all that code, this is what I see whenever I log in. :)
conky_05142009

Tags: , ,

Leave a Reply