feat(network_bandwidth): add more configuration option

- Can auto detect used interface (only with linux ip for now)
- Can show the name of used interface
- A waiting interval can be set between each update

Signed-off-by: Adrien Kara <adrien@iglou.eu>
This commit is contained in:
Adrien Kara 2023-01-06 19:46:04 +01:00
parent ac95b3e069
commit 4bb5e56053
No known key found for this signature in database
GPG key ID: 605B69551C56DB62
2 changed files with 52 additions and 6 deletions

View file

@ -152,6 +152,18 @@ Customize label
set -g @dracula-ram-usage-label "RAM"
```
#### network-bandwidth
You can configure which network interface you want to view the bandwidth,
Displaying of the interface name, The interval between each bandwidth update.
The most common interfaces name are `eth0` for a wired connection and `wlan0` for a wireless connection.
```bash
set -g @dracula-network-bandwidth eth0
set -g @dracula-network-bandwidth-interval 0
set -g @dracula-network-bandwidth-show-interface true
```
#### network-ping options
You can configure which server (hostname, IP) you want to ping and at which rate (in seconds). Default is google.com at every 5 seconds.