Just a little more on this I never thought of yesterday.
There's actually 2 changes needed to get B/s, KB/s & MB/s to display.
The first is as you mention, the kb/s needs removing as it's only text & isn't needed after the 2nd change is made.
The 2nd change is remove the "f" from upspeedf & downspeedf parameters so they are just upspeed & downspeed.
With the f removed the rate will be displayed auto & will show either B, KiB or MiB depending on the speeds measured.
Here's that section of code again reflecting those 2 changes
Code: Select all
# NETWORK
${voffset -8}${font Open Sans:Bold:size=10}${color0}NETWORK ${color EC0100}${hr 3}$color
#$color${font Open Sans:bold:size=8.5}External IP ${font}${alignr}${execi 60 curl http://google.com --connect-timeout 2 | grep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*"}$font
#${voffset -14}$alignc${execpi 4 echo "\${font}\${color}ping: \${font Open Sans:bold:size=8.5}\${color6}$(ping -W 1 -c 1 8.8.8.8 -q | grep rtt | egrep [0-9]+\.[0-9]+ -o | head -n 2 | tail -n 1)\${font}\${color} ms"}
${voffset -10}${font Open Sans:bold:size=8.5}Ethernet $font$alignr ${addr eth0}
↑ ${upspeed eth0} $alignr ${totalup eth0}
${voffset -14}$alignc${upspeedgraph eth0 10,120 ff0000 0000ff}
↓ ${downspeed eth0} $alignr ${totaldown eth0}
${voffset -14}$alignc${downspeedgraph eth0 10,120 ff0000 0000ff}
${voffset -10}${font Open Sans:bold:size=8.5}WiFi $font${wireless_bitrate wlan0} $alignr ${addr wlan0}
${voffset -14}$alignc${wireless_essid wlan0}
$alignc${color2}${wireless_link_bar 4,260 wlan0}${color E9E9E9}
↑ ${upspeed wlan0} $alignr ${totalup wlan0}
${voffset -14}$alignc${upspeedgraph wlan0 10,120 ff0000 0000ff}
↓ ${downspeed wlan0} $alignr ${totaldown wlan0}
${voffset -14}$alignc${downspeedgraph wlan0 10,120 ff0000 0000ff}