summaryrefslogtreecommitdiff
path: root/contrib/measure-net-speed-i3status.bash
diff options
context:
space:
mode:
authorMoritz Warning <moritzwarning@web.de>2017-01-02 16:06:06 +0100
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2017-01-02 16:06:06 +0100
commit3f6d71feb9b620f28396e7c980323f92081dc2fb (patch)
tree0ef43e8ec7ca9497c251e2af8f46a47c197e311d /contrib/measure-net-speed-i3status.bash
parent9832a0d93a65eba36d5aaa99ec5d7b94a29bb3ba (diff)
Consolidate measure speed script (#188)
* remove old net speed scripts * add reworked net-speed script * add space between rate and speed suffix it is easier to parse visually * only use intervals greater zero * add ifaces examples * catch negativ byte count happens when the counter resets
Diffstat (limited to 'contrib/measure-net-speed-i3status.bash')
-rw-r--r--contrib/measure-net-speed-i3status.bash27
1 files changed, 0 insertions, 27 deletions
diff --git a/contrib/measure-net-speed-i3status.bash b/contrib/measure-net-speed-i3status.bash
deleted file mode 100644
index 4eec33b..0000000
--- a/contrib/measure-net-speed-i3status.bash
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-# Public Domain
-# (someone claimed the next lines would be useful for…
-# people. So here goes: © 2012 Stefan Breunig
-# stefan+measure-net-speed@mathphys.fsk.uni-heidelberg.de)
-
-# append i3status output to the measure-net-speed’s one.
-# the quote and escape magic is required to get valid
-# JSON output, which is expected by i3bar (if you want
-# colors, that is. Otherwise plain text would be fine).
-# For colors, your i3status.conf should contain:
-# general {
-# output_format = i3bar
-# }
-
-# i3 config looks like this:
-# bar {
-# status_command measure-net-speed-i3status.bash
-# }
-
-i3status | (read line && echo $line && read line && echo $line && while :
-do
- read line
- dat=$(measure-net-speed.bash)
- dat="[{ \"full_text\": \"${dat}\" },"
- echo "${line/[/$dat}" || exit 1
-done) \ No newline at end of file