Re: [i3] Network throughput bash script (usable with i3status)

  • From: "Alex V. Koval" <alex@xxxxxxxxxx>
  • To: i3-discuss@xxxxxxxxxxxxx
  • Date: Mon, 19 Mar 2012 07:34:55 +0200

Hi!

On Sun, 18 Mar 2012 18:33:21 +0100
Stefan Breunig <breunig@xxxxxxxxx> wrote:

Running the script in a subshell and
having a single echo like written in the man page works, though.

Thanks! Works fine, here is script which worked for me:

#!/bin/sh
# shell script to prepend i3status with more stuff

i3status -c ~/.i3/i3status.conf | while :
do
read line
mystuff=`~/bin/measure-net-speed.sh`
echo "$mystuff | $line"
done

--
Alex

Other related posts:

  • » Re: [i3] Network throughput bash script (usable with i3status) - Alex V. Koval