mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-05 00:13:13 +00:00
26 lines
412 B
Markdown
26 lines
412 B
Markdown
|
# Script: network-traffic
|
||
|
|
||
|
A script that displays the current network traffic.
|
||
|
|
||
|
It allows you to count traffic from more then one interface.
|
||
|
|
||
|
|
||
|
## Dependencies
|
||
|
|
||
|
* `bc`
|
||
|
|
||
|
|
||
|
## Configuration
|
||
|
|
||
|
Change the values in `INTERVAL` and `INTERFACES`. You can also choose between bit and byte output.
|
||
|
|
||
|
|
||
|
## Module
|
||
|
|
||
|
```ini
|
||
|
[module/network-traffic]
|
||
|
type = custom/script
|
||
|
exec = ~/polybar-scripts/network-traffic.sh
|
||
|
tail = true
|
||
|
```
|