Please bear with us as we work to restore functionality to dotfiles.org.
chimpyw
/.dzen/gmail.py
modified the usual gmail script to include dzen icons and colour change
import os
import string
#Enter your username and password below within double quotes
# eg. username="username" and password="password"
username="user"
password="pass"
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,"")
index2=string.find(msg,"")
fc=int(msg[index+11:index2])
if fc==0:
print "^fg(#eeeeee)^i(/home/andrew/.dzen/icons/mail.xbm) ^fg()0 new"
else:
print "^fg(#c12121)^i(/home/andrew/.dzen/icons/mail.xbm) ^fg()"+str(fc)+" new"