TEXT
Up: ${alignr}${upspeed wlan0}KB/s
${upspeedgraph wlan0 20,138 A39C83 A39C83}
Total: ${alignr}${totalup wlan0}
${hr 2}
Down: ${alignr}${downspeed wlan0}KB/s
${downspeedgraph wlan0 20,138 A39C83 A39C83}
sudo apt-get install vnstat
sudo vnstat -u -i wlan0
sudo chmod 777 /var/lib/vnstat/.wlan0
Total: ${alignr}${totaldown wlan0}
${voffset 4}Today: ${alignr}Month:
${voffset 4} ${execi 60 vnstat | grep "today" | awk '{print $2 $3}'}${alignr}${offset -13}${execi 300 vnstat -m | grep "`LANG=en_GB.UTF-8 date +"%b '%y"`" | awk '{print $3 $4}'} ${voffset -4}
${voffset 4}${execi 60 vnstat | grep "today" | awk '{print $5 $6}'}${alignr}${offset -12}${execi 300 vnstat -m | grep "`LANG=en_GB.UTF-8 date +"%b '%y"`" | awk '{print $6 $7}'} ${voffset -4}
${voffset 4} ${execi 60 vnstat | grep "today" | awk '{print $8 $9}'}${alignr}${offset -14}${execi 300 vnstat -m | grep "`LANG=en_GB.UTF-8 date +"%b '%y"`" | awk '{print $9 $10}'} ${voffset -4}
Комментариев нет:
Отправить комментарий