3 # (someone claimed the next lines would be useful for…
4 # people. So here goes: © 2012 Stefan Breunig
5 # stefan+measure-net-speed@mathphys.fsk.uni-heidelberg.de)
7 # append i3status output to the measure-net-speed’s one.
8 # the quote and escape magic is required to get valid
9 # JSON output, which is expected by i3bar (if you want
10 # colors, that is. Otherwise plain text would be fine).
11 # For colors, your i3status.conf should contain:
13 # output_format = i3bar
16 # i3 config looks like this:
18 # status_command measure-net-speed-i3status.bash
21 i3status | (read line && echo $line && read line && echo $line && while :
24 dat=$(measure-net-speed.bash)
25 dat="[{ \"full_text\": \"${dat}\" },"
26 echo "${line/[/$dat}" || exit 1