diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-10-01 00:56:51 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-10-01 00:56:51 +0530 |
commit | ded37b8f6515772648527fe2a3e9d9d490066ca0 (patch) | |
tree | 9f2fe68e715f67bc6685b9e2e14a9947c479bfa8 /.scripts/nettraf | |
parent | 7ce96f4805774b256b4d1f1f7be89ae182dbceca (diff) |
minimizing scripts + replacing emojis for fonticons
Diffstat (limited to '.scripts/nettraf')
-rwxr-xr-x | .scripts/nettraf | 10 |
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) + |