summaryrefslogtreecommitdiff
path: root/.scripts/nettraf
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/nettraf')
-rwxr-xr-x.scripts/nettraf10
1 files changed, 2 insertions, 8 deletions
diff --git a/.scripts/nettraf b/.scripts/nettraf
index eb7a73b..f68d4c1 100755
--- a/.scripts/nettraf
+++ b/.scripts/nettraf
@@ -4,13 +4,6 @@
# transmitted (TX) since the previous time this script ran. So if run every
# second, gives network traffic per second.
-case $BLOCK_BUTTON in
- 1) setsid -f "$TERMINAL" -e bmon ;;
- 3) notify-send "🌐 Network traffic module" "🔻: Traffic received
-🔺: Traffic transmitted" ;;
- 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
-esac
-
update() {
sum=0
for arg; do
@@ -26,4 +19,5 @@ update() {
rx=$(update /sys/class/net/[ew]*/statistics/rx_bytes)
tx=$(update /sys/class/net/[ew]*/statistics/tx_bytes)
-printf "🔻%4sB 🔺%4sB\\n" $(numfmt --to=iec $rx) $(numfmt --to=iec $tx)
+printf " %4sB  %4sB\\n" $(numfmt --to=iec $rx) $(numfmt --to=iec $tx)
+