From 2e48e24b70a13fdffeadf74041ab7bc72bf64dde Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Sat, 10 Apr 2021 00:44:11 -0300 Subject: [PATCH] installation and readme instructions --- INSTALL.md | 2 ++ README.md | 2 +- scripts/network_bandwith.sh | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 4cacbdf..57a768d 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -47,6 +47,8 @@ programs.tmux = { Customize the status bar by adding any of these lines to your .tmux.conf as desired: * Disable battery functionality: `set -g @dracula-show-battery false` * Disable network functionality: `set -g @dracula-show-network false` +* Enable network bandwith functionality: `set -g @dracula-network-bandwith $network_name` + - You could get the `$network_name` through the command: `sudo lshw -class network -short | grep wl | awk '{print $2}'` * Disable weather functionality: `set -g @dracula-show-weather false` * Disable time functionality: `set -g @dracula-show-time false` * Disable location information: `set -g @dracula-show-location false` diff --git a/README.md b/README.md index 41069a8..a93acb0 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Configuration and options can be found at [draculatheme.com/tmux](https://dracul * Support for powerline * Day, date, time, timezone * Current location based on network with temperature and forecast icon (if available) -* Network connection status and SSID +* Network connection status, bandwith and SSID * Battery percentage and AC power connection status * Refresh rate control * CPU usage diff --git a/scripts/network_bandwith.sh b/scripts/network_bandwith.sh index 682a0cc..3c544c8 100755 --- a/scripts/network_bandwith.sh +++ b/scripts/network_bandwith.sh @@ -21,7 +21,7 @@ main() { total_download_kbps=$(echo "scale=2; $total_download_bps / 1024" | bc) total_upload_kbps=$(echo "scale=2; $total_upload_bps / 1024" | bc) - echo "↑ $total_upload_kbps kB/s • ↓ $total_download_kbps kB/s" + echo "↓ $total_download_kbps kB/s • ↑ $total_upload_kbps kB/s" done } main