You are not logged in.

#1 2011-06-22 12:34:02

awayand
Member
Registered: 2009-09-25
Posts: 398

upload/download speed script

I am trying to display my current upload/download speed using a simple script. I guess it is called "bandwidth" or "throughput", not sure about the technically accurate term.

I have tried various network tools, none of which seem to be simply presenting me with this info so I can integrate it into my dwm status via setroot.

Do you guys have any suggestions? I just want the script to list something like: "8kb/52kb" meaning 8kb download, 52kb upload...

What I have tried:

iftop
iptraf
iptraf-ng
dstat
sysstat

Thanks for any suggestions!

Offline

#2 2011-06-22 13:16:10

cybertorture
Member
Registered: 2010-05-05
Posts: 339

Re: upload/download speed script

well i do not know if it suits you, but conky have this out of box , just use downspeed ethX and upspeed ethX


O' rly ? Ya rly Oo

Offline

#3 2011-06-22 13:56:59

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: upload/download speed script

+1 you can use conky cli and pipe it to dzen and then place the dzen wherever you want on the screen.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2011-06-22 14:36:32

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: upload/download speed script

If you don't want to use conky, you can try this script, https://bitbucket.org/jasonwryan/workst … s/speed.sh , from jasonwryan. It's called from his dwm-status.sh. You may need to adjust the last line to fit your setup. I use it, it's in my configs as well. It requires net-tools, which has been deprecated now but is still in the repos.

Offline

Board footer

Powered by FluxBB