diff --git a/README.md b/README.md index 1239a18..4cda841 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,10 @@ To make a custom colorscheme, check out the [template](./colorschemes/template.g `-b`, `--battery` Show battery level widget (`minimal` turns off). [preview](./assets/screenshots/battery.png) `-i`, `--interface=NAME` Select network interface [default: all]. +Several interfaces can be defined using comma separated values. + +Interfaces can also be ignored using `!` + ## Built With - [gizak/termui](https://github.com/gizak/termui) diff --git a/main.go b/main.go index c29b9a0..6c55db0 100644 --- a/main.go +++ b/main.go @@ -78,6 +78,10 @@ Options: -b, --battery Show battery level widget ('minimal' turns off). -i, --interface=NAME Select network interface [default: all]. +Several interfaces can be defined using comma separated values. + +Interfaces can also be ignored using ! + Colorschemes: default default-dark (for white background) diff --git a/src/widgets/net.go b/src/widgets/net.go index f13965c..3ff296b 100644 --- a/src/widgets/net.go +++ b/src/widgets/net.go @@ -17,8 +17,6 @@ const ( NET_INTERFACE_VPN = "tun0" ) -type NetInterface string - type NetWidget struct { *ui.SparklineGroup updateInterval time.Duration