Originally Posted by
alwiap
can you post your .conkyrc config? I have a very simillar one (probably derived from the same) but I like some things in yours! very nice desktop.
Thanks. Here's the conkyrc. I literally JUST removed the bit at the top that said Ubuntu 7.10, with the uptime in and the time/date. I found a Gdesklet clock I really liked, but I should've backed it up. I can probably replicate it. *EDIT* -- FIXED and edited back to original state.
Code:
background yes
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
use_xft yes
xftfont Tahoma:size=7
xftalpha 0.8
mail_spool $MAIL
update_interval 1
own_window yes
#own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 120 2
maximum_width 120 2
draw_shades no
draw_outline no
draw_borders no
stippled_borders no
border_margin 1
border_width 1
#alignment top_left
gap_x 5
gap_y 5
alignment bottom_left
use_spacer no
no_buffers yes
uppercase no
TEXT
Ubuntu 7.10 ${alignr}${color #b1b1b1}($color$uptime${color #b1b1b1})$color
${color #98c2c7}TIME:$color ${alignr}${time %I:%M %p}
${color #98c2c7}DATE:$color ${alignr}${time %a %b %e %G}
${color #b1b1b1}PROCESSING ${hr 2}$color
${color #98c2c7}CPU:$color ${alignr}${cpu cpu1}%
${color #98c2c7}${cpugraph 20,120 98c2c7}
${color #b1b1b1}DATA ${hr 2}$color
${color #98c2c7}RAM:$color ${alignr}$memperc%
${color #98c2c7}SWAP:$color ${alignr}$swapperc%
${color #b1b1b1}FILESYSTEM ${hr 2}$color
${color #98c2c7}Root:$color ${alignr}${fs_used_perc /}%
${color #98c2c7}Data:$color ${alignr}${fs_used_perc /media/data}%
${color #b1b1b1}NETWORK ${hr 2}$color
${color #98c2c7}Upload:$color ${alignr}${upspeed eth0}kb/s${color #98c2c7}
${color #98c2c7}Download:$color ${alignr}${downspeed eth0}kb/s${color #98c2c7}
${color #98c2c7}Gmail:$color ${alignr}${texeci 90 python /home/chris/.gmail.py}${color #98c2c7}
And the gmail python script:
Code:
import os
import string
#Enter your username and password below within double quotes
# eg. username="username" and password="password"
username="user"
password="pass"
ttext=""
title=""
ntext=[]
nam=[]
mtext=[]
mes=[]
sum=[]
ema=[]
nom=""
tot=0
rtot=0
com="wget -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate"
temp=os.popen(com)
msg=temp.read()
index = string.find(msg,"<title>")
index2=string.find(msg,"</title>")
title=msg[index+25:index2]
index=index2
index=string.find(msg,"<fullcount>")
index2=string.find(msg,"</fullcount>")
fc=msg[index+11:index2]
if(int(fc)>20):tot=20
else: tot=(int(fc))
rtot=tot
if (int(fc)==1):
print ""+fc+" New"
elif rtot==0:
print "0 New"
elif rtot>1:
print ""+fc+" New"
else:
print "Error..."
Bookmarks