Egy T-mobilos kütyüm van 3GB havi forgalommal. Van egy conky-m ami méri a napi, a tegnapi, stb... és azt kéne lenullázni, az adott napon, hogy tiszta lappal induljon.
itt a conky-m :
${goto 120}${color}${font Sans:size=10}${color FFFFFF}Letöltés${goto 180}Feltöltés${goto 240}Összes
${offset 80}${goto 60}${color #000000}${font Sans:size=7}Ma: ${color 000000}${goto 120}${font Sans:style=Bold:size=6}${execi 60 vnstat | grep "today" | awk '{print $2 $3}'}${goto 180}${execi 30 vnstat | grep "today" | awk '{print $5 $6}'}${goto 240}${execi 30 vnstat | grep "today" | awk '{print $8 $9}'}
${offset 80}${goto 60}${color FFFFFF}${font Sans:size=7}${color #000000}Tegnap:${color 000000} ${font Sans:style=Bold:size=6}${color 000000}${goto 120}${execi 1200 vnstat | grep "yesterday" | awk '{print $2 $3}'}${goto 180}${execi 1200 vnstat | grep "yesterday" | awk '{print $5 $6}'}${goto 240}${execi 1200 vnstat | grep "yesterday" | awk '{print $8 $9}'}
${offset 80}${goto 60}${color 000000}${font Sans:size=7}${color #000000}Heti:${color 000000} ${font Sans:style=Bold:size=6}${color 000000}${goto 120}${execi 30 vnstat -w | grep "current week" | awk '{print $3 $4}'}${goto 180}${execi 30 vnstat -w | grep "current week" | awk '{print $6 $7}'}${goto 240}${execi 30 vnstat -w | grep "current week" | awk '{print $9 $10}'}
${offset 80}${goto 60}${color #000000}${font Sans:size=7}${goto 60}${color 000000}${font Sans:size=7}${color #000000}Múlt hét:${color 000000} ${font Sans:style=Bold:size=6}${goto 240}${execi 1200 vnstat -w | grep "last week" | awk '{print $3 $4}'}${goto 180}${execi 1200 vnstat -w | grep "last week" | awk '{print $6 $7}'}${goto 240}${execi 1200 vnstat -w | grep "last week" | awk '{print $9 $10}'}${color 000000}
${goto 60}${color 000000}${font Sans:size=7}${color #000000}Havi:${color 000000} ${font Sans:style=Bold:size=6}${goto 240}${color 000000}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}${goto 180}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}${goto 240}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}${color 000000}
${goto 60}${color 000000}${font Sans:size=7}${color #000000}Most:${color 000000} ${font Sans:style=Bold:size=6}${goto 120}${color 000000}${totaldown eth1}${goto 180}${totalup eth1}