conky does not take care of email

This commit is contained in:
Mathieu Maret 2012-12-12 15:23:34 +01:00
parent d0997c4d6a
commit 2c52d4b4f6
2 changed files with 1 additions and 19 deletions

View File

@ -42,5 +42,5 @@ use_spacer none
minimum_size 1680 0
TEXT
${alignc}Kernel: ${color D7D3C5}$kernel | ${color}Uptime: ${color D7D3C5}${uptime_short} | ${color }Down: ${color D7D3C5}${font}${downspeed eth0} Kb/s - ${color D7D3C5}${totaldown eth0} | ${color }Up: ${color D7D3C5}${upspeed eth0} Kb/s - ${color D7D3C5}${totalup eth0} | ${color }Root: ${color D7D3C5}${fs_free /} ${fs_bar 6,60 /} | ${color} Temps: ${color D7D3C5} ${execi 300 /home/mathieu/config/scripts/weather.sh "EUR|FR|FR012|PARIS"} | ${color} Gmail : ${color D7D3C5} ${execi 300 python ~/config/scripts/gmail.py}
${alignc}Kernel: ${color D7D3C5}$kernel | ${color}Uptime: ${color D7D3C5}${uptime_short} | ${color }Down: ${color D7D3C5}${font}${downspeed eth0} Kb/s - ${color D7D3C5}${totaldown eth0} | ${color }Up: ${color D7D3C5}${upspeed eth0} Kb/s - ${color D7D3C5}${totalup eth0} | ${color }Root: ${color D7D3C5}${fs_free /} ${fs_bar 6,60 /} | ${color} Temps: ${color D7D3C5} ${execi 300 /home/mathieu/config/scripts/weather.sh "EUR|FR|FR012|PARIS"}
${alignc}${color light grey}${time %a %D %k:%M} | ${color }Mem: ${color D7D3C5}$memperc% ${color D7D3C5} ${membar 6,80}${color D7D3C5} | ${color}hog:${color D7D3C5} ${top_mem name 1}${offset -25}${top_mem mem 1}%${color grey} | ${color}Cpu: ${color D7D3C5}${cpu}% ${color D7D3C5}${cpugraph 9,80 AEA08E 9F907D} ${color D7D3C5} | ${color}hog:${color D7D3C5} ${top name 1}${offset -25}${top cpu 1}% | ${color}tempCpu:${color D7D3C5} $acpitemp | ${color}battery:$color ${color D7D3C5}${battery_bar 4,50 BAT1} #| ${color}Users:${color D7D3C5}${user_names}

View File

@ -1,18 +0,0 @@
import os
#Enter your username and password below within double quotes
# eg. username="username" and password="password"
username=""
password=""
com="wget -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate"
temp=os.popen(com)
msg=temp.read()
index=msg.find("<fullcount>")
index2=msg.find("</fullcount>")
fc=int(msg[index+11:index2])
if fc==0:
print "0 new"
else:
print str(fc)+" new"