diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-06-20 15:53:22 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-06-20 15:53:22 +0200 |
commit | 540d1a708efe4eadd1d09290bf8049e7cb5eceb0 (patch) | |
tree | d743b8b6ac6dbaaed9fdb8e79d8cd74e8aa8303d /.local/bin/statusbar/sb-nettraf | |
parent | 74e1dacf46ba61f6039f4e770806c11f9b3a81f5 (diff) |
Modifications to Luke's statusbar scripts
Diffstat (limited to '.local/bin/statusbar/sb-nettraf')
-rwxr-xr-x | .local/bin/statusbar/sb-nettraf | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/statusbar/sb-nettraf b/.local/bin/statusbar/sb-nettraf index eb7a73b..68bf812 100755 --- a/.local/bin/statusbar/sb-nettraf +++ b/.local/bin/statusbar/sb-nettraf @@ -6,8 +6,8 @@ case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e bmon ;; - 3) notify-send "🌐 Network traffic module" "🔻: Traffic received -🔺: Traffic transmitted" ;; + 3) notify-send "🌐 Network traffic module" ": Traffic received +: Traffic transmitted" ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac @@ -26,4 +26,4 @@ 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) |